Order Statistics
The smallest, largest, and kth smallest observations in a random sample.
Draft — not yet reviewed by the site owner.
Prerequisites: Random Variables, Probability Distributions, Statistical Independence.
Order statistics are the values of a sample after sorting it. The first is the minimum, the last is the maximum, and the middle one is a sample median. They answer questions about extremes and rankings, such as the fastest race time or the second-highest bid.
Sort first, then ask an event question
Write for the sorted values of . The parentheses matter: is the second smallest value, not necessarily the original observation .
To find the distribution of the maximum , ask what it means for it to be at most . Every observation must be at most . If the observations are independent and identically distributed (iid) with cumulative distribution function (CDF) , then
For the minimum, it is simpler to start with the opposite event: the minimum is above only if every observation is above . Thus
These formulas are probabilities of events, not densities. When has density , differentiating gives and .
Worked example: three uniform draws
Suppose are independent and uniform on . What is the probability that all three are below ? It is . That is also , because the maximum is below exactly when all three are.
What is the probability that the minimum is below ? The chance that all three are above is , so the answer is .
The maximum tends upward and the minimum tends downward as the sample grows. This does not mean any individual observation changes; sorting selects more extreme values from a larger collection.
The kth smallest value
The event means at least of the observations are at most . Each iid observation passes that threshold with probability . The number that pass is binomial, so
This is the key idea behind the general formula. For continuous iid observations with density , differentiating gives
For uniform observations, there, and this is a Beta density with parameters and . Sample quantiles are order statistics or averages of neighboring ones, depending on the convention.
When the shortcut fails
The power and binomial formulas require independent observations with the same distribution. If the observations have different CDFs but remain independent, the maximum still has CDF , but the simple shortcut is gone. Dependence can change the answer even more: if all are the same random value, their maximum has the same distribution as any one of them.
Further reading
- MIT OpenCourseWare, “Order Statistics and Expectations”. Lecture 11 in this public notes collection.