Source: https://dept-info.labri.fr/~beurton/Enseignement/SrcStat/cours3.pdf