Statistics for Aspects of Bayesian inference, classification and anomaly detection