https://numbas.mathcentre.ac.uk/question/126540/efficient-mean-and-variance-for-random-sums-of-iid/embed/