Source: https://www.maths-france.fr/MathSpe/Cours/20-variables-aleatoires-discretes.pdf