https://numbas.mathcentre.ac.uk/question/11937/calculate-probability-expected-value-and-variance-/embed/