Source: https://www.univ-montp3.fr/miap/ens/site/uploads/Main.StatM1IOD/Cours2M1MRHDS.pdf