SlideShare a Scribd company logo
Mike Kuhlen, Insight 2013C
A flight delay estimator providing ticket purchasing advice
FLIGHT DELAY MODEL
150 million US domestic flights from 1987 – 2013
(forcomputationalease,restricted analysisto2008-2013)
sklearn.ensemble.RandomForestClassifier
● 11 continuous features (DayOfYear, ScheduledDepartureTime, DaysFromNearestHoliday, ...)
● 100+ “dummified” categorical features (Carrier, Origin/Destination)
● 171 Origin models, 101 Destination models (67 GB)
VALIDATION
Accuracy: around 90% F1 score: up to 0.64
Comparable to industry standards! (and I got to this intwo weeks... ☺)
Delays vs. Day of Year
Delays vs. Day of Year
The Data
The Front End
The Modeling & Analysis
Numerical Simulations of
Dark Matter Structure Formation
About me: Mike Kuhlen

More Related Content

Viewers also liked

Navigating The Digital Space
Navigating The Digital SpaceNavigating The Digital Space
Navigating The Digital Space
Michelle Ngome Line 25 Consulting
 
Form 098 si 088
Form 098 si 088Form 098 si 088
Form 098 si 088
Laurentiu Marius
 
Monetary&fiscalpolicy
 Monetary&fiscalpolicy Monetary&fiscalpolicy
Monetary&fiscalpolicy
Sandeep Kumar Lukalapu
 
Accize
AccizeAccize
Powerpoint
PowerpointPowerpoint
Powerpoint
Linda Hansen
 
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيدالجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
Hassan Elagouz
 
[Ttvd] ke hoach toan bo chuong trinh 25 6
[Ttvd] ke hoach toan bo chuong trinh 25 6[Ttvd] ke hoach toan bo chuong trinh 25 6
[Ttvd] ke hoach toan bo chuong trinh 25 6buivannhan
 
Daily activities-exercises
Daily activities-exercisesDaily activities-exercises
Daily activities-exercises
Zenly Dez
 
Presentation%203
Presentation%203Presentation%203
Presentation%203
Sanusia1
 
Dignity presentation
Dignity presentationDignity presentation
Dignity presentation
Lili Coleman
 
Lecture 7-cs345-2014
Lecture 7-cs345-2014Lecture 7-cs345-2014
Lecture 7-cs345-2014
Rajiv Omar
 
موازين الصادقين النسخة الانجليزية
موازين الصادقين النسخة الانجليزيةموازين الصادقين النسخة الانجليزية
موازين الصادقين النسخة الانجليزية
Hassan Elagouz
 
Gw Melek Politik
Gw Melek PolitikGw Melek Politik
Gw Melek Politik
ChristyYB
 
Slide Presentasi Stars United Network 2007
Slide Presentasi Stars United Network 2007Slide Presentasi Stars United Network 2007
Slide Presentasi Stars United Network 2007
starsunitednetwork
 
Material impozit
Material impozitMaterial impozit
Material impozit
Laurentiu Marius
 

Viewers also liked (15)

Navigating The Digital Space
Navigating The Digital SpaceNavigating The Digital Space
Navigating The Digital Space
 
Form 098 si 088
Form 098 si 088Form 098 si 088
Form 098 si 088
 
Monetary&fiscalpolicy
 Monetary&fiscalpolicy Monetary&fiscalpolicy
Monetary&fiscalpolicy
 
Accize
AccizeAccize
Accize
 
Powerpoint
PowerpointPowerpoint
Powerpoint
 
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيدالجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
الجمال المحمدى ظاهره وباطنه لفضيلة الشيخ فوزى محمد أبوزيد
 
[Ttvd] ke hoach toan bo chuong trinh 25 6
[Ttvd] ke hoach toan bo chuong trinh 25 6[Ttvd] ke hoach toan bo chuong trinh 25 6
[Ttvd] ke hoach toan bo chuong trinh 25 6
 
Daily activities-exercises
Daily activities-exercisesDaily activities-exercises
Daily activities-exercises
 
Presentation%203
Presentation%203Presentation%203
Presentation%203
 
Dignity presentation
Dignity presentationDignity presentation
Dignity presentation
 
Lecture 7-cs345-2014
Lecture 7-cs345-2014Lecture 7-cs345-2014
Lecture 7-cs345-2014
 
موازين الصادقين النسخة الانجليزية
موازين الصادقين النسخة الانجليزيةموازين الصادقين النسخة الانجليزية
موازين الصادقين النسخة الانجليزية
 
Gw Melek Politik
Gw Melek PolitikGw Melek Politik
Gw Melek Politik
 
Slide Presentasi Stars United Network 2007
Slide Presentasi Stars United Network 2007Slide Presentasi Stars United Network 2007
Slide Presentasi Stars United Network 2007
 
Material impozit
Material impozitMaterial impozit
Material impozit
 

Recently uploaded

Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Operational Excellence Consulting
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
my Pandit
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
hartfordclub1
 
Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...
UdayaShankarS1
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Cover Story - China's Investment Leader - Dr. Alyce SU
Cover Story - China's Investment Leader - Dr. Alyce SUCover Story - China's Investment Leader - Dr. Alyce SU
Cover Story - China's Investment Leader - Dr. Alyce SU
msthrill
 
Best practices for project execution and delivery
Best practices for project execution and deliveryBest practices for project execution and delivery
Best practices for project execution and delivery
CLIVE MINCHIN
 
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Neil Horowitz
 
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
How to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptxHow to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptx
Charleston Alexander
 
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdfGarments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
Pridesys IT Ltd.
 
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
APCO
 
list of states and organizations .pdf
list of  states  and  organizations .pdflist of  states  and  organizations .pdf
list of states and organizations .pdf
Rbc Rbcua
 
Industrial Tech SW: Category Renewal and Creation
Industrial Tech SW:  Category Renewal and CreationIndustrial Tech SW:  Category Renewal and Creation
Industrial Tech SW: Category Renewal and Creation
Christian Dahlen
 
Pitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deckPitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deck
HajeJanKamps
 
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdfThe Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
thesiliconleaders
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
taqyea
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
ssuser567e2d
 

Recently uploaded (20)

Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
 
Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
 
Cover Story - China's Investment Leader - Dr. Alyce SU
Cover Story - China's Investment Leader - Dr. Alyce SUCover Story - China's Investment Leader - Dr. Alyce SU
Cover Story - China's Investment Leader - Dr. Alyce SU
 
Best practices for project execution and delivery
Best practices for project execution and deliveryBest practices for project execution and delivery
Best practices for project execution and delivery
 
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
 
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
 
How to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptxHow to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptx
 
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdfGarments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
Garments ERP Software in Bangladesh _ Pridesys IT Ltd.pdf
 
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
 
list of states and organizations .pdf
list of  states  and  organizations .pdflist of  states  and  organizations .pdf
list of states and organizations .pdf
 
Industrial Tech SW: Category Renewal and Creation
Industrial Tech SW:  Category Renewal and CreationIndustrial Tech SW:  Category Renewal and Creation
Industrial Tech SW: Category Renewal and Creation
 
Pitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deckPitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deck
 
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdfThe Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Satta Matka
 
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
一比一原版(QMUE毕业证书)英国爱丁堡玛格丽特女王大学毕业证文凭如何办理
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
 

Delay Me Not!

  • 1. Mike Kuhlen, Insight 2013C A flight delay estimator providing ticket purchasing advice
  • 2.
  • 3. FLIGHT DELAY MODEL 150 million US domestic flights from 1987 – 2013 (forcomputationalease,restricted analysisto2008-2013) sklearn.ensemble.RandomForestClassifier ● 11 continuous features (DayOfYear, ScheduledDepartureTime, DaysFromNearestHoliday, ...) ● 100+ “dummified” categorical features (Carrier, Origin/Destination) ● 171 Origin models, 101 Destination models (67 GB)
  • 4. VALIDATION Accuracy: around 90% F1 score: up to 0.64 Comparable to industry standards! (and I got to this intwo weeks... ☺)
  • 5. Delays vs. Day of Year
  • 6. Delays vs. Day of Year
  • 7. The Data The Front End The Modeling & Analysis
  • 8. Numerical Simulations of Dark Matter Structure Formation About me: Mike Kuhlen

Editor's Notes

  1. Hi everyone! My name is Mike Kuhlen. Today I want to pitch (present?) to you my data project “Delay Me Not!” Delay Me Not enables you to make informed decisions on what ticket to purchase to minimize your risk of a flight delay and possibly missing your connection. Let me show you!
  2. Here it is, delaymenot.com It has two usage cases. One is if you already have a flight, and want to know how likely it is to be delayed. But the feature i want to focus on today is if you're trying to decide on a flight. So Christmas time is coming up and this year my wife and I are going to visit her family in New York. Christmas is on a Wednesday this year, so I'm going to look for a flight on the Saturday before X-mas, Dec. 21, flying from SFO to JFK. Click Go, and you get back a list of flights. Some non-stop, some with connections. In the very right column it lists the delay probability, where delay here is defined as more than 30 minutes delayed. I'm a United The flight you've been considering is this United flight leaving at around 11am with a stopover at LAX. Now delaymenot tells you that this is probably not a good flight to buy, since it has an almost 40% chance of being delayed by more than 30 min., and that means you're going to miss your connection, which would be a horrible start to your x-mas vacation. Instead you could pick the flight just below it, with the same stopover, but leaving earlier in the morning. It has a much lower chance of being delayed. Or maybe you're now more interested in non-stop flights? Well, sorting here by departure time, you can see that there's a monotonic relationship between flight delays and departure time. The earlier you leave, the less likely you're going to be delayed. Great, right? Delaymenot helps you make informed decision about which flight to buy in order to minimize your risk of annoying delays.
  3. So, how did I do this? I started with this publicly available dataset from Research and Innovative Technology Association (RITA) from the Federal Bureau of Transportation, containing information about all US domestic flights flown from 1987 – 2013. It contains scheduled and actual departure and arrival information for 150 million flights in total, although for computational feasibility I restricted myself to the past 5 years. I tried a bunch of different classification methods, but Random Forests seemed to give the best results. In total I have 11 continuous features, such as “day of year”, “departure time”, and “days from nearest holiday”, and then a bunch of “dummified” categorical variables. I created separate Origin and Destination models for all routes with more than 50,000 flights in my dataset.
  4. Here are some interesting trends I found in my modeling. As an example I'm looking at flights from SFO to EWR on United over an entire year, departing in hourly intervals from 6am to midnight.. The blue and red curves show the mean delay probability, smoothed over 10 and 31 days. As you can see, delays are more likely in the summer months, presumably because traffic volumes are up and perhaps because fog is more likely in SFO and thunderstorms more likely in NY.
  5. Now let's zoom in on Christmas. This is great! The model very clearly predicts a spike in delay probability as we get closer to X-mas. The probability peaks on the Saturday before X-mas, so in our earlier example, we'd be better off flying a bit earlier in the month.
  6. Here's a summary of the data and tools I used to do the modeling: As mentioned, I used the RITA dataset as input, and for the webapp I used the FlightStats API to get a list of scheduled flights on a given date and route. The modeling and analysis was done in python, using numpy, scipy, pandas, and scikit-learn. The webapp was built with Twitter bootstrap and Flask and is hosted on my own webserver running nginx.
  7. A little bit about me: I got my bachelors in physics from Caltech, then my Ph.D. in astrophysics from UC Santa Cruz, and since then I've done two postdocs, one at the Institute for Advanced Study in Princeton, and most recently at UC Berkeley. The research I pursued was mostly large-scale numerical simulations of dark matter structure formation. I've recently picked up fishing, I'm an avid backcountry hiker, and I play Ultimate.