Source: https://perso.ens-rennes.fr/math/people/angelo.rosello/docs/cours/markov/markov_beta.pdf