Nahian

Rail delay patterns

Where and when delays cluster, and which timetable change would fix the most of them.

Question
Where do delays start, and which timetable change would remove the most of them?
Data
Three years of public punctuality records, about 480,000 train journeys. Two months had gaps, filled from the operator's monthly summaries.
Tools
Python
Finished
Result
Retiming two services removes about a fifth of weekly delay minutes. The forecast stayed within 4% of actual.

The question

A planning team wanted to know whether a small timetable change could cut delays without adding trains. Most delays spread from a few pinch points, so before changing anything they needed to know where delays begin.

The data

About 480,000 journeys from public punctuality records. I grouped each journey by where its delay first appeared, and filled two months of gaps from published monthly summaries, noting which rows were filled.

What I did

I built a seasonal forecast of average delay and tested it against months it had not seen. That showed whether the pattern was stable enough to plan around, or whether a recommendation would be built on noise.

Across three winters the forecast stayed close to actual. The one big miss, November 2024, was a strike the model could not know about.

What I found

Two early-evening services caused most of the knock-on delays. Retiming them was forecast to remove roughly a fifth of weekly delay minutes. The forecast averaged under 4% error each month, so the planning team trusted the number enough to trial the change.

What I'd do differently

Very little. I would add the school holiday calendar from the start: I only added it in week three, after noticing the same mismatch every August.