Causal inference · Unconfoundedness · Remix §5.4

Subclassification on the Titanic

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.

Haven't read it? Here's what you need

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).

How much did a first-class ticket raise survival?

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…

Larger than 35.4 points
About 35.4 points
Smaller than 35.4 points

You'll see how your prediction did in step 5.

Were the two groups alike?

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?

Down: the extra women hide part of the effect of class.
Down: first class holds fewer children, who were saved first.
Up: first class holds more women, who survived more in every class.
Neither: comparing rates already adjusts for who is in each group.

What is the class gap within one sex and age group?

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.

Survival rate by stratum and class
Stratum First class Others

Male adults: what is the first-class rate minus the others' rate?

How do four differences become one effect?

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.

Target

The ATU opens once you answer the question below.

Within-stratum differences and weights for the selected target

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?

Which effect should you report here?

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?

The ATT: a first-class ticket for everyone aboard is not a sensible scenario
The ATE: it covers the most people
The ATU: most people aboard were controls
The SDO: it needs no assumptions

What does one missing passenger cost?

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?

All three: ATE, ATT and ATU
Only the ATT
Only the ATE and the ATU
None of the three

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.

People and differences in each stratum
Stratum First class Others Difference

How many covariates can 2,201 people support?

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).

Support at the chosen m and v

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?

The ATE is lost and the ATT barely survives: strata run out of people
Nothing: extra controls can only reduce bias
It adds bias, because the new covariates are confounders
Only precision: estimates get noisier but stay computable

You can now stratify and difference by hand, weight for the ATE, ATT or ATU, and say which cells each one needs.

Assumptions behind the numbers

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.