In
statistics, the ''k''th order statistic of a
statistical sample is equal to its ''k''th-smallest value.
Together with
rank statistics
A ranking is a relationship between a set of items such that, for any two items, the first is either "ranked higher than", "ranked lower than" or "ranked equal to" the second.
In mathematics, this is known as a weak order or total preorder of o ...
, order statistics are among the most fundamental tools in
non-parametric statistics
Nonparametric statistics is the branch of statistics that is not based solely on parametrized families of probability distributions (common examples of parameters are the mean and variance). Nonparametric statistics is based on either being distri ...
and
inference
Inferences are steps in reasoning, moving from premises to logical consequences; etymologically, the word '' infer'' means to "carry forward". Inference is theoretically traditionally divided into deduction and induction, a distinction that ...
.
Important special cases of the order statistics are the
minimum
In mathematical analysis, the maxima and minima (the respective plurals of maximum and minimum) of a function, known collectively as extrema (the plural of extremum), are the largest and smallest value of the function, either within a given r ...
and
maximum value of a sample, and (with some qualifications discussed below) the
sample median and other
sample quantiles.
When using
probability theory
Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
to analyze order statistics of
random samples from a
continuous distribution, the
cumulative distribution function
In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x.
Ev ...
is used to reduce the analysis to the case of order statistics of the
uniform distribution
Uniform distribution may refer to:
* Continuous uniform distribution
* Discrete uniform distribution
* Uniform distribution (ecology)
* Equidistributed sequence In mathematics, a sequence (''s''1, ''s''2, ''s''3, ...) of real numbers is said to be ...
.
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, 8,
the order statistics would be denoted
:
where the subscript enclosed in parentheses indicates the th order statistic of the sample.
The first order statistic (or smallest order statistic) is always the
minimum
In mathematical analysis, the maxima and minima (the respective plurals of maximum and minimum) of a function, known collectively as extrema (the plural of extremum), are the largest and smallest value of the function, either within a given r ...
of the sample, that is,
:
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 , the th order statistic (or largest order statistic) is the
maximum, that is,
:
The
sample range
In statistics, the range of a set of data is the difference between the largest and smallest values,
the result of subtracting the sample maximum and minimum. It is expressed in the same units as the data.
In descriptive statistics, range is t ...
is the difference between the maximum and minimum. It is a function of the order statistics:
:
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 of observations is
odd. More precisely, if for some integer , then the sample median is
and so is an order statistic. On the other hand, when is
even, and there are two middle values,
and
, 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 ''X''
1, ''X''
2..., ''X''
''n'', the order statistics X
(1), X
(2), ..., X
(''n'') are also random variables, defined by sorting the values (
realizations) of ''X''
1, ..., ''X''
''n'' in increasing order.
When the random variables ''X''
1, ''X''
2..., ''X''
''n'' form a
sample they are
independent and identically distributed. This is the case treated below. In general, the random variables ''X''
1, ..., ''X''
''n'' can arise by sampling from more than one population. Then they are
independent
Independent or Independents may refer to:
Arts, entertainment, and media Artist groups
* Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s
* Independe ...
, but not necessarily identically distributed, and their
joint probability distribution
Given two random variables that are defined on the same probability space, the joint probability distribution is the corresponding probability distribution on all possible pairs of outputs. The joint distribution can just as well be considere ...
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
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
(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
, the order statistics for that sample have cumulative distributions as follows
(where ''r'' specifies which order statistic):
:
the corresponding probability density function may be derived from this result, and is found to be
:
Moreover, there are two special cases, which have CDFs that are easy to compute.
:
:
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
Uniform distribution may refer to:
* Continuous uniform distribution
* Discrete uniform distribution
* Uniform distribution (ecology)
* Equidistributed sequence In mathematics, a sequence (''s''1, ''s''2, ''s''3, ...) of real numbers is said to be ...
on the
unit interval
In mathematics, the unit interval is the closed interval , that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1. It is often denoted ' (capital letter ). In addition to its role in real analys ...
have
marginal distribution
In probability theory and statistics, the marginal distribution of a subset of a collection of random variables is the probability distribution of the variables contained in the subset. It gives the probabilities of various values of the variables ...
s 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
is a
random sample drawn from a continuous distribution with cdf
. Denoting
we obtain the corresponding random sample
from the standard
uniform distribution
Uniform distribution may refer to:
* Continuous uniform distribution
* Discrete uniform distribution
* Uniform distribution (ecology)
* Equidistributed sequence In mathematics, a sequence (''s''1, ''s''2, ''s''3, ...) of real numbers is said to be ...
. Note that the order statistics also satisfy
.
The probability density function of the order statistic
is equal to
[.]
:
that is, the ''k''th order statistic of the uniform distribution is a
beta-distributed random variable.
:
The proof of these statements is as follows. For
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'' + d''u''. The probability that more than one is in this latter interval is already
, so we have to calculate the probability that exactly ''k'' − 1, 1 and ''n'' − ''k'' observations fall in the intervals
,
and
respectively. This equals (refer to
multinomial distribution
In probability theory, the multinomial distribution is a generalization of the binomial distribution. For example, it models the probability of counts for each side of a ''k''-sided dice rolled ''n'' times. For ''n'' independent trials each of w ...
for details)
:
and the result follows.
The mean of this distribution is ''k'' / (''n'' + 1).
The joint distribution of the order statistics of the uniform distribution
Similarly, for ''i'' < ''j'', the
joint probability density function of the two order statistics ''U''
(''i'') < ''U''
(''j'') can be shown to be
:
which is (up to terms of higher order than
) the probability that ''i'' − 1, 1, ''j'' − 1 − ''i'', 1 and ''n'' − ''j'' sample elements fall in the intervals
,
,
,
,
respectively.
One reasons in an entirely analogous way to derive the higher-order joint distributions. Perhaps surprisingly, the joint density of the ''n'' order statistics turns out to be ''constant'':
:
One way to understand this is that the unordered sample does have constant density equal to 1, and that there are ''n''! different permutations of the sample corresponding to the same sequence of order statistics. This is related to the fact that 1/''n''! is the volume of the region