https://numbas.mathcentre.ac.uk/question/11935/calculate-probability-cdf-expected-value-and-varia/embed/