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