https://numbas.mathcentre.ac.uk/question/45239/simon-s-copy-of-perform-chi-squared-test-on-2d-frequency-table/embed/