On this page
When a question asks about "the largest of three random numbers" or "the first of five buses to arrive", it is asking about an order statistic. Sort n samples from smallest to largest and call them X(1) ≤ X(2) ≤ … ≤ X(n). The k-th of these is the k-th order statistic, so X(1) is the minimum and X(n) is the maximum (order statistic, Wikipedia). A standard reference book on the subject is Order Statistics by H. A. David and H. N. Nagaraja (Wiley, 2003).
How do you find the distribution of the maximum?
The largest of n numbers is at most x exactly when every one of them is at most x. If the samples are independent and share the CDF F, the maximum has CDF P(max ≤ x) = F(x)^n (order statistic formulas).
Differentiate to get the density of the maximum: n F(x)^(n−1) f(x).
How do you find the distribution of the minimum?
Flip the event. The smallest is greater than x exactly when every sample is greater than x, so P(min > x) = (1 − F(x))^n and the minimum has CDF 1 − (1 − F(x))^n (order statistic formulas).
This handles waiting times too. If each of n independent waits has P(T > t) = e^(−λt), the first to finish has P(min > t) = e^(−nλt): still exponential, at n times the rate (more in why exponential waiting times are memoryless).
What are E[max] and E[min] for uniform(0,1) samples?
Take F(x) = x on [0, 1]. Then P(max ≤ x) = x^n, the density is n x^(n−1), and E[max] = ∫ x · n x^(n−1) dx from 0 to 1 = n/(n + 1) (uniform order statistics).
By symmetry (1 − X is also uniform, and it turns the largest value into the smallest), E[min] = 1 − n/(n + 1) = 1/(n + 1). With one sample both give 1/2. With nine samples the maximum averages 0.9 and the minimum 0.1.
A worked example in JEE style. Three numbers are chosen independently and uniformly from [0, 1].
P(largest < 1/2) = (1/2)^3 = 1/8.
P(smallest > 1/3) = (2/3)^3 = 8/27.
E[largest] = 3/4 and E[smallest] = 1/4.
The discrete version works the same way. Roll two fair dice. P(max ≤ 4) = (4/6)^2 = 16/36 and P(max ≤ 3) = (3/6)^2 = 9/36, so P(max = 4) = 16/36 − 9/36 = 7/36. "Exactly k" is always "at most k" minus "at most k − 1".
What is the distribution of the k-th order statistic?
For the k-th smallest to sit at x, you need exactly k − 1 samples below x, one at x and n − k above it. Counting the ways to choose which sample plays which role gives the density f(k)(x) = n! / ((k − 1)! (n − k)!) · F(x)^(k−1) · (1 − F(x))^(n−k) · f(x) (order statistic formulas).
For uniform(0,1) samples, the k-th order statistic follows a Beta(k, n + 1 − k) distribution, whose mean is k/(n + 1) (order statistic, uniform case). Put k = n and k = 1 and you get back n/(n + 1) and 1/(n + 1).
The means sit evenly at 1/(n + 1), 2/(n + 1), …, n/(n + 1). The n + 1 gaps that n random points cut in [0, 1] each average 1/(n + 1); the diagram at the top shows this for n = 5.
Is the sample median an order statistic?
Yes, when n is odd. If n = 2m + 1, the sample median is X(m+1) (order statistic, median). For uniform samples that makes it Beta(m + 1, m + 1), centred on 1/2.
How spread out is it? A Beta(a, b) variable has variance ab / ((a + b)^2 (a + b + 1)) (beta distribution, Wikipedia). For n = 5 the median is Beta(3, 3), with variance 9 / (36 × 7) = 1/28, about 0.036. The same formula with a = b = 1 gives the variance of one uniform sample, 1/12, so the mean of five uniform samples has variance 1/60, about 0.017. For flat data like this the mean is the steadier estimate of the centre; the median earns its place when the data has outliers.
How should you practise order statistics?
Drill the maximum and minimum of dice and uniform numbers until the "all" and "none" sentences come automatically, then move to "exactly k" questions. Our guide to linearity of expectation with indicator variables pairs well with this topic, and how to prepare probability and statistics for JEE Advanced fits it into a study plan.
Stuck on the counting or the integral? The Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer. If the beta distribution is new to you, look it up in the Fermi Concept Library first.



