Skip to content

chanulee1/flights_data_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Project Background

This project analyzes the on-time flight performance data of the air carriers that held over one percent of the industry's total domestic scheduled-service passenger revenues in the US in the year 2007. This included the following 20 airlines:

  • AirTran Airways Corporation
  • Alaska Airlines Inc.
  • Aloha Airlines Inc.
  • American Airlines Inc.
  • American Eagle Airlines Inc.
  • Atlantic Southeast Airlines
  • Comair Inc.
  • Continental Air Lines Inc.
  • Delta Air Lines Inc.
  • Expressjet Airlines Inc.
  • Frontier Airlines Inc.
  • Hawaiian Airlines Inc.
  • JetBlue Airways
  • Mesa Airlines Inc.
  • Northwest Airlines Inc.
  • Pinnacle Airlines Inc.
  • Skywest Airlines Inc.
  • Southwest Airlines Co.
  • United Air Lines Inc.
  • US Airways Inc.

Performance is evaluated based on two main areas: cancellations and arrival delays*.

Insights are provided on the following key areas:

  • Seasonal Patterns: Changes in cancellation and delay volume based on the time of year.
  • Cancellation Analysis: Cancellation volume and rates by airline and airport, broken down by cause.
  • Delay Analysis: Delay volume and rates by airline and airport, broken down by cause.

The SQL queries used to inspect and clean the data for this analysis can be found here.

Targeted SQL queries regarding various business questions can be found here.

An interactive Tableau dashboard used to delay time analysis results can be found here.

*Note: A flight is considered "delayed" if it arrived at least 15 minutes later than the scheduled arrival time. Thus, flights that arrived less than 15 minutes late are technically not "delayed", but these flights were still included in the delay time distribution analysis.

Data Structure & Initial Checks

The original data was stored in csv files and was loaded into a database. The database constructed for this project (MySQL) consists of three tables: flights_on_time_2007, carriers, and airports, with a total row count of 7458082 records. A description of each table is as follows:

  • flights_on_time_2007: Flight records, including data such as the departure and arrival time, cancellation status, and delay times.
  • carriers: Air carrier records, including their codes and descriptions.
  • airports: Airport records, including their codes and locations.

The following ER diagrams contain only the fields that are relevant to the analysis. Database ER diagram (crow's foot) (1)

Executive Summary

Overview of Findings

Busy Seasons

Although it varied across different airlines, the general seasonal patterns were as follows:

  • The number of flights remained relatively constant over the year, with small spikes during the summer and towards the beginning/end of the year.
  • The number of cancellations spiked during the spring and summer months, as well as towards the beginning/end of the year.
  • The number of delays also spiked during the spring and summer months, as well as towards the beginning/end of the year.

Airlines with the Best and Worst Cancellation Performance

Based on cancellation rate, the worst-performing airline was American Eagle Airlines Inc., which cancelled roughly 4.22% of their flights in 2007 (540494 total flights). The best-performing airline was Frontier Airlines Inc., with a cancellation rate of 0.41% (97760 total flights).

Airlines with the Best and Worst Delay Performance

Based on delay rate, the worst-performing airline was Atlantic Southeast Airlines. Roughly 31.91% of their flights in 2007 were delayed (286234 total flights). The best-performing airline was Hawaiian Airlines Inc., with a delay rate of 6.29% (56175 total flights).

Best and Worst Airline Overall

Ranking the airlines by taking a simple average of the cancellation and delay rates, the worst performing airline was Atlantic Southeast Airlines, with a score of roughly 0.175. The best performing airline was Hawaiian Airlines Inc., with a score of about 0.036.

Insights Deep Dive

Seasonal Patterns:

  • Flight Trends. As stated above, the volume of flights remained relatively constant throughout the year but was greatest during the summer months (June-August), reaching a peak of 148,276 flights during the week of July 22. The first week of the year had the lowest amount of flights, at only 121,534 flights.

  • Cancellation Trends. The number of cancellations was greatest between the winter and spring months (February-March), peaking at 11,351 cancellations (269% increase from the weekly average) during the week of February 11. It also increased during the summer and early winter months (December-January). It remained relatively low during the spring and fall, with its lowest point occuring in the week of September 2 at only 1,103 cancellations.

  • Delay Trends. The number of delays followed a similar seasonal trend as the cancellations, increasing during the winter-to-spring transition, summer, and early winter months and remaining relatively low during the spring and fall. The peak was during the week of December 23, at 50,348 delays (46% increase from the weekly average). The low point was during the week of October 28, at 17,282 delays.

image

Cancellation Analysis:

  • Cancellation Cause Breakdown. The vast majority of flight cancellations, totaling about 98.98%, were caused by three main sources: air carriers (41.54%), weather (38.53%), and the National Aviation System (NAS) (19.90%). Cancellations due to air carriers were caused by variables that were under the control of the airlines, such as aircraft cleaning, baggage loading, or fueling. Cancellations due to weather were caused by weather conditions, such as extreme temperatures, deicing aircraft, or lightning damage. Cancellations due to the NAS were caused by variables that were under the control of the Federal Aviation Administration (FAA), airport operators, or state/local officials. These include airport conditions, closed runways, and ramp congestion. See https://www.bts.gov/topics/airlines-and-airports/number-15-gate-departure-time for a full list of possible causes.

  • Cancellation Cause Over Time. The cancellation cause distributions change according to the time of year. The number of cancellations per week due to air carriers and the NAS seem to follow the trend in the volume of flights; both peak during the summer months when flight volume is at its highest. The cancellations caused by the weather saw massive increases during the winter-to-spring transition (February-March), roughly a 607% increase from the average at its peak. This is likely due to the extreme weather caused by temperature collisions as winter gives way to spring, resulting in phenomena such as tornadoes, strong winds, and temperature swings. Another large increase, about 209%, occurred in the winter, probably due to the extreme cold and heavy snowfall.

image

Delay Analysis:

We focus on arrival delays here.

  • Delay Cause Breakdown Delay time was mostly due to three main causes: late aircraft (21.07 mins on average), air carriers (15.98 mins on average), and NAS (15.64 mins on average). See above for explanations of these causes. Interestingly, weather conditions were not a major contributor to delay time (only 3.18 mins on average) even though they were a significant cause for cancellations. This may be because when unfavorable weather conditions are expected, flights are simply cancelled. Thus, flights through bad enough weather conditions to cause significant delays are rare. Or, it may be that weather simply does not have much effect on delay times.

  • Delay Time Distribution Most flights (about 73%) were not technically delayed (less than 15 minutes late), with a significant amount of flights actually arriving early (about 49%). So only about 27% of flights were technically delayed (over 15 minutes late). Out of the flights that were techincally delayed, most (64%) were delayed for between 15 and 60 minutes.

image

Recommendations:

Based on the insights and findings above, we would recommend that airports and airlines consider the following:

  • The volume of flights was greatest during the summer months. We recommend that airports and airlines plan accordingly to avoid congestion and delays (e.g. ensuring adequate seat capacity on flights, taking care of maintenance/construction during off-peak months).

  • Flight cancellations were largely due to air carriers, weather, and the NAS. We recommend that airlines and airports improve their scheduling and management practices to reduce cancellations, as well as ensure that there is an efficient system to take care of or reroute people whose flights are cancelled.

  • Flight delay times were mostly due to late aircraft, air carriers, and NAS. We again recommend that airlines and airports improve their scheduling and manage practices, and put into place (reward/refund) systems to ensure customer satisfaction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published