Can a Galway bus model look accurate and still get busy stops wrong?
Your spreadsheet model gives arrival times for a bus route in Galway. It looks accurate on the days you used to build it. But would you trust it to tell you when to leave home on a different day?
Read each row from left to right: the test day, the stop type, the predicted arrival and the observed arrival. Each pair is for the same stop on the same day. None of these days was used to set the model's parameters. Times are in seconds after eight in the morning.
On day two, start at the predicted time, four hundred and twenty seconds. Move left to the observed time, three hundred and eighty seconds. That move is minus forty seconds. We call it the residual: observed time minus predicted time. Here the prediction was forty seconds too late.
At another stop, the residual is minus twenty seconds. Remember that you start at the predicted time and move to the observed time. Which time is later? Pick an answer.
To find the residual, subtract the predicted time from the observed time. On day four, that's three hundred and seventy minus four hundred and twenty. The answer is minus fifty seconds. The minus sign tells you the prediction was fifty seconds too late.
Now try day three at the quiet stop. The spreadsheet predicted three hundred seconds, and you observed the bus at two hundred and ninety seconds. What residual goes on the plot? Pick an answer.
Plot residuals against test day. Zero means the times agree. On day one, three hundred and ten minus three hundred gives plus ten. The next three are minus forty, minus ten and minus fifty. The two biggest late errors are at busy stops. Does that pattern hold on more days?
The arrivals on the days you fitted the model helped set its parameters. So a close fit on those days cannot independently check how well it predicts. Fresh days give you that check. If you use their results to choose a correction, set aside other days to test the revision.
The busy-stop predictions were forty and fifty seconds late. Average those errors and subtract forty-five seconds from busy-stop predictions only. That adds forty-five seconds to each busy-stop residual. On fresh days five and six, minus thirty becomes plus fifteen, and minus forty becomes plus five. Both are closer to zero.
In your modelling project report, separate the days used to fit, refine and retest the model. Include your labelled residual plot. Justify the busy-stop correction and compare the old and revised residuals on fresh days. Explain what two days can show. If you revise the model again, test it on new days.