Applied AI Vol. 1 · 5 min read
You cannot randomize, but you have logs of who received a treatment and what happened. Inverse-probability weighting uses the chance of treatment to rebalance the comparison.
The propensity score
The propensity score is the probability that a unit receives the treatment given its covariates. You estimate it with a model, such as logistic regression, using pre-treatment variables.
Weighting
Weight each treated unit by 1 divided by its propensity, and each untreated unit by 1 divided by one minus its propensity. A treated unit that was unlikely to be treated stands in for many similar units that were not, so it gets a large weight.
The weighted difference in outcomes estimates the average treatment effect, provided you have measured all the confounders and the model for the propensity is adequate.
Positivity
Every kind of unit needs a real chance of both treatment and no treatment. If some customers were never treated, there is no data to say what the treatment would have done for them, and weights near 1/0 blow up. Look at the distribution of estimated propensities: values very close to 0 or 1 are a warning.
Common responses are to restrict the analysis to the overlap region, state the changed population, or trim or clip extreme weights while accepting some bias.
Diagnostics
- After weighting, check that covariates are balanced between groups.
- Report the effective sample size, which falls when weights are uneven.
- Compare against a doubly robust estimate, which combines weighting with an outcome model.
- Try a sensitivity analysis for unmeasured confounding.
