Applied AI Vol. 1

Confounding and the Backdoor Path: Why Correlation Misleads Decisions

A common cause can make a treatment look helpful or harmful. Here is how adjusting for the right variable fixes it, and how adjusting for the wrong one breaks it.

Applied AI Vol. 1 · 5 min read

Customers who use a premium feature churn less. Should you push the feature on everyone? Maybe, but first ask what else differs between the people who chose it.

A confounder

A confounder affects both who gets the treatment and what the outcome is. Engaged users may be more likely to try the feature and also less likely to churn. The raw gap between users and non-users mixes the feature’s effect with the effect of engagement.

Simpson’s paradox

Within each engagement level, the feature might have no effect, or even a small negative one, while the overall comparison shows a clear benefit. Reversals like this are not a curiosity: they are what you should expect when groups differ in size and in baseline outcome.

Adjusting for the right thing

In a causal diagram, a backdoor path runs from treatment back through a common cause to the outcome. Adjusting for a variable that blocks every backdoor path, for example by comparing within engagement strata and averaging, removes that bias, assuming you measured the confounder.

Adjustment can also hurt. Conditioning on a collider, a variable caused by both treatment and outcome, opens a path that was closed. Conditioning on a mediator removes part of the effect you care about.

Practical steps

  • Draw the causal story before choosing variables, and write the assumptions down.
  • Adjust for pre-treatment variables only.
  • Where you can, randomize. A well-run randomized experiment sidesteps most confounding.
  • Report what unmeasured confounding would be needed to overturn the result.

More guides from this book