Problem
Retailers set prices from a demand forecast. The optimizer tries many discounts and picks the most profitable one. A standard forecaster learns the correlation between past discounts and sales. Past discounts were not random: they were steered by stock levels and season, so the learned price effect is biased. When the retailer changes its pricing policy, the forecast gets worse exactly where the optimizer needs it.
Example from the article: Zalando forecasts weekly demand per config SKU (an article with its sizes grouped) two weeks ahead around Cyber Week, when discounts differ sharply from the usual policy.
Solution in brief
The paper combines double machine learning (DML) with transformer forecasters. Two transformers predict demand and discount from covariates and history. A third transformer learns a price elasticity from the residual discount variation. The forecast multiplies the base demand by the relative price change raised to that elasticity.
Questions this case answers
- How to forecast an outcome that depends on a decision variable so that the forecast stays accurate when the logged decision policy changes
- How to estimate a causal effect of a continuous treatment on a very large number of time series without randomization
- How to forecast demand so that the price effect is causal and the forecast stays valid when the pricing policy changes?
- How to estimate price elasticity for hundreds of thousands of SKUs with a forecasting model and double machine learning?
Tools and methods
- Double machine learning (partially linear model) — separates the price effect from confounding by residualizing discount
- Transformer forecasters — outcome, treatment and effect models
- Cross-fitting — nuisance predictions for each article come from a model trained on the other fold
- Price elasticity head — multiplicative response to price change
- Optuna — Bayesian hyperparameter search
Google or a one-time email code. No password.