https://medium.com/@monocosmo77/applications-of-markov-chain-monte-carlo-part3-artificial-intelligence-47bf94174e2a