Segment2 Data Audit Prep
Report
Project Segment 2: Data Audit & Prep Report Predicting No-Shows for Hotel Booking to Optimize Overbooking Decisions 1. Data Access Confirmation The project uses the Hotel Booking Demand Dataset obtained from Kaggle. Access was confirmed by successfully loading the dataset into Altair AI Studio. Source of Dataset: https://www.kaggle.com/datasets/jessemostipak/hotel-booking-demand The original dataset contains 119,390 reservations and 32 variables. Consistent with the Week 1 charter, of these two, City Hotel and Resort Hotel, only City Hotel reservations were used. After removing canceled reservations, the final modeling dataset contained 47,144 observations. Figure 1: Loaded Hotel Booking Dataset in Altair AI Studio 2. Data Dictionary The complete dictionary of variables is available in Appendix A, and the dataset contains variables pertaining to reservations, including information about guests, their bookings, and the pricing variables used for predicting hotel no-shows. Some of the important variables in the dataset include lead_time, market_segment, distribution_channel, previous_cancellations, and relevant data regarding the price and type of customers. Three new variables were created: total_guests, total_nights, and commitment_score.

Variables identified as potential leakage risks, including reservation_status, reservation_status_date, and assigned_room_type, were removed from the modeling dataset. 3. Quality Findings When the dataset was imported, no missing values were indicated by the system. However, although the presence of frequent null values for the agent and company columns was reported, they were kept since they were considered to be legitimate categories. Some cases of outlier observations were reported, like ADR (maximum value = 5,400), lead time (maximum value = 737 days), and days in waiting list (maximum value = 379 days). After filtering City Hotel reservations and creating the target variable, the final dataset contained 47,144 entries with 916 No-Shows, indicating their share in the data of roughly 1.94% and suggesting that this is a highly imbalanced classification problem. Figure 2: No_Show Distribution / Reservation Status Statistics

Figure 3: ADR Statistics Showing Outliers Figure 4: Distribution of Lead Time Across Hotel Reservations

4. Prep & Feature Pipeline The following preparation process was implemented in Altair AI Studio: 1. Load Hotel Booking Demand dataset 2. Filter to City Hotel reservations 3. Create binary target variable (No_Show) 4. Remove canceled reservations 5. Create total_guests 6. Create total_nights 7. Create commitment_score 8. Remove leakage variables 9. Set No_Show as the label 10. Split data into training, validation, and test datasets Figure 5: Final Data Preparation Workflow

Derived Features
a. total_guests = adults + children + babies
b. total_nights = stays_in_weekend_nights + stays_in_week_nights
c. commitment_score = booking_changes + total_of_special_requests
These features capture guest commitment, travel size, and booking engagement.
Figure 6: Feature Engineering Process
5. EDA Findings
Figure 2: No-Show Distribution
Takeaway: No-Shows account for only 1.94% of reservations, indicating a highly imbalanced
classification problem. This suggests that model evaluation should focus on identifying No-Show cases
rather than overall accuracy alone. Because No-Shows account for only 1.94% of observations, future
models will be evaluated using metrics such as precision and recall rather than overall accuracy alone.
Figure 3: ADR Statistics Showing Outliers
Takeaway: ADR contains extreme values, with a maximum of 5,400 compared to an average of
approximately 105. These observations were retained because they may represent legitimate premium
bookings.
Figure 4: Distribution of Lead Time Across Hotel Reservations
Takeaway: Lead time varies considerably across reservations. Most bookings were made relatively close to the arrival date, while fewer reservations were booked far in advance. This suggests that lead time may be useful for understanding reservation behavior and predicting potential no-show risk. Figure 5: Final Data Preparation Workflow Takeaway: The workflow shows how the raw booking data was transformed into a modeling-ready dataset through filtering, feature engineering, leakage removal, label assignment, and partitioning. 6. Partitioning & Leakage Prevention Partitioning Plan The final dataset was split using stratified sampling into 60% training, 20% validation, and 20% holdout test sets using a fixed random seed of 2001. Stratified sampling was chosen to maintain the same proportion of No-Show reservations across all partitions. Figure 6: Stratified Data Partitioning (60% Training, 20% Validation, 20% Holdout Test)

Leakage Audit
Variable Taxon Verdict
reservation_status Target Proxy Drop
reservation_status_date Time Travel Drop
assigned_room_type Preparation Leakage Drop
These variables were removed because they would provide information unavailable at the time an
overbooking decision is made.
Conclusion
The Hotel Booking Demand dataset was successfully transformed into a modeling-ready dataset for No-
Show prediction. The preparation process included filtering, feature engineering, leakage prevention, and
stratified partitioning. The resulting dataset provides a strong foundation for baseline modeling and model
comparison in future project segments.
AI Assistance Note:
AI tools were used to assist with Altair AI Studio workflow planning, data preparation steps, feature
engineering, partitioning strategy, and leakage-prevention methodology used in this project.
Appendix A: Full Data Dictionary
Variable Type Status Business Meaning
hotel Categorical Keep Hotel type (City Hotel or Resort Hotel)
Redundant after creation of No_Show target and removal
is_canceled Binary Drop
of canceled reservations
lead_time Numeric Keep Number of days between booking and arrival
arrival_date_year Numeric Keep Year of arrival
arrival_date_month Categorical Keep Month of arrival
arrival_date_week_number Numeric Keep Week number of arrival
arrival_date_day_of_month Numeric Keep Day of month of arrival
stays_in_weekend_nights Numeric Keep Number of weekend nights booked
stays_in_week_nights Numeric Keep Number of weekday nights booked
adults Numeric Keep Number of adults in reservation
children Numeric Keep Number of children in reservation
babies Numeric Keep Number of babies in reservation
meal Categorical Keep Meal package selected
country Categorical Keep Guest country of origin
market_segment Categorical Keep Market segment used to make booking
distribution_channel Categorical Keep Booking distribution channel
is_repeated_guest Binary Keep Indicates whether guest is a repeat customer
previous_cancellations Numeric Keep Number of previous canceled bookings
previous_bookings_not_canceled Numeric Keep Number of previous successful bookings
reserved_room_type Categorical Keep Room type requested during booking
Potential preparation leakage because assignment may
assigned_room_type Categorical Drop
occur near arrival time
booking_changes Numeric Keep Number of modifications made to booking
deposit_type Categorical Keep Deposit requirement for reservation
agent Categorical Keep Booking agent identifier
company Categorical Keep Company identifier associated with booking
days_in_waiting_list Numeric Keep Number of days reservation remained on waiting list
customer_type Categorical Keep Customer classification
adr Numeric Keep Average Daily Rate
required_car_parking_spaces Numeric Keep Number of parking spaces requested
total_of_special_requests Numeric Keep Number of special requests made
reservation_status Categorical Drop Target proxy leakage because it directly reveals outcome
Time-travel leakage because it is known after booking
reservation_status_date Date Drop
outcome
No_Show Binary Target Target variable (1 = No-Show, 0 = Check-Out)
total_guests Numeric Derived adults + children + babies
total_nights Numeric Derived stays_in_weekend_nights + stays_in_week_nights
commitment_score Numeric Derived booking_changes + total_of_special_requests