https://numbas.mathcentre.ac.uk/question/44604/simon-s-copy-of-calculating-expected-values-given-a-table-of-probabilities/embed/