https://medium.com/@monocosmo77/applications-of-markov-chain-monte-carlo-part7-artificial-intelligence-36dc01e62b83