Causal inference · Unconfoundedness · Remix §5.4
Assumes you have read Ch. 5 of Cunningham's Causal Inference: The Remix (§5.4). Work through the numbered steps in order. About 25 minutes.
To compare first class with everyone else fairly, you subclassify: split people into strata that share sex and age, compare survival inside each stratum, then average those differences.
The weights choose the target. Each stratum's share of everyone gives the ATE, its share of first class gives the ATT, and its share of the others gives the ATU. An estimate needs both groups in every stratum it weights (common support).
Look at the survival gap, then predict and lock in.
Dawson (1995) lists 2,201 people aboard. The treated are 325 first-class passengers. The 1,876 controls are second class, third class and crew; crew are 47% of them.
The SDO equals the ATE only if both groups would have survived at the same rates under either ticket.
Predict: after you adjust for sex and age, the effect of first class will be…
You'll see how your prediction did in step 5.
Compare the two groups' mix of sex and age, then answer.
Lifeboats were loaded women and children first, so sex and age shaped survival.
Which way does this imbalance push the SDO, relative to the effect of first class?
Find the male adults row, subtract the two rates, and type the difference.
The table splits people into 4 strata by sex and age. Within one stratum, sex and age can't confound the comparison.
| Stratum | First class | Others |
|---|
Male adults: what is the first-class rate minus the others' rate?
Switch between ATE and ATT and see how the weights change the sum. Then work out the ATU.
Weight each stratum's difference by its share of the people you target, then add. The ATE targets everyone, the ATT first class, the ATU everyone else.
The ATU opens once you answer the question below.
The ATE blends the other two by group size: ATE = π·ATT + (1 − π)·ATU, where π = 325/2,201 = 0.148. From the ATE and ATT above, what is the ATU?
Compare the three adjusted effects with the SDO, and see how your step 1 prediction did.
All three hold sex and age fixed. They differ in whose effect they average.
You predicted smaller. Right: all three estimates sit 11.6 to 16.5 points below the SDO. First class's head start in women had inflated the raw gap.
You predicted about the same. In fact all three estimates sit 11.6 to 16.5 points below the SDO: first class's head start in women had inflated the raw gap.
You predicted larger. In fact all three estimates sit 11.6 to 16.5 points below the SDO: first class's head start in women had inflated the raw gap.
Pick an answer and press Check.
The ATE asks what first class would do for all 2,201 people aboard. Which estimate should you report?
Predict and lock in. Then test it in 6b.
Only one girl travelled first class. Suppose she were not in the data.
Predict: without her, which estimates can you still compute?
Right. Her stratum keeps 44 girls from other classes but no first-class girl, so it has no difference. The ATT weights strata by first-class passengers, gives that one zero, and never needs it. Check it in 6b.
Not quite. Her stratum carries only 0.02 of the ATE's weight, so losing it looks harmless. But its difference no longer exists, and any positive weight on a missing number leaves the whole sum undefined. Check it in 6b.
Not quite. That is the mirror case: a stratum with first-class passengers but no controls. Here the stratum keeps 44 controls and loses its only first-class passenger. Which average still weights it? Check in 6b.
Not quite. The ATT weights strata by their first-class passengers. Her stratum now has none, so the ATT gives it zero weight and never needs its difference. Check it in 6b.
Press Drop her and see which estimates survive.
| Stratum | First class | Others | Difference |
|---|
Drag m and v and watch when each estimate stops being computable. Then answer and press Check.
Each covariate multiplies the strata: m covariates with v values each give vm strata (the curse of dimensionality).
Idealized: these covariates are random, so they aren't confounders. Real ones are lumpier, so read the shape, not the exact m.
A colleague adds 6 more binary covariates “just to be safe” (m = 8, v = 2). Set the sliders there. What does it cost?
You can now stratify and difference by hand, weight for the ATE, ATT or ATU, and say which cells each one needs.
Book notes: Table 5.2 prints 44 girls, where Eq. 5.18 and the counts give 45; its 0.138 for adult men comes from rounded rates (0.1374 exact); its ATT-weight sentence says "adult male stratum" where it means first class.
Left out: standard errors; regression, which fills empty cells by extrapolating; and continuous covariates such as exact age, where almost no cell holds both groups.