Problem
A product team wants to know which customers a communication or promotion changes, so it can stop paying for contacts that change nothing. When the groups differ in their features, because the split was not random or customers chose to join, a naive comparison is biased, and the method has to be fitted to data that cannot be controlled.
Example from the article: a store runs an untargeted promotion that anyone can join. Joining is the customer's own choice, but the promotion's curators decide in which stores the promotion runs, and that decision can be used to estimate the effect.
Solution in brief
Five learners from EconML and CausalML estimate the conditional average treatment effect (CATE): X-learner, Domain Adaptation Learner, R-learner, DR-learner and the Doubly Robust Instrumental Variable (DRIV) learner. All of them include a propensity score model, the probability that a unit lands in the test group given its features, and use it to correct the group imbalance. DRIV estimates the local average treatment effect (LATE) from a randomized encouragement.
Questions this case answers
- How to estimate a per-unit treatment effect from observational data when assignment to treatment depends on unit features
- How to estimate the effect of a voluntary intervention when only an encouragement can be randomized
- How to estimate the effect of an action on each customer when the groups were not assigned at random?
- How to choose between X-, R-, DR- and DRIV-learner for effect estimation?
Tools and methods
- EconML — implements X-learner and Domain Adaptation Learner
- CausalML — implements X-learner, R-learner, DR-learner
- Propensity score model — probability of being in the test group given covariates; logistic regression by default in EconML
- Instrumental variable — a lever the experimenter controls (the variable ) that shifts the intervention but is not the intervention
Google or a one-time email code. No password.