https://medium.com/@monocosmo77/working-with-probabilistic-inference-in-machine-learning-part5-0e522bd181e8