https://medium.com/@monocosmo77/applications-of-bayesian-learning-part1-machine-learning-c4123efaca8b