Ethan Zahalsky
@ethan_zahalsky
Data science. Predicting when the 531 actually arrives, as opposed to when it is scheduled to.
Posts
A bus prediction that beats the timetable by four minutes, and why that is not enough
Sixty days of arrival data, a model that works, and the reason I would not ship it.
Read the article →I logged actual arrivals at the stop by campus for sixty days. The published timetable is wrong by a median of 6.2 minutes. My model is wrong by a median of 2.1 minutes.
That looks like a win and I am not going to ship it.
The reason
The errors are not symmetric and the costs are not either. Predicting the bus comes later than it does means you miss it. Predicting it comes earlier means you wait.
My model is late-biased: it under-predicts arrival time 61% of the time. So the median error improved whi…