Source: https://www.normalesup.org/~carpenti/Cours/PSR-M1-Stats-CM.pdf