Source: https://math.unice.fr/~diener/MAB0809/STAT1-2.pdf