Problem
Discount depth, price, ad spend and notification count are continuous, and teams set them by business rules, not randomly. The question is "what is the right amount?", which needs a curve with its shape, such as diminishing returns or an optimum. DoubleML's partially linear model returns one slope, its default score is not doubly robust, and it gives one answer per population. Looped over 200 stores, it gives noisy slopes for the small ones.
Example from the article: a simulation of 200 stores in 8 regions, where customers get a personalised discount and the outcome is their spend.
Solution in brief
Estimate the full dose-response curve with the doubly robust (DR) pseudo-outcome of Kennedy et al. (2017). Regress it on the dose with penalised splines and partial pooling over the group hierarchy, so small stores borrow from their region. If a stable confounder is unmeasured but pre-period outcomes exist, fit the same estimator on the change in outcome.
Questions this case answers
- How to estimate a nonlinear causal response curve to a continuous, non-randomized treatment when a single-slope estimator hides the shape
- How to estimate separate causal response curves for many nested groups with a long tail of tiny ones, without refitting the whole model per group
- How to estimate how an outcome changes with a continuous treatment such as discount depth, price or ad spend, when the dose was chosen rather than randomized?
- How to get a separate dose-response curve for each of hundreds of stores or segments when most of them have very little data?
Tools and methods
- DR pseudo-outcome — one number per row whose average at each dose is the causal curve
- Cross-fitted nuisance models — outcome model and generalised propensity score (GPS)
- Penalised splines with partial pooling — a smooth curve per store, shrunk toward its region
- Stacked learner — boosted trees plus splines for the nuisance models
- Difference-in-differences and placebo — handle a stable hidden confounder, test parallel trends
- DoubleML — baseline: the partially linear model (DoubleMLPLR)
Google or a one-time email code. No password.