Source: https://sspsd.u-strasbg.fr/IMG/pdf/Correction_exercice_17_probabilite.pdf