NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Student Works > Data Analysis on 20 years US Air Traffic from 1990 to 2009

Data Analysis on 20 years US Air Traffic from 1990 to 2009

Yunrou Gong
Posted on Aug 8, 2016
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction:

This project is linked to my last project which is "Visualisation of Us Domestic Flights in year 2009". According to the last project ,  there is a pattern of passengers movement from North to South in December  of 2009. However, it is hard to say weather it is a special case of year 2009 or it was a generic pattern for every year. Additionally, due to the lack of data on time scope, it is hard to see how air traffic and airport is changing through the year.

Thus, I decide to do further research by using the US domestic flights data from 1990 to 2009. The following are the initial questions that the report is going to figure out: how much percentage the air traffic is increasing during the 20 years. What is the trend of air traffic of US domestic flights from 1990 to 2009. How is the performance of  commercial airports vary by year and by month. Is there exist a common distinct pattern of passengers movement by month of each year. Moreover,  there  is a way to compare the airports performance by categorising the airports in to groups. So I wonder the differences between the different groups of airports.


I. Origin Data Set Description

Abstract:

The origin data set is over 3.5 million monthly domestic flight records from 1990 to 2009. Data are arranged as an adjacency list with metadata.

Data Analysis on 20 years US Air Traffic from 1990 to 2009

Source(s)

1.US Census Bureau
2.RITA/Transtats, Bureau of Transportation Statistics

Year: 2009

URL:http://academictorrents.com/details/a2ccf94bbb4af222bf8e69dad60a68a29f310d9a


II. Data Manipulation & Methodology

1.Pre-prepare for the data

In order to answer the questions in the introduction, I manipulate the origin dataset by adding the location (longitude and latitude) of each airport. I also add the information of state for each airport. Moreover, according to the FAA(United States Federal Aviation Administration)principle of categorising the airport,  most of the airfields that qualify for funding are commercial service airports , which are more dependent on regularly scheduled commercial airline traffic.

Subcategories

There are two subcategories under the commercial service airport:  primary airports and non primary airports, which is base on weather the airport is handling more than 10,000 passengers each year. In regard of this,  I grouped the data by year and airport and then filter the total passengers that over 10,000, thus I only keep for the primary airports. After that, I categorised the each primary airport by following the FAA principles on Primary Airports: 

  • Nonhub primary โ€“ airports handling over 10,000 but less than 0.05% of the country's annual passenger boardings
  • Small hub primary โ€“ airports with 0.05 to 0.25% of the country's annual passenger boardings
  • Medium hub primary โ€“ airports handling 0.25 to 1% of the country's annual passenger boardings
  • Large hub primary โ€“ airports handling over 1% of the country's annual passenger boardings

Steps

Furthermore, in order to visualise the passenger movement pattern, I first group the data by origin airport and then summarise the monthly outflow of passengers. Secondly, I group the data by destination airport and then summarise the monthly inflow of passengers. Then I could merge this two dataset and named a new column which is the number of net flow passengers ( inflow of passengers -  outflow of passengers) .

Snippet of Data

Finally, the data set for analysing is done (RawCode for data manipulate) and below is the snippet of the data:

tbl_df(data)
# A tibble: 61,677 x 14
 Airport Year Month City State AirportType Occupancy Population Netflow
 <chr> <int> <int> <chr> <fctr> <chr> <dbl> <dbl> <int>
1 ABE 1990 5 Allentown, PA Pennsylvania SmallHub 0.5331442 688334 55
2 ABE 1990 1 Allentown, PA Pennsylvania SmallHub 0.5182120 688334 -2444
3 ABE 1990 6 Allentown, PA Pennsylvania SmallHub 0.5659226 688334 -1382
4 ABE 1990 2 Allentown, PA Pennsylvania SmallHub 0.4912840 688334 -1308
5 ABE 1990 9 Allentown, PA Pennsylvania SmallHub 0.4476937 688334 -1377
6 ABE 1990 8 Allentown, PA Pennsylvania SmallHub 0.5527455 688334 286
7 ABE 1990 12 Allentown, PA Pennsylvania SmallHub 0.4922054 688334 -347
8 ABE 1990 7 Allentown, PA Pennsylvania SmallHub 0.5948180 688334 -821
9 ABE 1990 3 Allentown, PA Pennsylvania SmallHub 0.5490865 688334 -347
10 ABE 1990 10 Allentown, PA Pennsylvania SmallHub 0.5345814 688334 -579
# ... with 61,667 more rows, and 5 more variables: Passengers <int>, Flights <int>,
# Name <chr>, latitude_deg <dbl>, longitude_deg <dbl>

str(data)
'data.frame': 61677 obs. of 14 variables:
 $ Airport : chr "ABE" "ABE" "ABE" "ABE" ...
 $ Year : int 1990 1990 1990 1990 1990 1990 1990 1990 1990 1990 ...
 $ Month : int 5 1 6 2 9 8 12 7 3 10 ...
 $ City : chr "Allentown, PA" "Allentown, PA" "Allentown, PA" "Allentown, PA" ...
 $ State : Factor w/ 50 levels "Alabama","Alaska",..: 38 38 38 38 38 38 38 38 38 38 .
 $ AirportType : chr "SmallHub" "SmallHub" "SmallHub" "SmallHub" ...
 $ Occupancy : num 0.533 0.518 0.566 0.491 0.448 ...
 $ Population : num 688334 688334 688334 688334 688334 ...
 $ Netflow : int 55 -2444 -1382 -1308 -1377 286 -347 -821 -347 -579 ...
 $ Passengers : int 65987 56858 69198 55220 57687 73194 51623 67475 65941 68111 ...
 $ Flights : int 1304 1245 1279 1128 1222 1347 1149 1343 1253 1300 ...
 $ Name : chr "Lehigh Valley International Airport" "Lehigh Valley International Airport" "Lehigh Valley International Airport" "Lehigh Valley International Airport" ...
 $ latitude_deg : num 40.7 40.7 40.7 40.7 40.7 ...
 $ longitude_deg: num -75.4 -75.4 -75.4 -75.4 -75.4 ...


2. Create the Shiny app by using the data above.

All my analysis is based on the dataset above and I use this data to create a shiny app for users to check my analysis and could research by themselves , if they feel more interested in other aspects which I may did not cover in my analysis. Here is the link for connected to my shinyApp .  All the raw code of creating shiny app could be found by here :RawCode of ShinyApp

 

III. Data Analysis

1. Total Trend of AIR traffic and Passengers from 1990 to 2009

Data Analysis on 20 years US Air Traffic from 1990 to 2009

During the 20 years, the number of total domestic flights in US have increased by approximately 35% , while the quantity of Passengers have increased by around 42%. However, the quantity of flights and passengers both plunge during the year 2000 to 2002  and the year 2007 to 2009. The quantity dropped by 9% in passengers and  10% in flights during the period of 2007 to 2009. The reason maybe because of 911 attacks  happened on 2001 and financial crisis of year 2008.

2. Airport Categorise

Data Analysis on 20 years US Air Traffic from 1990 to 2009

There are four groups of primary airports : N0nhub, SmallHub,MediumHub and LargeHub. From the above bar chart , we can see only the number of  N0nhub airport type increased a lot since 1990. Until 2009, there is 163 NonHub airport, which is approximately double the number of NunHub in 1990.The variation of other airport type during the 20 years is not that obvious.

A interesting thing is some of the airport underwent the change of Airport Type by year. Here is the some interesting findings from the shiny app.

airporttypechanege

The airport MDW is a MediumHub during the 1990 to 1998 and then became a LargeHub after 1998, while MHT airport became a MediumHub after year 1998.

3. Occupancy level of Airport

From the ShinyApp, we could also check how is the occupancy level for each airport.The occupancy rate reflects of the occupied level of seats compared to the whole capacity of the airport.   Generally speaking, the occupancy level in each group is increasing by year as the colour of the point getting more and more dark.However, the occupancy level of NunHub group is less than that of other groups in each year. Moreover, the LargeHub  always  retain the high level of occupancy.

However, it is better to plot the flights number and occupancy level together to check how well the occupancy is for each airport.

occupancy

The above graph is from motion chart yearly tab, and select flights Vs Occupancy. I find out that ATL and MCO airport are occupancy rate and flights are positive related, which is normal. However, SFB and BFL occupancy is not that good. For SFB, we can see that the flights number was increasing  a lot from 1999 to 2000 , however the occupancy rate is decreasing by 45%, which means the SFB airport during the period of 1999 to 2000, the number of flights increased while occupancy level decreased. Thus, the SFB airport at that time is not that efficient, although the flights number was increasing a lot.

4. Passengers Movement

In order to find the pattern of how the passengers are moving by air, it is better to check the net flow of passengers in each state, to general get the idea of how passengers are moving from different states. By the way , in order to plot the map, I put the city of DC Washington  into Maryland state.

netflowstate

The above graph is the year 2008 , month 1 data to plot the map, and the colour scale is vary by the number of net flow of passengers. If the net flow is positive, there are more passengers come to this state by air. On contrary, if the net flow is negative , it means there are more passengers go out of thus state. The deeper the colour of red , the bigger the negative net flow is, while the deeper he colour of green, the bigger the positive net flow is.

Findings

The interesting finding from the motion map in the ShinyApp,  there is a common pattern of passengers movement during  the end of the year(December) to the beginning of the next year ( January ), there is always more people went out from north part of US to south area of US at the end of the year , especially went to the Florida , the Southeast State in the US.

While, there is more people leave from South part of US , e.g. Florida State,  to the North of US. In other words, the distinct pattern found in year 2009 is not the special case of that year. The reason should be the winter holiday( Christmas)  and weather at that time, so the passengers are prefer  traveling to south part of US by using the christmas holiday.

Another factor should be raise , when change the year and month , the North West area of US always have the very light colour. This phenomenon maybe account for the geography and population of the state.

 

IV. Conclusion

  •  Total number of domestic flights in US have increased by approximately 35%  and  the quantity of Passengers have increased by around 42% during the 20 years.
  • The quantity dropped by 9% in passengers and  10% in flights during the period of 2007 to 2009, may be because of the financial crisis in year 2008.
  • General occupancy level for each airport type is increasing , which means basically the airport operation was  improving during the 20 years.
  • The occupancy level of NonHub airport is lower compared to other type of airports.
  • Specifically, the performance of each airport should be analysed  by plotting flights and occupancy level together to check weather the number of flights increase will cause the occupancy level increase or decease.
  • There exists a common distinct pattern of passengers movement between  the end of the year and the beginning of the next year , due to the Christmas Holiday and weather affections.

 

Welcome to view the ShinyApp to check my analysis.

All the Raw Code is available to check here:

  • RawCode for data manipulate
  • RawCode of ShinyApp

 

 

 

 

About Author

Yunrou Gong

Yunrou Gong worked as a Business Analyst for Sanity Lighting Co., a LED Manufacturer. Through her work as an analyst, she accumulated her interest in data-driven approach of problem solving. She holds a M.S. in Operational Research, specializing...
View all posts by Yunrou Gong >

Leave a Comment

Cancel reply

You must be logged in to post a comment.

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application