https://medium.com/@monocosmo77/working-with-probabilistic-models-part1-machine-learning-40f90b738f1f