This project focuses on analyzing and predicting customer booking completion using a machine learning model. The dataset contains booking information with various features related to customer behavior and flight details.
The goal is to predict whether a customer will complete their booking using relevant features. The dataset is highly imbalanced, with approximately 85% of cases where customers do not complete their booking.
- Target Variable Distribution:
- 85% of bookings are incomplete (booking_complete = 0).
- Only 15% of customers complete their bookings.
- Feature Importance:
- Significant Features:
Purchase Lead,Route,Flight Hour,Length of Stay,Booking Origin - Passenger preferences like
extra baggage,preferred seat, andin-flight mealshave lesser importance. - Strong interaction effect between
Num PassengersandSales Channel.
- Significant Features:
- SHAP Interaction Effects:
- Average
Purchase Lead: 84.94 days before flight. - Average
Length of Stay: 23.04 days. - Most flights are scheduled around 9 AM.
- 66.9% passengers carried extra baggage.
- Average
- Accuracy: 85.15%
- Classification Report:
- Precision for
booking_complete = 1: 44% - Recall for
booking_complete = 1: 7%
- Precision for
- Confusion Matrix:
- True Negatives: 1682
- False Positives: 27
- False Negatives: 270
- True Positives: 21
- Python for data analysis and modeling
- Pandas and NumPy for data manipulation
- Matplotlib and Seaborn for data visualization
- Scikit-Learn for model building
- SHAP for model interpretability
- Address class imbalance using SMOTE or other resampling techniques.
- Experiment with alternative models (e.g., XGBoost, SVM).
- Improve feature engineering.