On a metro line, the gaps between consecutive trains are independent, and each gap is either 4 minutes or 16 minutes with probability 21 each. You arrive at the platform at a uniformly random moment over a very long day, without looking at the timetable. What is your expected waiting time, in minutes, until the next train?
Express as a simplified fraction or a decimal to 3 places
Show solution
The naive answer, half the average gap of 10 minutes, is wrong: you are more likely to arrive during a long gap. Over a long time, half of all gaps are 16 minutes and half are 4, so the fraction of time covered by 16-minute gaps is 16+416=54, and by 4-minute gaps 51. Within a gap your wait is uniform, averaging half the gap. So the expected wait is 54⋅8+51⋅2=532+52=534=6.8 minutes.