Source: https://dept-info.labri.fr/~beurton/Enseignement/Stat/2014-2015/Cours2.pdf