Let X‾=(X1,…,Xn)\underline{X}=\left(X_1,\ldots,X_n\right) be a set of nn random variables defined with respect to a common probability space (Ω,F,P)\left(\Omega,\mathcal{F},\mathbb{P}\right) and a common state space S.S. If X1,…,XnX_1,\ldots,X_n are mutually independent and share a common probability distribution PX\mathbb{P}_X then X‾\underline{X} is a random sample of size nn from the population PX.\mathbb{P}_X. Equivalently, the set contains independent and identically distributed (iid) random variables.

A set of data can be represented as a vector x‾=(x1,…,xn)\underline{x}=\left(x_1,\ldots,x_n\right) and is called an observed random sample. An observed random sample is considered realised values of a random sample containing nn iid random variables.

It is often assumed that the population PX\mathbb{P}_X belongs to a family of distributions indexed by a scalar or vector parameter θ\theta where θ\theta belongs to a parameter space θ∈Θ.\theta\in\Theta. The population can be expressed as PX; θ\mathbb{P}_{X;\,\theta} to show that the corresponding pmf or pdf is dependent on the parameter θ.\theta.

Given a random sample X‾\underline{X} of size nn and a possibly multivariate function t:Sn→Rkt:S^n\rightarrow\mathbb{R}^k for some k≥1k\geq 1 that does not depend on any unknown parameter θ,\theta, then T=t(X‾)T=t\left(\underline{X}\right) is a random variable or vector called a statistic. The probability distribution of the statistic TT is the sampling distribution of T.T.

The sample mean X‾n\overline{X}_n is a statistic where tt is the arithmetic mean of the random sample:

X‾n=1n∑i=1nXi.\overline{X}_n=\frac{1}{n}\sum_{i=1}^n X_i.

The sample variance Sn2S_n^2 is a statistic where tt is a scaled arithmetic mean of the squared and centred random sample:

Sn2=1n−1∑i=1n(Xi−X‾n)2.S_n^2=\frac{1}{n-1}\sum_{i=1}^n \left(X_i-\overline{X}_n\right)^2.

Let x‾\underline{x} be an observed random sample. The order statistics of x‾\underline{x} are the values (x1,x2,…,xn)\left(x_1,x_2,\ldots,x_n\right) in increasing order denoted by x(1)≤x(2)≤…≤x(n).x_{(1)}\leq x_{(2)}\leq\ldots\leq x_{(n)}.

The sample median mm is defined as:

m={x(n+12)if n is odd12(x(n2)+x(n2+1))if n is even.m=\begin{cases} x_{\left(\frac{n+1}{2}\right)} & \mathrm{if}\,n\,\mathrm{is}\,\mathrm{odd}\\ \frac{1}{2}\left(x_{\left(\frac{n}{2}\right)}+x_{\left(\frac{n}{2}+1\right)}\right) & \mathrm{if}\,n\,\mathrm{is}\,\mathrm{even}.\\ \end{cases}

Let X‾\underline{X} be a random sample. The rthr^\mathrm{th} order statistic of X‾\underline{X} is the random variable X(r)X_{(r)} where X(1)≤X(2)≤…≤X(n)X_{(1)}\leq X_{(2)}\leq\ldots\leq X_{(n)} is the ordered sample.

The smallest and largest order statistics are the sample minimum and maximum:

X(1)=min⁡i∈{1,…,n}XiX(n)=max⁡i∈{1,…,n}Xi.\begin{align*} X_{(1)}&=\min_{i\in\left\{1,\ldots,n\right\}} X_i\\ X_{(n)}&=\max_{i\in\left\{1,\ldots,n\right\}} X_i. \end{align*}

If XiX_i is continuous then ties occur with probability 0, so X(1)<X(2)<…<X(n)X_{(1)}<X_{(2)}<\ldots<X_{(n)} with probability 1.