Order
Statistics
Learn how sorting random samples unlocks powerful tools: from the minimum and maximum to the median and beyond, with their exact probability distributions.
What Are Order Statistics?
Given a random sample \( X_1, X_2, \ldots, X_n \), we sort all values from smallest to largest. The sorted values are called order statistics and are denoted:
Even though the original \( X_i \) may be i.i.d., the order statistics \( X_{(k)} \) are neither independent nor identically distributed: sorting introduces both dependence and distinct marginal distributions.
Sorting a Random Sample
Why Do They Matter?
CDF of \( X_{(k)} \)
Let \( X_1, \ldots, X_n \) be i.i.d. with CDF \( F(x) \). The event \( \{X_{(k)} \leq x\} \) happens when at least \( k \) of the \( n \) observations fall at or below \( x \). Each observation does so independently with probability \( F(x) \).
This is simply the tail of a \( \text{Binomial}(n, F(x)) \) distribution. Think of it as: flip \( n \) coins, each with success probability \( F(x) \), and ask for \( \geq k \) successes.
PDF of \( X_{(k)} \)
Differentiating the CDF (or using a counting argument for the infinitesimal event) gives the marginal density of the \( k \)-th order statistic:
Minimum vs Maximum
\( f_{X_{(1)}}(x) = n\,[1-F(x)]^{n-1}\,f(x) \)
CDF: \( F_{X_{(1)}}(x) = 1-[1-F(x)]^n \)
\( f_{X_{(n)}}(x) = n\,[F(x)]^{n-1}\,f(x) \)
CDF: \( F_{X_{(n)}}(x) = [F(x)]^n \)
Uniform Case: the Beta Connection
When \( X_i \sim \text{Uniform}(0,1) \), we have \( F(x)=x \) and \( f(x)=1 \). The PDF simplifies beautifully:
This means \( U_{(k)} \sim \text{Beta}(k, n-k+1) \), giving us:
Beta Densities for \( n=5 \)
Joint Density of \( X_{(i)} \) and \( X_{(j)} \)
For \( 1 \leq i < j \leq n \), the joint PDF of two order statistics is:
The logic extends the marginal case: the \( n \) observations are partitioned into five regions on the real line: below \( x \), at \( x \), between \( x \) and \( y \), at \( y \), and above \( y \).
Range and Midrange
Measures spread of the data. Derived from the joint density of \( (X_{(1)}, X_{(n)}) \).
Estimates the center. For symmetric distributions, it is unbiased for the mean.
How to Find the PDF: Step by Step
Example: Exponential Minimum
Let \( X_1, \ldots, X_n \stackrel{\text{iid}}{\sim} \text{Exp}(\lambda) \). Find the distribution of \( X_{(1)} = \min(X_1, \ldots, X_n) \).
Example: Uniform Maximum
Let \( X_1, \ldots, X_4 \stackrel{\text{iid}}{\sim} \text{Uniform}(0,\theta) \). Find the PDF and mean of \( X_{(4)} \).
Since \( E[X_{(4)}] = \frac{4\theta}{5} \), the unbiased estimator of \( \theta \) based on the max is \( \hat{\theta} = \frac{5}{4}X_{(4)} \). This is the foundation of the famous German tank problem estimator.
Example: Median of 3 Uniforms
Let \( U_1, U_2, U_3 \stackrel{\text{iid}}{\sim} \text{Uniform}(0,1) \). Find the PDF and variance of the median \( U_{(2)} \).
Common Mistakes
Summary Table
| General i.i.d. \( F, f \) | \( \text{Uniform}(0,1) \) | |
|---|---|---|
| PDF of \( X_{(k)} \) | \( \frac{n!}{(k\!-\!1)!(n\!-\!k)!} F^{k-1}(1\!-\!F)^{n-k}f \) | \( \text{Beta}(k, n-k+1) \) |
| CDF of \( X_{(k)} \) | \( \sum_{j=k}^{n}\binom{n}{j}F^j(1\!-\!F)^{n-j} \) | Regularized incomplete beta |
| \( E[X_{(k)}] \) | Depends on \( F \) | \( \frac{k}{n+1} \) |
| Min \( X_{(1)} \) | \( n(1-F)^{n-1}f \) | \( \text{Beta}(1, n) \) |
| Max \( X_{(n)} \) | \( nF^{n-1}f \) | \( \text{Beta}(n, 1) \) |
Question 1 of 5
Let \( X_1, \ldots, X_5 \stackrel{\text{iid}}{\sim} \text{Uniform}(0,1) \). What is the distribution of \( X_{(3)} \)?
Question 2 of 5
If \( X_1, \ldots, X_n \stackrel{\text{iid}}{\sim} \text{Exp}(\lambda) \), what is the distribution of \( X_{(1)} \)?
Question 3 of 5
For \( U_{(k)} \) from a \( \text{Uniform}(0,1) \) sample of size \( n \), what is \( E[U_{(k)}] \)?
Question 4 of 5
In the general PDF formula for \( X_{(k)} \), the exponent on \( F(x) \) is:
Question 5 of 5
Are the order statistics \( X_{(1)} \) and \( X_{(n)} \) from an i.i.d. sample independent?