Expected Maximum of n Uniform Draws
If you draw n independent numbers uniformly from [0,1], the expected value of the largest one is n/(n+1) — a clean order-statistics result with a one-line derivation and real uses in estimating an unknown maximum from a sample.
Prerequisites: Conditional Probability
The problem. Draw independent random numbers, each uniform on . What's the expected value of the largest one? For it's obviously . For , is it still ? Most people guess it stays near or creeps up slowly; the actual answer is for , and in general — a formula that climbs toward 1 faster than intuition suggests.
Deriving it: work with the CDF, not the density
Let where each independently. The trick is to first find rather than jumping to the density of . Since exactly when every , and the draws are independent:
In plain English: the max is below some threshold only if all draws individually cleared that threshold, and independence lets those probabilities multiply. Differentiating gives the density , and then:
The density of the maximum, , is a power function that piles up more and more mass near as grows — drag the exponent on the explorer above to see how a higher power concentrates the curve toward the right edge, the same visual reason larger samples push their maximum closer to the true upper bound.
Worked example: n=2 and n=3 by hand
For : . Sanity check with a direct argument — among two uniform draws, by symmetry the larger one should sit, on average, two-thirds of the way up, and the smaller one one-third of the way up (they should average back to together: , average , correct). For : . Adding a third draw pushes the expected maximum up by another — each additional draw gives the max another chance to be pushed toward 1, but with diminishing returns, since approaches 1 asymptotically rather than reaching it.
Worked example: estimating an unknown range from data
Suppose you observe independent measurements, each uniformly distributed on for some unknown , and the largest observed value is 18. Since , a natural (bias-corrected) estimate of is — scaling the observed maximum up slightly, since on average the max of 9 draws only reaches 90% of the true ceiling. This is the classic "German tank problem" logic (estimating the size of a serial-numbered population from the largest number seen), just phrased with continuous uniforms instead of discrete labels.
The general technique: CDF-first for order statistics
Any question about the expectation of a maximum or minimum of independent draws should start from (for a max) or the analogous complement argument for a min, rather than trying to guess the density directly. This "CDF of the extreme, then differentiate" pattern is the standard route into order-statistics problems and generalizes cleanly beyond the uniform distribution to any distribution with a known CDF.
For independent Uniform draws, , derived by first finding and differentiating. The maximum approaches 1 as grows, but only at rate — slower than intuition often suggests.
For order-statistics questions, always find the CDF of the extreme value first (a product for a max, a complement-of-a-product for a min) — trying to reason about the density directly is much more error-prone.
Practice in interviews
Further reading
- Casella & Berger, Statistical Inference, ch. 5