Source: https://depmath-nancy.univ-lorraine.fr/club/docs/1718/171011moyennes.pdf