Source: https://www.biostat.ulg.ac.be/pages/math/Correction_interro_math_oct10.pdf