https://medium.com/@monocosmo77/applications-of-markov-chain-monte-carlo-part5-artificial-intelligence-2401aadce3ff