Source: https://helios2.mi.parisdescartes.fr/~rlachiez/enseignement/markov/feuille1.pdf