In statistics, the kth order statistic of a statistical sample is equal to its kth-smallest value. Given a sample of size n, the kth order statistic is denoted x(k), with 1≤k≤n. Together with rank statistics, order statistics are among the most fundamental tools in non-parametric statistics and inference. Important special cases of the order statistics are the minimum and maximum value of a sample, and (with some qualifications discussed below) the sample median and other sample quantiles. When using probability theory to analyze order statistics of random samples from a continuous distribution, the cumulative distribution function is used to reduce the analysis to the case of order statistics of the uniform distribution.
Notation and examples For example, suppose that four numbers are observed or recorded, resulting in a sample of size 4. If the sample values are
6, 9, 3, 7 the order statistics would be x(1)=3x(2)=6x(3)=7x(4)=9 The first order statistic (or smallest order statistic) is always the minimum of the sample, that is, X(1)=min{X1,…,Xn} where, following a common convention, we use upper-case letters to refer to random variables, and lower-case letters (as above) to refer to their actual observed values. Similarly, for a sample of size n, the nth order statistic (or largest order statistic) is the maximum, that is, X(n)=max{X1,…,Xn}. The sample range is the difference between the maximum and minimum. It is a function of the order statistics: Range{X1,…,Xn}=X(n)−X(1). A similar important statistic in exploratory data analysis that is simply related to the order statistics is the sample interquartile range. The sample median may or may not be an order statistic, since there is a single middle value only when the number n of observations is odd. More precisely, if n = 2m+1 for some integer m, then the sample median is X(m+1) and so is an order statistic. On the other hand, when n is even, n = 2m and there are two middle values, X(m) and X(m+1), and the sample median is some function of the two (usually the average) and hence not an order statistic. Similar remarks apply to all sample quantiles.
Probabilistic analysis Given any random variables X1,X2,…,Xn, the random variables X(1),X(2),…,X(n) are defined by sorting X1,X2,…,Xn in increasing order. The case where the random variables X1,X2,…,Xn are independent and identically distributed is treated below. In general, X1,X2,…,Xncan arise by sampling from more than one population. Then we consider the case where they are independent, but not necessarily identically distributed, and their joint probability distribution is given by the Bapat–Beg theorem. From now on, we will assume that the random variables under consideration are continuous and, where convenient, we will also assume that they have a probability density function (PDF), that is, they are absolutely continuous. The peculiarities of the analysis of distributions assigning mass to points (in particular, discrete distributions) are discussed at the end.
Cumulative distribution function of order statistics For a random sample as above, with cumulative distribution FX(x), the order statistics for that sample have cumulative distributions as follows (where r specifies which order statistic): FX(r)(x)=∑j=rn(nj)[FX(x)]j[1−FX(x)]n−j The proof of this formula is pure combinatorics: for the rth order statistic to be ≤x, the number of samples that are >x has to be between 0 and n−r. In the case that X(j) is the largest order statistic ≤x, there has to be j samples ≤x (each with an independent probability of FX(x)) and n−j samples >x (each with an independent probability of 1−FX(x)). Finally there are (nj) different ways of choosing which of the n samples are of the ≤x kind. The corresponding probability density function may be derived from this result, and is found to be fX(r)(x)=n!(r−1)!(n−r)!fX(x)[FX(x)]r−1[1−FX(x)]n−r. Moreover, there are two special cases, which have CDFs that are easy to compute. FX(n)(x)=Pr(max{X1,…,Xn}≤x)=[FX(x)]n FX(1)(x)=Pr(min{X1,…,Xn}≤x)=1−[1−FX(x)]n Which can be derived by careful consideration of probabilities.
Probability distributions of order statistics
Order statistics sampled from a uniform distribution In this section we show that the order statistics of the uniform distribution on the unit interval have marginal distributions belonging to the beta distribution family. We also give a simple method to derive the joint distribution of any number of order statistics, and finally translate these results to arbitrary continuous distributions using the cdf. We assume throughout this section that X1,X2,…,Xn are random samples drawn from a continuous distribution with cdf FX. Denoting Ui=FX(Xi) we obtain the corresponding random sample U1,…,Un from the standard uniform distribution. Note that the order statistics also satisfy U(i)=FX(X(i)). The probability density function of the order statistic U(k) is equal to fU(k)(u)=n!(k−1)!(n−k)!uk−1(1−u)n−k that is, the kth order statistic of the uniform distribution is a beta-distributed random variable. U(k)∼Beta(k,n+1−k). The proof of these statements is as follows. For U(k) to be between u and u + du, it is necessary that exactly k − 1 elements of the sample are smaller than u, and that at least one is between u and u + du. The probability that more than one is in this latter interval is already O(du2), so we have to calculate the probability that exactly k − 1, 1 and n − k observations fall in the intervals (0,u), (u,u+du) and (u+du,1) respectively. This equals (refer to multinomial distribution for details) n!(k−1)!(n−k)!uk−1⋅du⋅(1−u−du)n−k and the result follows. The mean of this distribution is k / (n + 1).
… excerpt ends here. Continue reading the full article.

