Logo Lanfrica

Nour-Baklouti/Forecasting-Flight_Delay

Domain:

mobility

Record type:

project
Creator:
Nou
Host:
Can you predict airline delays for Tunisian aviation company, Tunisair? # Forecasting-Flight_Delay Can you predict airline delays for Tunisian aviation company, Tunisair? This project follows a complete data science workflow: data preparation โ†’ exploratory analysis โ†’ modeling โ†’ evaluation โ†’ forecasting and comparison. 1. ๐ƒ๐š๐ญ๐š ๐‹๐จ๐š๐๐ข๐ง๐  ๐š๐ง๐ ๐๐ซ๐ž๐ฉ๐š๐ซ๐š๐ญ๐ข๐จ๐ง * Importing required libraries (Pandas, NumPy, Matplotlib, Statsmodels, Scikit-learn, etc.). * Loading the flight delay dataset. * Cleaning the data and converting date columns to datetime format. * Sorting the data chronologically to preserve the time order. 2. ๐ƒ๐š๐ญ๐š ๐€๐ ๐ ๐ซ๐ž๐ ๐š๐ญ๐ข๐จ๐ง ๐š๐ง๐ ๐“๐ซ๐š๐ง๐ฌ๐Ÿ๐จ๐ซ๐ฆ๐š๐ญ๐ข๐จ๐ง * Aggregating the data by day to build a time series. * Computing indicators such as daily average flight delay. * Checking the consistency and size of the time series. 3. ๐„๐ฑ๐ฉ๐ฅ๐จ๐ซ๐š๐ญ๐จ๐ซ๐ฒ ๐ƒ๐š๐ญ๐š ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ (๐„๐ƒ๐€) * Visualizing the evolution of average delays over time. * Analyzing the distribution of delays. * Identifying trends and seasonal patterns (especially weekly seasonality). 4. ๐ƒ๐š๐ญ๐š ๐๐ซ๐ž๐ฉ๐š๐ซ๐š๐ญ๐ข๐จ๐ง ๐Ÿ๐จ๐ซ ๐Œ๐จ๐๐ž๐ฅ๐ข๐ง๐  * Splitting the dataset into training and testing sets. * Scaling/normalizing the data for models that require it (e.g., LSTM). 5. ๐Œ๐จ๐๐ž๐ฅ๐ข๐ง๐  ๐š๐ง๐ ๐…๐จ๐ซ๐ž๐œ๐š๐ฌ๐ญ๐ข๐ง๐  Several forecasting models were implemented and compared: * ARIMA * Baseline time series model. * ACF/PACF analysis to select parameters. * SARIMA * Extension of ARIMA including weekly seasonality (7 days). * LSTM (Long Short-Term Memory) * Prophet * XGBoost 6. ๐Œ๐จ๐๐ž๐ฅ ๐„๐ฏ๐š๐ฅ๐ฎ๐š๐ญ๐ข๐จ๐ง * Comparing model performance using error metrics (e.g., RMSE, MAE). * Visual comparison of actual vs predicted values. 7. ๐…๐ข๐ง๐š๐ฅ ๐…๐จ๐ซ๐ž๐œ๐š๐ฌ๐ญ๐ข๐ง๐  Using the trained models to forecast flight delays for the year 2019. 8. ๐‚๐จ๐ฆ๐ฉ๐š๐ซ๐ข๐ฌ๐จ๐ง ๐š๐ง๐ ๐‚๐จ๐ง๐œ๐ฅ๐ฎ๐ฌ๐ข๐จ๐ง * Global comparison of all tested models. * Identification of the most accurate and suitable forecasting approach.