Source: http://daniel.flipo.free.fr/cours/markov.pdf