Source: http://math.lyceedebaudre.net/sites/default/files/Exercices/TermSTMG/Revision_proba.pdf