Source: https://helios2.mi.parisdescartes.fr/~glaunes/Proba3/CoursProbasStats.pdf