In Part 1, we explored probabilistic forecasting using Prophet and Bayesian methods.
Now we move to a more operationally robust approach: gradient boosting trees with quantile regression.
This is where probabilistic forecasting stops being mostly a modeling discussion and becomes a systems discussion.
Travel retail is exactly the kind of environment where simpler structural assumptions start to break:
- demand is volatile
- interactions are non-linear
- external drivers matter
- structural breaks happen
That is why gradient boosting with quantile regression has become the workhorse of modern forecasting competitions and production systems.
Gradient boosting wins when the signal is messy and the structure is unstable
Traditional time series models like Prophet make strong assumptions about data structure (trend, seasonality, holidays). Gradient boosting trees (GBT) make no such assumptions - they learn patterns directly from data through an ensemble of decision trees.
Key advantages for travel retail:
- Handles complex interactions automatically - discovers that Sunday + Summer + Asian holidays = explosive perfume sales
- Robust to outliers - a single weird day doesn't break the model like it might Prophet
- Feature engineering freedom - throw in hundreds of features and let the model figure out what matters
- No stationarity requirements - works even with dramatic COVID-style breaks
Quantile regression gives you decision thresholds directly, not just a better average
Before diving into implementation, let's clarify what quantile regression actually does, because it's subtly different from confidence intervals.
Quantiles vs Confidence Intervals vs Prediction Intervals
Quantiles directly model percentiles of the outcome distribution:
- Q0.25 = "25% of future observations will be below this value"
- Q0.50 = "This is the median outcome"
- Q0.975 = "97.5% of observations will be below this value"
Confidence intervals capture parameter uncertainty:
- "We're 95% confident the true mean lies in this range"
- Gets narrower with more data
- About the model, not future observations
Prediction intervals capture outcome uncertainty:
- "95% of future observations will fall in this range"
- Includes both parameter uncertainty and natural variation
- What we actually want for inventory planning
Where is the pinball loss function that penalizes under-prediction and over-prediction asymmetrically based on the quantile .
The operational benefit is simple:
quantile regression gives prediction thresholds directly, without forcing a distributional assumption like normality or Poisson structure.
We just train separate models for the quantiles we care about.
Gradient boosting works because it keeps learning where the current model is wrong
Gradient boosting builds an ensemble of weak learners (decision trees) sequentially, where each tree corrects the errors of previous trees.
The Core Algorithm
- Start with a simple prediction (like the mean)
- Calculate residuals (errors) from current prediction
- Train a tree to predict these residuals
- Add the tree to the ensemble (with a small weight)
- Repeat until you have hundreds of trees
For quantile regression, we modify step 2 to use the pinball loss gradient instead of squared error gradient. This makes trees focus on the specific quantile rather than the mean.
Why This Works for Travel Retail
Travel retail has characteristics that make gradient boosting particularly effective:
High cardinality categoricals: Thousands of products, hundreds of stores, dozens of countries. Trees handle these naturally through splits, while linear models need complex encoding.
Non-linear interactions: The effect of a promotion depends on day of week, which depends on season, which depends on location. Trees discover these automatically.
Mixed frequencies: Daily sales, weekly promotions, monthly economic indicators. Trees don't care about frequency alignment like time series models do.
Missing data: Flight cancelled? Store closed? Trees handle missing values naturally through surrogate splits.
In travel retail, feature engineering usually matters more than the model family
The power of gradient boosting comes from rich feature engineering. Unlike Prophet where features are limited, here we can be creative:
Temporal Features
Basic time features:
- Hour, day of week, day of month, week of year, month, quarter
- Is weekend, is month start/end, is quarter start/end
- Days since/until major holidays (create for each relevant holiday)
Lag features capture autocorrelation:
- Sales from 1, 2, 3, 7, 14, 28 days ago
- Rolling means: last 7 days, last 28 days
- Rolling standard deviations for volatility
- Same day last week, last month, last year
Growth features capture trends:
- Week-over-week growth rates
- Month-over-month changes
- Year-over-year comparisons
External Features
Flight and passenger data:
- Scheduled flights today, tomorrow, next 7 days
- Passenger capacity by destination region
- International vs domestic flight ratio
- Red-eye flight percentage (different shopping patterns)
Economic indicators:
- Exchange rates for top 10 customer currencies
- Local and tourist country GDP growth
- Tourism indices and hotel occupancy
- Stock market indices (affects luxury purchases)
Calendar events:
- Holidays for departure AND arrival countries
- School holidays (family travel patterns)
- Major sporting events, conferences
- Religious observances
Competition and operations:
- Competitor store openings/closures
- Own promotional calendar
- Store renovation schedules
- Staff count and experience levels
Interaction Features
Create explicit interactions the model should consider:
is_weekend × is_summer(leisure travel peak)chinese_holiday × flight_to_china(returning tourists shop more)usd_strength × product_is_luxury(currency effects on high-end items)days_before_christmas × product_category(gift shopping patterns)
The point is not to add features for the sake of sophistication.
The point is to encode the mechanisms that actually move demand.
A production setup starts with granularity, split logic, and separate quantiles
Step 1: Data Preparation
Transform your transactional data into a modeling dataset where each row is a prediction target:
Entity definition: Decide your granularity - store-day, store-product-day, or category-hour. Travel retail often works best at store-category-day level, balancing signal and complexity.
Target engineering: For intermittent demand (common in travel retail), consider using log(sales + 1) or two-stage modeling (zero/non-zero then amount).
Feature computation: Calculate all features for historical data. Use vectorized operations - computing lags for millions of rows should take seconds, not hours.
Train-validation split: Use time-based splits, never random. Keep last 3 months for validation, ensuring you have complete seasons and holidays.
Step 2: Model Training
Train separate models for each quantile you need:
Key quantiles for travel retail:
- Q0.10: Pessimistic scenario for risk management
- Q0.25: Lower bound for safety stock
- Q0.50: Median for base planning
- Q0.75: Upper bound for opportunity stock
- Q0.90: Optimistic scenario for capacity planning
Hyperparameter strategy: Start with proven defaults, then tune carefully:
num_leaves: 31-50 (more leaves = more complex patterns)learning_rate: 0.01-0.05 (lower = more robust but slower)feature_fraction: 0.7-0.9 (random feature sampling)bagging_fraction: 0.7-0.9 (random row sampling)min_child_samples: 20+ (prevent overfitting to outliers)
Monotonic constraints: Ensure logical relationships hold. Price increases should decrease demand (negative constraint). Temperature might increase beverage sales (positive constraint).
Step 3: Ensemble Architecture
Don't rely on a single model. Build multiple versions and combine:
Temporal ensemble: Train separate models for different horizons:
- Next 1-7 days: Very detailed features, all lags available
- Next 8-30 days: Fewer lag features, more seasonal patterns
- Next 31-90 days: Mainly seasonal and external factors
Bootstrap ensemble: Train 10-20 models on bootstrap samples of your training data. Average their predictions for more stable quantiles.
Algorithm ensemble: Combine LightGBM, XGBoost, and CatBoost. Each has subtle differences in how they handle categoricals and missing data.
The advanced layer is mostly about calibration, coherence, and stability
Multi-Quantile Loss
Instead of training separate models per quantile, train one model with custom loss that combines multiple quantiles:
This reduces training time and ensures quantile crossing never happens (where Q0.75 < Q0.25, mathematically impossible but can occur with separate models).
Conformal Prediction
Gradient boosting gives quantiles but doesn't guarantee coverage. Conformal prediction adds a calibration layer:
- On validation set, calculate prediction errors at each quantile
- Compute adjustment factors to achieve exact coverage
- Apply adjustments to test predictions
This ensures your 90% intervals actually contain 90% of observations, critical for inventory applications.
Hierarchical Reconciliation
Travel retail has natural hierarchies: Airport > Terminal > Store > Category > Product
Train models at multiple levels and reconcile:
- Bottom-up: Sum product forecasts to get store totals
- Top-down: Distribute store forecasts to products
- Middle-out: Start at category level, go both ways
- Optimal reconciliation: Minimize total forecast variance
Without temporal validation and coverage checks, probabilistic forecasts are cosmetic
Quantile Coverage
Check if your quantiles are calibrated:
For Q0.75, exactly 75% of actuals should fall below predictions. Plot coverage by:
- Time (does accuracy degrade?)
- Store size (do small stores have worse coverage?)
- Forecast horizon (is week 4 less reliable than week 1?)
Pinball Loss Decomposition
Evaluate each quantile's accuracy using pinball loss:
- Lower loss = better calibration
- Compare to naive quantiles (historical quantiles)
- Track by feature importance (which features drive accuracy?)
Feature Importance Analysis
Understand what drives predictions:
- Gain: Total improvement from using feature
- Split count: How often feature is used
- SHAP values: Feature contribution to specific predictions
Monitor importance over time - if suddenly weather becomes the top feature, investigate why.
Production failures usually come from data and monitoring, not from model choice
Computational Efficiency
Gradient boosting can be computationally intensive:
Feature computation: Pre-compute expensive features daily, not at prediction time. Store in feature store.
Model artifacts: Models can be 100MB+ each. Use model registry and version control.
Prediction speed: Use GPU inference for large-scale predictions. Batch predictions efficiently.
Memory management: Use categorical data types. Downsample historical data if needed.
Model Monitoring
Track model performance in production:
Prediction drift: Are predictions suddenly different from historical ranges?
Feature drift: Have input distributions changed?
Accuracy decay: Is last month's model still accurate?
Quantile violations: Are 90% intervals containing fewer than 90% of actuals?
Set up automated alerts for significant deviations.
The practical rule is simple: flexibility is not enough without calibration and discipline
-
Gradient boosting with quantile regression provides robust, distribution-free uncertainty estimates perfect for travel retail's complex dynamics
-
Feature engineering is everything - the model is only as good as the patterns you help it find through thoughtful feature creation
-
Ensemble approaches win - combine multiple models, quantiles, and horizons for production-ready robustness
-
Quantiles directly give you decision thresholds - no need to assume normality or transform to prediction intervals
-
Validation must be temporal - random splits will dramatically overstate accuracy in time series contexts
-
Start simple, add complexity gradually - begin with basic features and single quantiles, then expand based on validation results
The combination of gradient boosting's flexibility and quantile regression's direct uncertainty modeling makes this approach ideal for travel retail's challenging forecasting requirements.
Prophet and Bayesian methods still have their place.
But when the operating environment is high-dimensional, unstable, and full of interactions, gradient boosting with quantiles has become the production standard for a reason.
Solutions
About the author

Cyril Noirot
Lead Data Scientist
Freelance data scientist. I design and ship decision systems — forecasting, pricing, marketing measurement, optimization.