math.vinhnx.ca / statistics / inspection paradox
Statistics that surprise

Why the bus always seems late

Buses come every 10 minutes on average, and you turn up at a random moment. Surely you wait 5 minutes on average? Only if the buses run like clockwork. If arrivals are random, you wait 10 minutes, the full average gap. If they bunch up, you wait longer still. Nobody is lying about the timetable: you are just more likely to arrive during a long gap.

Two hours at the bus stop

Gap lengths: timetable vs passengers

same buses, different counting

Average wait vs regularity

mean gap fixed at 10 min

Length-biased sampling

Gaps between buses have some distribution with mean $\mu$. Picking a gap uniformly at random from the timetable gives mean $\mu$. But you don’t pick a gap. You pick a moment, and a 20-minute gap contains twice as many moments as a 10-minute one. So the gap you land in has density proportional to its length:

$$f_{\text{seen}}(g) = \frac{g\, f(g)}{\mu}, \qquad E[G_{\text{seen}}] = \frac{E[G^2]}{E[G]} = \mu\,(1 + \mathrm{CV}^2),$$

where $\mathrm{CV} = \sigma/\mu$ is the coefficient of variation of the gaps. You arrive uniformly inside that gap, so you wait half of it on average:

$$E[\text{wait}] = \frac{\mu}{2}\,(1 + \mathrm{CV}^2).$$

Clockwork buses (CV = 0) give $\mu/2 = 5$ minutes. Random, Poisson arrivals (exponential gaps, CV = 1) give $\mu = 10$: the bus is “memoryless”, so however long you have already waited, the expected remaining wait is still 10. Bunched buses (CV > 1), which is what real routes drift toward as a late bus picks up extra passengers and slows further, give even more.

Try it: , then , then .

The same bias, everywhere

Allen Downey calls this the inspection paradox and argues it is one of the most common errors in everyday statistics. Whenever the chance of observing something grows with its size, the sample you see is biased toward the big ones.