In Flight delay information for United flights, I talked about an application I wrote to show United flight delays over time. I have now completely rewritten that application to allow comparison of multiple flights on one graph.
People that travel for a living know that early morning flights tend to be less delayed than evening flights. In the morning, the planes are usually already at the airport, so there is no chance of an incoming flight delay. There are no lines of planes waiting to take off yet, so the time between leaving the gate and getting into the air tends to be a lot less.
The difference in these times can be dramatic. Here is a report comparing an early morning flight with an evening flight from Newark to Chicago (two heavily delayed airports): Flight Delays
The report shows a table of min, max, and median delays:
| Flight | Min Delay | Median Delay | Max Delay |
|---|---|---|---|
| Flight 655 (EWR -> ORD) on Thursday at 07:38 PM | -14 | 40 | 239 |
| Flight 635 (EWR -> ORD) on Thursday at 05:58 AM | -26 | 0 | 157 |
And here are the two graphs shown in the report above:


As you can see from the first graph, day by day, flight 655 (departing around 7:38 PM) is almost always more delayed than flight 635 (departing around 5:58 AM).
The second graph shows a histogram. You can see that flight 635 is clustered more heavily to the left (-40 to 20) which shows that it is generally between 40 minutes early and 20 minutes late. Flight 655 is much more spread out to the right, which shows that it has far more delays. On one day, it was over 220 minutes late!
4 Responses to “Flight delays application overhaul”
Sorry, the comment form is closed at this time.




Very cool Paul. How are you getting the data, are you downloading it and storing it locally, or is there a webservice you are calling on the site?
I’d be interested in hearing how your rails app works
Hi Mike, I’ve been meaning to write this up as a separate blog post. I download the FAA data from the Bureau of Transportation Statistics and store it locally in CouchDB. Then, I fetch it from my Rails app using CouchRest and draw the graphs using Gruff.
Hi-
I am doing a report on the FAA for a college business course; Your program would be of great use for comparing flight delays and air traffic control performances; How can I utilize your program?
Hi Marisa, I haven’t released my program, but you can download all of the raw data from the Bureau of Transportation Statistics