Source: http://mathematiques.ac-bordeaux.fr/lycee2010/mathsettice/seconde/proba_stat/moy_med/moy_med.pdf