https://medium.com/@monocosmo77/applications-of-bayesian-learning-part2-machine-learning-2140522abc92