https://medium.com/@monocosmo77/applications-of-markov-chain-monte-carlo-part2-artificial-intelligence-21e33500ebcb