Problem
A marketing team sends offers to selected customers and keeps no random holdout, so nobody can read the effect from an A/B test. The data science team must still say how the offers change customer orders. A plain comparison of customers with and without an offer is biased by confounders. Customers who opted out of email cannot get offers and order less. The CRM team also targets by order history, which predicts future orders. Linear regression on such data can mis-estimate the effect when the confounders act on treatment and outcome in a complex way.
Example from the article: a synthetic marketing case with 100000 customers and 10 pre-treatment features, where the true offer effect on orders is set to 0.75.
Solution in brief
Double machine learning (DML) estimates the effect in two stages. Flexible ML models first predict the outcome and the treatment from the confounders. A simple linear model then regresses the outcome residuals on the treatment residuals, and its coefficient is the average treatment effect (ATE).
Questions this case answers
- How to estimate the average causal effect of an intervention from observational data when targeting depends on many confounders with a complex, non-linear influence on both treatment and outcome
- How to estimate the average effect of a promotion on orders when customers were not randomly chosen to receive it?
- How to remove confounding bias from an effect estimate when linear regression cannot capture how the confounders drive treatment and outcome?
- How to choose between double ML, T-learner and S-learner for estimating an average treatment effect?
Tools and methods
- Double machine learning (LinearDML in EconML) — de-biased ATE from observational data.
- LightGBM — flexible first-stage outcome and treatment models.
- Linear regression (RidgeCV) — baseline that shows the bias.
- CausalML — its synthetic data generator is the basis of the test data.
Google or a one-time email code. No password.