https://medium.com/@monocosmo77/working-with-markov-chain-monte-carlo-part3-machine-learning-statistics-457a176335c6