Source: https://www.math.u-bordeaux.fr/~mibonnef/mimse-markov/Chaines-de-Markov.pdf