Causal Inference — Introduction

Linh V Nguyen26 Apr 2023

Problem

A classifieds marketplace releases a feature to some sellers and asks whether it raises ad performance. Treated and untreated sellers differ in budget, ad content, position and competition, and these also move click-through rate (CTR). A plain comparison of means mixes the feature's effect with those differences. An A/B test cannot test every cause, so many causal questions stay open.

Example from the article: feature X, released last week to some sellers, should make them use budgets more efficiently. If ad CTR improves, it is rolled out to all sellers.

Solution in brief

Name the confounders in a causal graph, then compare treated and control sellers while controlling for them. Randomization is the best way to balance them. Fit a linear model of ad CTR with a treatment flag, test the treatment coefficient, and check that a significant result also matters for the business.

Questions this case answers
  • How to estimate the causal effect of a feature shown to only some users when treated and untreated groups differ in other factors that also drive the outcome
  • How to separate a statistically significant effect from one that matters for the business decision
  • How to estimate the effect of a feature that was released to some sellers on their ad CTR?
  • How to find the confounders that make a feature look better or worse than it is?

Tools and methods

  • Causal graph — draws which variables cause which, to find confounders and the correct causal order.
  • Randomized control trial (RCT) — random assignment to treatment and control to spread confounders equally.
  • Balance check — compares means or distributions of known confounders between the two groups.
  • Linear regression with a treatment flag — estimates the treatment effect on ad CTR after controlling for other variables.
  • Hypothesis test with p-value and power — separates real differences from chance and sizes the sample.
Continue reading — it's free

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