Skip to content

About

Machine learning project that predicts airline ticket prices using Random Forest Regression. Achieved R² = 0.98 and identified travel class as the most influential pricing factor.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Flight Price Prediction using Random Forest Regression

Overview

This project predicts flight ticket prices using machine learning techniques on a Kaggle flight pricing dataset. The model was trained using Random Forest Regression and compared against Linear Regression.

Dataset

Flight Price Prediction Dataset: https://www.kaggle.com/datasets/shubhambathwal/flight-price-prediction

Models Used

  • Random Forest Regressor
  • Linear Regression

Results

Random Forest Regressor

  • R² Score: 0.98
  • MAE: 1071.97
  • MSE: 7562806.67
  • RMSE: 2750.06

Linear Regression

  • R² Score: 0.91

Feature Importance

The most important feature affecting ticket prices was:

  • Travel Class

Technologies

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • Matplotlib

Conclusion

The Random Forest model significantly outperformed Linear Regression and achieved highly accurate flight price predictions.

About

Machine learning project that predicts airline ticket prices using Random Forest Regression. Achieved R² = 0.98 and identified travel class as the most influential pricing factor.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages