Source: https://neumann.hec.ca/~p240/c360284/theme_2/04Markov.pdf