Introduction to Bayesian statistics and applications in machine learning