Source: http://math.lyceedebaudre.net/sites/default/files/Exercices/terminaleS/Exercice proba_cond_coorection.pdf