Source: https://cermics.enpc.fr/~margherw/proba1A/2-DiscreteRandomVariables.pdf