Causal inference · Unconfoundedness · Remix §5.2
Assumes you have read Ch. 5 of Cunningham's Causal Inference: The Remix (§5.2). Work through the numbered steps in order. About 25 minutes.
A DAG draws causes as arrows. To get the effect of D on Y, only the causal path D → Y should stay open. A backdoor path starts with an arrow into D, like D ← W → Y. Controlling for W, a confounder, closes it.
A collider is a variable two arrows point into, like D → F ← Y. Leave it out: controlling for it opens a false link. A variable that only affects Y is neutral. It fixes no bias but can make estimates more precise.
Study the DAG, then tick every variable you must control for.
Did a first-class ticket (D) raise your chance of surviving the Titanic (Y)? Here is the DAG from §5.2.
To estimate the effect of D on Y, which variables must you control for? Select all that apply.
Predict and lock in. You'll test it in step 3.
In our simulated voyages, first class raises every passenger's chance of surviving by exactly 15 percentage points (pp). A regression that controls for W and C recovers +15 on average.
Predict: add F to a regression that already controls for W and C. The estimate of D's effect will…
Right direction. In step 3, tick W, C and F and see how far it falls.
Not quite. Look at the two arrows into F: first class and survival both raise fame. In step 3, tick W, C and F and compare the average with +15.
Not quite. Look at the two arrows into F. In step 3, tick W, C and F and check which side of +15 the average lands.
Tick controls (or press a preset) and watch where the histogram centres. Then answer below.
Each of 200 simulated voyages gives one estimate of D's effect: a regression of survival on D plus your controls.
Which set is unbiased and most precise?
Compare the bias and spread of each control set.
Answer the question in 3a first. The comparison opens here.
Predict and lock in, then compare the two rows that appear.
On voyage set 1, Everything (W, C, F and S) gave a histogram as narrow as the valid sets, centred near pp.
Predict: with 10 times as many passengers per voyage, its average would…
Everything, averaged over many voyage sets:
Right. More passengers shrink the spread, not the bias. D → F ← Y stays open at any sample size, so you get a more precise wrong answer.
Not quite. Compare the two rows: the spread shrinks and the average stays put. The bias comes from the open path D → F ← Y, and more passengers don't close it.
Compare the bar pairs overall and in each fame group, then answer.
Adult men have W = 0 and C = 0, so no backdoor path is open for them. The bars pool all adult men in the 200 voyages.
Among adult men the first-class gap is near +15 pp overall, yet smaller in both fame groups. Why?
Tick every covariate you would control for, then check.
Now there is no DAG. You compare 1978 earnings of people who took a job-training program in 1976–77 with non-participants from a national survey.
Which would you control for? Select all that apply.
§5.2's emergency rules for when you have no DAG:
Pick a design and press Check.
A placebo analysis estimates the “effect” of training on an outcome it cannot have changed (Imbens and Rubin; Imbens and Xu). Its true value is zero.
Which is a valid placebo test for the training study?
You can now sort covariates into confounders, colliders and neutral ones, tell bias from imprecision, and choose and test controls without a DAG.
Left out: M-bias, where a pre-treatment variable is itself a collider (the book's footnote 4); choosing covariates by regressing pre-treatment outcomes on candidates; Cinelli, Forney and Pearl's (2022) catalogue of good and bad controls; and automated covariate selection, which can be biased unless colliders are removed first (Hünermund, Louw and Caspi 2023).