https://medium.com/@monocosmo77/working-with-probabilistic-inference-in-machine-learning-part4-207ab9b629e9