https://numbas.mathcentre.ac.uk/question/22788/calculating-expected-values-given-a-table-of-probabilities/embed/