Propensity score matching: evaluating marketing campaigns when an A/B test is impossible

Vyacheslav Nazarov3 Apr 2024

Problem

Kuper's (ex SberMarket) promo analytics team had to evaluate many campaigns as marketing budgets and mechanics grew. A/B tests stopped scaling for four reasons: they take time from developers, product managers and analysts; the control group gets no communication and converts less; effects of parallel promotions are hard to separate; and they ignore the data already accumulated.

Example from the article: a push notification with a discount coupon is sent to a group of users, and the team needs its effect on metrics without having kept anyone out of the send.

Solution in brief

For every treated user, find the most similar untreated user. Similarity is the predicted probability of getting the treatment, estimated from 100+ days of behavior history. Then compare metrics between these "twins". A Jupyter notebook with widgets lets the marketing department run this without analysts. It complements A/B tests and does not replace them.

Questions this case answers
  • How to estimate the causal effect of an intervention on past data when holding out a randomized control group is too costly or impossible
  • How to scale observational effect estimation so non-technical stakeholders can run it themselves
  • How to evaluate a marketing campaign when a control group cannot be held out?
  • How to estimate the effect of overlapping promotions without a dedicated A/B test for each?

Tools and methods

  • Propensity score matching (PSM) — pairs treated users with similar untreated users to remove selection bias.
  • Logistic regression or gradient boosting — models the probability of being in the test group.
  • k nearest neighbors — picks the closest control user by that probability.
  • Jupyter notebook with widgets — self-service front end for marketers.
  • Pymatch — open-source Python package that implements PSM.
Continue reading — it's free

Google or a one-time email code. No password.