Skip to content

AndrasFerenczy/Applied-Machine-Learning-Project-CS-5785

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ideal Booking Day Estimator for Flights

Airline ticket prices often seem unpredictable. Existing platforms such as Google Flights and Skyscanner do not give recommendation on how the prices will change concerning different booking dates for the same flight.

Given a user input of a specific date of flight, our goal is to predict the optimal day to purchase the ticket (that is, the day on which the fare is lowest). Our work is distinct from most of the prior airline fare prediction research, because it optimizes when to book a given flight, rather than which flight to choose.

Summary

  • Data Source: Expedia Flight Prices dataset (Kaggle), containing North American flights between April 2022 and October 2022.
  • Model: XGBoost (Gradient Boosted Trees) and Ridge Regression.
  • Preprocessing: Interpolation of missing values, feature engineering (calendar-based features), and normalization.
  • Evaluation: Mean Absolute Error (MAE).
  • Results: XGBoost outperforms Ridge Regression in predicting fare evolution. The best model achieved a test MAE of 52 dollars.

XGBoost Performance Evaluation

  • Left plot: Scatter plot comparing predicted vs actual values, colored by days to departure
  • Right plot: Mean Absolute Error (MAE) across different days to departure

As demonstrated, the model performs well in predicting booking prices that are weeks away from the day of departure (~25 dollar MAE) but underperforms when the booking date is just a few days away (~180 dollar MAE). This is likely due to the high price volatility typical of last-day bookings, which is much harder for the model to learn.

Paper

Link to derived paper

About

Using XGBoost to predict booking price for a given flight 60 days prior to the day of departure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors