Sample Max Distribution Calculator

Sample Maximum Distribution Calculator

Find how the largest (or smallest) of n random values behaves: the chance it passes a level, its expected value and its likely range, for normal, uniform or exponential data.

P(max ≤ x) = F(x)ⁿ · P(min ≤ x) = 1 − (1 − F(x))ⁿ

Each value follows

The n values are assumed independent and drawn from the same distribution.

Choose a distribution, then enter its parameters, the sample size and a level

What is the Distribution of a Sample Maximum?

The sample maximum is the largest of n random values, and it has its own distribution. The more values you take, the further up the tail the largest one tends to sit.

That's why the tallest person in a big room is taller than in a small one, why a structure must be designed for the worst storm in 50 years rather than an average one, and why the slowest of many servers sets the response time of a web page.

The smallest value works the same way from the other end: the weakest link in a chain, the first of several components to fail, or the fastest of many runners.

Sample Maximum and Minimum Formula

Order statistics as set out in Blitzstein and Hwang, section 8.6, and David and Nagaraja's Order Statistics. See Sources.

1. The maximum is below x only if every value is

P(max ≤ x) = F(x)ⁿ

2. The minimum is above x only if every value is

P(min > x) = (1 − F(x))ⁿ

3. Percentiles and expected values

pth percentile of the max = F⁻¹(p^(1/n))
Uniform: E(max) = a + (b − a) n ÷ (n + 1) · Exponential: E(max) = mean × (1 + ½ + … + 1/n)

For normal data there's no simple formula, so the calculator integrates numerically.

Worked Example: The Tallest of 30 People

Given:
Heights are normal with mean 170 cm and SD 10 cm. In a room of 30, what's the chance someone is over 190 cm?
Step 1:
One person at or under 190:
F(190) = Φ(2) = 0.97725
Step 2:
All 30 at or under 190:
0.97725³⁰ = 0.5014
Step 3:
Complement:
1 − 0.5014 = 0.4986
Result:
About a 50% chance the tallest is over 190 cm

A height only 1 person in 44 reaches is a coin flip once there are 30 people. The expected tallest is about 190.4 cm, two standard deviations above average.

Expected Largest of n Normal Values

In standard deviations above the mean. It grows slowly: a thousand times more values adds only about two SDs.

Expected maximum of n standard normal values
nExpected largest (SDs)Heights example
20.564175.6 cm
51.163181.6 cm
101.539185.4 cm
302.043190.4 cm
1002.508195.1 cm
1,0003.241202.4 cm

Common Sample Maximum Mistakes

  • Treating an extreme as unusual. The largest of many values is bound to look extreme. A 1-in-44 height is unremarkable in a room of 30.
  • Multiplying the tail by n. 30 × 2.3% = 68% overcounts; the correct chance is 1 − 0.977³⁰ = 50%.
  • Trusting the normal far into the tail. The maximum of thousands of values depends on the extreme tail, where real data often differ from the normal curve.
  • Ignoring dependence. Readings from the same day, machine or family are correlated, and their maximum is less extreme than the independent formula predicts.

Sample Maximum Distribution FAQs

What are order statistics?

The values of a sample sorted from smallest to largest. The maximum and minimum are the extreme order statistics; the median is the middle one.

How is this used in engineering?

Flood defences, wind loads and bridge designs are set by the largest values expected over a lifetime, which is a sample maximum problem.

What is extreme value theory?

The study of how maxima behave for large n. Whatever the parent distribution, suitably scaled maxima approach one of three shapes: Gumbel, Fréchet or Weibull.

Why does the expected maximum grow so slowly for normal data?

Normal tails thin out extremely fast, so pushing further out takes vastly more values. The expected maximum grows roughly like √(2 ln n).

What is the German tank problem?

Estimating the size of a population from the largest serial number seen. With uniform serial numbers from 1 to N, the best estimate is max × (1 + 1/n) − 1.

How do I find the smallest instead?

Choose “Smallest value”. The chance the smallest falls below x is 1 − (1 − F(x))ⁿ.

Why is the exponential minimum so simple?

The smallest of n exponential waits with mean m is itself exponential with mean m ÷ n: n independent clocks ring n times as often.

What does SMpx stand for?

It’s shorthand for the sample maximum (and minimum) distribution, which is what this calculator works out.

Sources

Related Tools