statistic
A statistic^{}, or sample statistic, $S$ is simply a function, usually realvalued, of a set of (sample) data or observations $\bm{X}=({X}_{1},{X}_{2},\mathrm{\dots},{X}_{n})$: $S=S(\bm{X})$. More formally, let $\mathrm{\Omega}$ be the sample space of the data $\bm{X}$, then $S$ is a function from $\mathrm{\Omega}$ to some set $T$, usually a subset of ${\mathbb{R}}^{k}$. The data $\bm{X}$ is usually considered as a vector of iid random variables^{} ${X}_{i}$.
Examples

1.
100 light bulbs out of 1,000,000 are tested for their functionality. Then the number $n$, of defective light bulbs in the 100 samples is a statistic. To see this, define, for each $i$ from 1 to 100,
$${x}_{i}=\{\begin{array}{cc}1\hfill & \text{if the event}{X}_{i}=\{\text{the}i\text{th light bulb is defective}\}\hfill \\ 0\hfill & \text{otherwise.}\hfill \end{array}$$ Then $n={\sum}_{i=1}^{100}{x}_{i}$, a function of the data. Similarly, the number of operating light bulbs is also a statistic if we switch the 1 and 0 in the above definitions for the ${x}_{i}$’s. If we make all ${x}_{i}=1$, then $n$ is just the count of the observations, one of the simplest forms of sample statistics. If we make all ${x}_{i}=0$, then $n=0$ is a statistic that is not at all useful.

2.
Let ${w}_{1},{w}_{2},\mathrm{\dots},{w}_{20}$ be the weights of 20 students from a particular college. Then the average^{} weight defined by
$$\overline{w}=\frac{1}{20}\sum _{i=1}^{20}{w}_{i}$$ is a statistic. It is commonly called the sample mean. It is often used to estimate $\mathrm{E}[X]$, the expectation of a particular random variable, which, in this case, is the weight of a student in the college. Of course, other averages, such as medians, mode, trimmed mean, are also examples of (sample) statistics.

3.
Using the same example as in (2), we can define
$${s}^{2}=\frac{1}{201}\sum _{i=1}^{20}{({w}_{i}\overline{w})}^{2}.$$ This is also a statistic, for, after some substitution and rewriting,
$${s}^{2}=\frac{1}{201}\left[\sum _{i=1}^{20}w_{i}{}^{2}\frac{1}{20}{(\sum _{i=1}^{20}{w}_{i})}^{2}\right],$$ which is a function explicitly in terms of the ${w}_{i}$’s. This statistic is known as the sample variance, which is a common estimate of $\mathrm{Var}[X]$, the variance^{} of the random variable $X$. Again, in this example, the $X$ is the weight of a student in the college.

4.
Again, borrowing from the same example above, we can simply order the weights of the 20 students in an ascending order, so we get a vector of 20 real numbers $({w}_{(1)},{w}_{(2)},\mathrm{\dots},{w}_{(20)})$. This is also a statistic, called an order statistic^{}. It is not realvalued and its range is a subset of ${\mathbb{R}}^{20}$.

5.
Given a set of numeric observations ${X}_{1},{X}_{2},\mathrm{\dots},{X}_{n}$, without knowing the distribution^{} of these observations, one can define what is known as the empirical distribution function $\widehat{F}$, which is a realvalued function, based on the observations. This is an example of a statistic whose range is a function space.
Remarks.

•
Any function of a statistic is again a statistic.

•
Since the underlying data is assumed to be random, a statistic is necessarily a random variable.

•
Although mostly realvalued, a statistic can be vectorvalued, or even functionvalued as we have seen in earlier examples.
Title  statistic 

Canonical name  Statistic 
Date of creation  20130322 14:46:18 
Last modified on  20130322 14:46:18 
Owner  CWoo (3771) 
Last modified by  CWoo (3771) 
Numerical id  11 
Author  CWoo (3771) 
Entry type  Definition 
Classification  msc 62A01 
Defines  sample mean 
Defines  sample variance 