https://medium.com/@monocosmo77/working-with-markov-chain-monte-carlo-part4-machine-learning-statistics-aff38a3c41b2