Source: https://cmatias.perso.math.cnrs.fr/Docs/cours_stat_np_ensiie.pdf