Why it happens

Why You Wait Longer for the Bus Than the Timetable Says

You're more likely to arrive during a long gap than a short one. At a stop timetabled every 10 minutes, with buses running up to 9 minutes late, 40 riders turning up at random waited 5 min 50 s on average, not 5. The average wait is the sum of the gaps squared over twice their total.

Riders turn up at random and wait for the next bus

StopWaiting for the bus
BusesRidersSeed
Average gap10:00Average waitnone yetGap riders landed innone yet

Two hours at the stop

020406080100120minutes after 8:00timetablebusesriders18m11m16m14m12m9m8m

Riders each gap caught, longest gap first

Average wait so far

024681012510152025303540ridersmin
  • Half the average gap
  • Exact for these gaps

1/11Two hours at one stop, 8:00 to 10:00, timetabled a bus every 10 minutes. With buses up to 9 min late, the gaps run from 4 min 45 s to 18 min 18 s, and 5 of the 12 are longer than 10 minutes. They still average exactly 10 minutes.

  • CH1 bus
  • CH2 rider

Watch the Python behind this model run, line by line

How to read the stage

Objective
Read the timetable, the buses and the riders, and find which gap each rider landed in.
How this step gets you there
The text names each row and panel in the order the run fills them.

The top row is the timetable, a bus every 10 minutes from 8:00. Under it is when each bus came, joined to its slot by a dashed line. Riders appear below at random moments, each with an arrow to the bus they catch. The bars count the riders each gap caught, longest gap first, and the chart tracks their average wait against 5 minutes.

Why long gaps catch more riders

Objective
Explain why riders arriving at random land in long gaps more often, and how that sets the average wait.
How this step gets you there
The text counts the riders the long gaps caught in the default run, then turns the two effects into the formula the chart's dashed line shows.

A rider picks a moment, not a gap, and an 18-minute gap holds more moments than a 5-minute one. With seed 199, the 5 gaps longer than 10 minutes cover 59% of the two hours and caught 29 of the 40 riders. Those riders also wait longer, half their gap on average. Both push the same way, so the exact wait is the gaps squared, summed, over twice the two hours: 5 min 50 s here.

Same average, three lines

Objective
Compare lines with the same average gap and say how the spread of the gaps changes the wait.
How this step gets you there
The stage holds the riders and the average gap fixed and changes only how uneven the gaps are, one line at a time.

The second stage sends 2,000 riders to three lines whose gaps all average 10 minutes. Buses on time give the 5 minutes the timetable promises. Buses up to 9 minutes late give 5 min 39 s. Buses at random times give 9 min 13 s, and 39.8% of those riders waited more than 10 minutes. For a given average gap, even spacing gives the shortest wait.

Three lines, the same 10-minute average

StopSame average, three lines
Most minutes lateRidersSeed
Average gap10:00

Three lines, each averaging a bus every 10 minutes

020406080100120minutesOn timeUp to 9 min lateAt random29m20m22m17m

Average wait

Riders who waited over 10 minutes

1/5Three lines over the same two hours, 13 buses each, so 12 gaps that average exactly 10 minutes. 2,000 riders turn up at random moments, and the same riders wait at all three stops.

  • CH1 bus
  • CH2 long waits

Watch the Python behind this model run, line by line

The class you're in is bigger than average

Objective
Recognize the same bias in class sizes, and connect it to the gap a rider sees.
How this step gets you there
The text gives the first published class-size numbers, then points to the matching readout on the stage.

Any time you sample by being there, big things get counted more. A class of 100 has 100 students to report its size; a class of 10 has 10. Scott Feld and Bernard Grofman found that Stony Brook's 737 classes in spring 1974 averaged 40.5 students, yet the average student sat in a class of 147. On the default line, the gap a rider landed in averaged 12 min 49 s against the buses' 10.

Where the idea comes from

Objective
Place the idea in its history, from Tokyo's trams in 1922 to measured trains today.
How this step gets you there
The text follows the idea from the first careful description to a modern measurement with its numbers.

In 1922 the physicist Torahiko Terada wrote about Tokyo's crowded trams: a packed tram after a long gap, then one nearly empty within a minute or two. He reasoned that a late tram picks up more passengers, loads slower and falls further behind. Probability now calls the effect the waiting-time or inspection paradox. In 2015 Allen Downey logged 70 Boston Red Line trains averaging 7.8 minutes apart; by his calculation riders waited 4.4, about 15% more than expected.

What the model leaves out

Objective
Say what the model simplifies about real buses and riders, and how far real waits stray from it.
How this step gets you there
The text lists the model's assumptions, names the real mechanism it skips, and gives one measured result.

The model draws each bus's lateness evenly up to a limit, and keeps the first and last bus on time so the 12 gaps average exactly 10 minutes. Real buses bunch, as Terada saw: a late bus meets more riders and slows further, while the one behind catches up. Riders who check a live map don't arrive at random. Jake VanderPlas measured Seattle's RapidRide in 2018 and found waits a minute or two over half the scheduled interval.

Questions

What is the inspection paradox?
When you sample things by running into them, each is picked in proportion to its size or length. A random moment lands in long gaps, a random student sits in big classes. The average you see is the average square over the average, E[x²]/E[x], which beats the plain average whenever the sizes vary.
How much longer is the wait when buses are uneven?
The average wait is half the average gap times one plus the variance of the gaps over the average gap squared. Even gaps add nothing. Gaps as spread out as their own average double the wait, from 5 minutes to 10 on a 10-minute line.
If buses arrive completely at random, how long do you wait?
As long as the average gap. When buses arrive at random times, a Poisson process, your wait is spread exactly like the gaps, so buses every 10 minutes on average mean a 10-minute average wait, twice the 5 you'd guess. The stage's random line, with only 12 gaps, measured 9 min 13 s.
Why do buses come in bunches?
A bus running late finds more riders waiting, so it takes longer to load and falls further behind. The bus after it finds fewer riders, loads quickly and catches up. Terada described exactly this on Tokyo's trams in 1922, and it's why a long gap often ends with two buses at once.

Practice the pattern

Finding each rider's bus is a binary search. The bus times are sorted, so halve the range until you reach the last bus at or before the rider's arrival; the next one is theirs. Binary Search drills the same move on a sorted array.

More of how it works