Notes on various aspects of Bayesian inference