https://medium.com/@monocosmo77/working-with-probabilistic-inference-in-machine-learning-part3-2441fb7322eb