Source: https://cfiestatistique.files.wordpress.com/2016/07/td3-correction.pdf