Towards Data Science | Medium Follow How to Build a Markov Chain in Python With NumPy A step-by-step guide to transition matrices, the Chapman–Kolmogorov equation, and stationary distributions, built around a three-state writing example. https://towardsdatascience.com/how-to-build-a-markov-chain-in-python-with-numpy/ towardsdatascience.com