
In
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, the ''k''th order statistic of a
statistical sample
In this statistics, quality assurance, and survey methodology, sampling is the selection of a subset or a statistical sample (termed sample for short) of individuals from within a statistical population to estimate characteristics of the whole ...
is equal to its ''k''th-smallest value.
Together with
rank statistics
In statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying s ...
, order statistics are among the most fundamental tools in
non-parametric statistics
Nonparametric statistics is a type of statistical analysis that makes minimal assumptions about the underlying distribution of the data being studied. Often these models are infinite-dimensional, rather than finite dimensional, as in parametric s ...
and
inference
Inferences are steps in logical 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 distinct ...
.
Important special cases of the order statistics are the
minimum and
maximum
In mathematical analysis, the maximum and minimum of a function (mathematics), function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given Interval (ma ...
value of a sample, and (with some qualifications discussed below) the
sample median and other
sample quantiles.
When using
probability theory
Probability theory or probability calculus 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 expre ...
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.
Ever ...
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 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 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
In mathematical analysis, the maximum and minimum of a function (mathematics), function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given Interval (ma ...
, that is,
:
The
sample range is the difference between the maximum and minimum. It is a function of the order statistics:
:
A similar important statistic in
exploratory data analysis
In statistics, exploratory data analysis (EDA) is an approach of data analysis, analyzing data sets to summarize their main characteristics, often using statistical graphics and other data visualization methods. A statistical model can be used or ...
that is simply related to the order statistics is the sample
interquartile range
In descriptive statistics, the interquartile range (IQR) is a measure of statistical dispersion, which is the spread of the data. The IQR may also be called the midspread, middle 50%, fourth spread, or H‑spread. It is defined as the differen ...
.
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 Pennsylvania, United States
* Independentes (English: Independents), a Portuguese artist ...
, but not necessarily identically distributed, and their
joint probability distribution
A joint or articulation (or articular surface) is the connection made between bones, ossicles, or other hard structures in the body which link an animal's skeletal system into a functional whole.Saladin, Ken. Anatomy & Physiology. 7th ed. McGraw- ...
is given by the
Bapat–Beg theorem In probability theory, the Bapat–Beg theorem gives the joint probability distribution of order statistics of independent (probability), independent but not necessarily identically distributed random variables in terms of the cumulative distributio ...
.
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), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
(PDF), that is, they are
absolutely continuous
In calculus and real analysis, absolute continuity is a smoothness property of functions that is stronger than continuity and uniform continuity. The notion of absolute continuity allows one to obtain generalizations of the relationship betwe ...
. 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 proof of this formula is pure
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
: for the
th order statistic to be
, the number of samples that are
has to be between
and
. In the case that
is the largest order statistic
, there has to be
samples
(each with an independent probability of
) and
samples
(each with an independent probability of
). Finally there are
different ways of choosing which of the
samples are of the
kind.
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 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 analysi ...
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 variable ...
s belonging to the
beta distribution
In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval , 1
The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
or (0, 1) in terms of two positive Statistical parameter, parameters, denoted by ''alpha'' (''α'') an ...
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. 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 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