In a hospital study of 1,000 patients split evenly between mild (Z=0) and severe (Z=1) cases, recovery rates for treated (T=1) vs untreated (T=0) patients are 90/100 vs 320/400 among mild cases and 200/400 vs 40/100 among severe cases. How do these numbers exhibit Simpson’s paradox, what is the causal DAG and backdoor-adjusted effect P(Y=1∣do⁡(T=1))−P(Y=1∣do⁡(T=0)), and why does adjusting for a collider instead of a confounder introduce bias?

ML systems and evaluation, Causal inference
Level L4 Advanced. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can work through Simpson’s paradox numerically, apply Pearl’s backdoor adjustment formula, and distinguish confounders from colliders.

Key idea

In the causal DAG Z→T, Z→Y, T→Y, severity Z is a confounder; naive pooling reverses the sign of the treatment effect, whereas the backdoor formula P(Y=1∣do⁡(T=t))=∑zP(Y=1∣T=t,Z=z)P(Z=z) recovers the true causal effect.

Steps

  1. Check subgroup rates: for mild patients (Z=0), recovery is 90/100=0.90 (T=1) vs 320/400=0.80 (T=0), a +0.10 benefit; for severe patients (Z=1), recovery is 200/400=0.50 (T=1) vs 40/100=0.40 (T=0), also a +0.10 benefit.
  2. Compute naive pooled rates: treated overall is (90+200)/(100+400)=290/500=0.58; untreated overall is (320+40)/(400+100)=360/500=0.72. The naive difference is 0.58−0.72=−0.14, falsely making the drug look harmful (Simpson’s paradox, because doctors gave the drug mostly to severe cases).
  3. State the causal DAG (Z→T, Z→Y, T→Y), where confounder Z creates the non-causal backdoor path T←Z→Y. Conditioning on Z blocks this path, so Pearl’s backdoor adjustment with P(Z=0)=500/1000=0.5 and P(Z=1)=0.5 gives P(Y=1∣do⁡(T=1))=0.90(0.5)+0.50(0.5)=0.70 and P(Y=1∣do⁡(T=0))=0.80(0.5)+0.40(0.5)=0.60.
  4. Conclude the causal average treatment effect is 0.70−0.60=+0.10: the drug increases recovery by 10 percentage points.
  5. Contrast with a collider (T→C←Y): while conditioning on a confounder Z blocks a non-causal backdoor path, conditioning on a common effect (collider) C opens a spurious path between T and Y, creating selection bias (Berkson’s paradox).

Common mistakes

How long your answer should be

Half a page with the arithmetic, DAG paths and collider contrast; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: In knowledge distillation, the student minimises L=(1−α)LCE(y,pS)+αT2KL(pT(T)∥pS(T)), where p(T)=softmax⁡(z/T) uses temperature T>1. How do you derive the gradient of KL(pT(T)∥pS(T)) with respect to student logit zi in the high-temperature limit to show why the T2 multiplier is needed?
Next in ML systems and evaluation: What is ε-differential privacy, and why does the Laplace mechanism satisfy it? For a counting query (sensitivity Δf=1) released with the Laplace mechanism at ε=0.5, what are the noise scale b, variance, standard deviation, and tail probability P(∣noise∣>5), and how do privacy and accuracy change across repeated queries?