Source: https://leurent.perso.math.cnrs.fr/stats_ps1/2016-2017/chap_2.pdf