Source: https://courses.ex-machina.ma/downloads/FCG/CI/CI1/S1/Statistiques/TD4_Corrige.pdf