A function of a sample; in other words, a quantity calculated from a set of observations. Often a statistic is an estimator for a population parameter. For example, the sample mean, sample variance, and sample median are each a statistic. The sum of the observations in a sample is also a statistic, but this is not an estimator.