Source: https://perso.univ-rennes1.fr/valerie.monbet/doc/cours/Cours_Tests_2009.pdf