https://numbas.mathcentre.ac.uk/question/46529/probability-expectation-and-standard-deviation-of-/embed/