Source: https://cfiestatistique.files.wordpress.com/2016/06/td2-correction.pdf