https://medium.com/@monocosmo77/studying-stochastic-processes-in-depth-part2-artificial-intelligence-9393772ca0a2