Source: https://mpascucci.github.io/enseignement/stats/assets/downloads/correction/TD4c.pdf