Source: https://webia.lip6.fr/~gallinar/Enseignement/2009-Apprentissage-Statistique-M2-partie2.pdf