Source: https://irem.univ-reunion.fr/IMG/pdf/exercices_de_mathematiques_sur_la_fiabilite_de_tests_d_hypotheses_-_sonntag_jl_lycee_roland_garros-2.pdf