At Pune station, can you estimate the median wait from a tally of time bands?
Suppose you record how long twenty passengers wait at Pune station. Your tally shows how many waited in each time band, but the exact times are gone. How close can you get to the middle wait?
Read the frequencies first: four, nine and seven. To get the running totals, start at four, add nine to get thirteen, then add seven to get twenty. Half of twenty is ten. The first running total above ten is thirteen, so the median class is ten to twenty minutes.
On this line, you're counting passengers, not minutes. Four are already counted before the class starts. Move six more to reach ten, then three more to reach thirteen. You've moved six of the nine counts in the class.
Stay on the count line for a moment. The halfway count is ten, and four observations come before the median class. How many more counts do you need to reach halfway? Pick an answer.
Start at the lower boundary. Take half the total, subtract the count before the class and divide by the class frequency. Multiply that fraction by the class width and add the result to the boundary. This estimate assumes an even spread within the class. It's called interpolation.
The median class is ten to twenty. Use twenty for the total, ten for the lower boundary, four for the preceding count and nine for the class frequency. The width is ten. Substitute to get ten plus six ninths of ten, or fifty thirds. Round to sixteen point six seven minutes.
Now group another set of waits into the same three bands. Their frequencies are three, eight and five. Half of sixteen is eight, so the median class is ten to twenty again. What median do you estimate? Pick an answer.
Thirteen is the total through the median class. Subtracting thirteen from ten gives negative three, so the formula takes you below the lower boundary. Use four, the total before the class. Ten minus four gives six, so you move from the lower boundary into the class.
Nine is the highest frequency, so ten to twenty is the modal class. In the mode formula, compare nine with its neighbours, four and seven. The gaps are five and two. Add five sevenths of the class width to the lower boundary. That gives about seventeen point one four minutes.