Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Hotel-Booking-Cancellation-Prediction

This project will mainly focus on leveraging data mining techniques to conduct exploratory data analysis (EDA) of bookings to address the business needs of customers and also build models to predict whether a booking will be canceled.

(More details in the Code.ipynb and Presentation.pdf file)

Data Source

Hotel Booking Demand Datasets: Nuno Antonio, Ana Almeida, Luis Nunes, Data in Brief, 2019 https://www.kaggle.com/datasets/jessemostipak/hotel-booking-demand?datasetId=511638&sortBy=voteCount

Techniques Used

  • Exploratory Data Analysis (EDA): This would involve looking at the distribution of the data, identifying any missing values, and visualizing the relationships between features using plots such as scatterplots and histograms.
  • Upsampling and SMOTE: to address the data imbalance problems
  • Time Series Analysis: identify trends in booking demand or cancellation over time, such as seasonal patterns and fluctuations.
  • Clustering (K-Means & DBSCAN): for customers segmentation
  • Predictive Modeling (Logistic Regression, Decision Tree, Random Forest, XGBoost, etc.): forecast future bookings or cancellations based on past data. We also utilized K-fold Cross Validation to enhance performance and avoid overfitting problems.

Result

Classification:

Our models' performance can be seen as follows: Screen Shot 2023-11-17 at 10 37 44 PM In this project, our primary focus was on the recall rate. Based on the data presented in the table, we selected XGBoost as our final model. Notable features influencing this decision include:

  • Requirement for Parking Spaces (Yes/No)
  • History of Previous Cancellations (Yes/No)
  • Market Segment Category

Customer Segmentation:

Our analysis resulted in the segmentation of customers into four distinct groups:

  • Business Travellers: Prefer city hotels.
  • Self-driving Enthusiasts: Require parking spaces.
  • Group Travel Aficionados: Favor traveling in groups.
  • Loyal Guests: Tend to be repeat visitors.

The geographical distribution of these customer groups can be seen in the following chart: Screen Shot 2023-11-17 at 10 40 39 PM

About

Deploy machine learning models to predict whether a hotel booking will be canceled.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages