Sum of values in a random sample

A sample mean is often the most descriptive summary statistic for a random sample, but occasionally the sum of the sample values is more useful. For example, if the individual values in a data set are the amounts paid by customers in a supermarket during one day,

Simulation to illustrate distributions of sample mean and sum