Source: http://remi.bazillier.free.fr/coursmacro_chap2_etudiants.pdf