Source: https://www.math.univ-paris13.fr/~tournier/fichiers/agreg/2015/TP_probas.pdf