Skip to main content
Back to Causal Inference

Causal Inference · Cheat Sheet

The Core Problem

Tip: Use your browser's print function (Ctrl+P / Cmd+P) to save as PDF for offline study.

Cheatsheet: The Core Problem

One page for Topic 1. If a comparison lands on your desk, work down this page top to bottom.


The bias equation (memorize this)

Observed difference = ATT + BIAS

(Notation: E[...] means "the average of"; T=1 is the treated group, T=0 the control group; Y1/Y0 are the outcomes if treated / if not.)

TermFormulaIn English
Observed differenceE[Y | T=1] − E[Y | T=0]The dashboard number: treated average minus control average
ATTE[Y1 − Y0 | T=1]True effect of treatment on the people who got it
BIASE[Y0 | T=1] − E[Y0 | T=0]How the treated would have fared untouched, minus how the controls actually fared — how different the groups already were
ATEE[Y1 − Y0]Average effect if everyone were treated (differs from ATT under targeting)

Bias = 0 exactly when groups are exchangeable — same untreated destiny. Randomization guarantees it; every other method in this track is a strategy for approximating it.


The four explanations for any correlation

#ExplanationBusiness example
1X causes YThe email actually reduces churn
2Y causes X (reverse)Committed users explore more, so they find Feature X — retention causes adoption
3Z causes both (confounder)Problems drive both support contact and churn
4Coincidence at scaleTrack 200 metrics, some pairs correlate by chance — guaranteed

Default status of any observational correlation: "interesting hypothesis." Not "finding."


Prediction vs intervention

PredictionIntervention
Question"Which users will churn?""Will this email reduce churn?"
Formal objectP(Y | X = x) — filter a subpopulationP(Y | do(X = x)) — set X, new world
Right toolAny accurate ML modelExperiment or causal design
History answers it?YesNo — history recorded who was chosen for treatment
Accuracy certifies it?Yes (holdout accuracy)Never — a model can be accurate because of selection bias

Shalizi's test: "waxing frequency significantly predicts top speed, controlled for make and age." If the causal reading is absurd there, it's unsupported for "targeted ads drive purchases" too — same structure, less intuition.


The onboarding sign-flip (optimal assignment)

10 accounts; manager assigns premium onboarding to the shakiest accounts.

Truth (all-seeing view)Naive comparison (analyst's view)
Effect of premium onboardingATE = +0.8 monthsPremium group 7.0 vs standard group 8.0 → −1.0 months
WhyAverages both potential outcomes over everyonePremium accounts' Y0 was 2.4, not 8.0 — groups never comparable

The lesson: optimal targeting alone flips the sign. Same math, churn edition: retention program targets at-risk accounts → program "correlates with" 34% churn vs 12%. Rational choice pushes against comparability — the better the targeting, the worse the naive comparison lies.


"Who chose the groups?" — the first audit question

Who choseLikely biasExampleNaive comparison
A coin (randomized)ZeroA/B testTrust it (argue about power, not bias)
Targeting the strugglingNegative — buries good programsRetention outreach, support, remedial trainingEffect looks worse than truth, sign may flip
Targeting the promisingPositive — flatters the treatmentTablets in rich schools, ads aimed at likely buyersEffect looks better than truth
Users themselvesUsually positiveFeature adoption, webinar attendanceAdopters differ in motivation — hypothesis only
Market conditionsOften sign-flippingHotel discounts in slow seasonsCorrelation points backwards

Ten-second checklist before believing any comparison

  1. Who chose the groups? (Coin → proceed. Anyone optimizing → suspect bias, guess its sign from the row above.)
  2. What would the treated group have done untouched? (Is the control group a credible stand-in for that?)
  3. Is the "cause" a response to conditions? (Discounts, support, remedial onboarding → expect the sign to flip.)
  4. Is this a prediction question or an intervention question? (Only the first is answered by fit/accuracy/significance.)
  5. Causal verbs on descriptive slides? ("Drives," "leads to," "generates" — each owes evidence beyond a two-column table.)
  6. Big effect ≠ causal effect. Selection routinely produces 2x-5x gaps; significance at large n is guaranteed, not informative.

Further reading

The ideas in this track draw on the standard causal-inference literature. To go deeper: Cunningham, Causal Inference: The Mixtape (potential outcomes, quasi-experimental designs); Facure, Causal Inference for the Brave and True (selection bias, applied Python); Shalizi, Advanced Data Analysis from an Elementary Point of View (prediction vs intervention, the limits of regression). All examples and numbers in these lessons are our own.

Aligned to the Cunningham’s Mixtape, Facure’s Brave and True, Shalizi’s ADAfaEPoV, and Chernozhukov et al.’s CausalML · last reviewed 2026-07-08.

Make this cheat sheet yours

Personalize this sheet — focus it however you study, or build one from the exact questions you keep getting wrong.

Sign up free to create a personalized cheat sheet.