Admissions that favour men overall and women in every department. Confounders, colliders, Simpson’s paradox, and why a coin flip is the best tool science has
Everyone knows that correlation is not causation. Fewer know why, or what to do about it. The trouble has a shape: a third variable sitting in one of three positions, and in two of them the standard advice, “adjust for it”, makes things worse.
Press “Split by department” and watch a 14-point gap in favour of men break into six departments, most of which favour women. Then open “Who applied where”, and drag the slider to let women apply like men.
Build your own reversal (made-up numbers)
Treatment 1, mild cases
Treatment 2, mild cases
Treatment 1, severe cases
Treatment 2, severe cases
| Recovered | Treatment 1 | Treatment 2 | Higher rate |
|---|---|---|---|
| mild cases | 18 of 20 (90%) | 64 of 80 (80%) | Treatment 1 |
| severe cases | 24 of 80 (30%) | 4 of 20 (20%) | Treatment 1 |
| everyone | 42 of 100 (42%) | 68 of 100 (68%) | Treatment 2 |
Top: real data, the six largest departments at Berkeley for autumn 1973. Sky is men and orange is women throughout. In “Who applied where” and “Vectors” the dashed lines are the overall rates. The slider is a thought experiment, direct standardisation: it keeps every department’s admission rate for each sex and changes only how one sex’s applications are spread over departments. Bottom: a made-up table of two treatments; each chain steps across by patients and up by recoveries, mild cases first.
The data come from Peter Bickel, Eugene Hammel and J. William O’Connell, “Sex Bias in Graduate Admissions: Data from Berkeley” (Science, 1975). Across the whole campus for autumn 1973, about 44% of 8,442 male applicants were admitted and about 35% of 4,321 female applicants, which looked like bias against women. Department by department there was no such pattern, and if anything a small bias the other way. Women had applied disproportionately to departments that were hard to get into for everyone. The demo uses the six largest departments, where the pooled figures are 44.5% of 2,691 men and 30.4% of 1,835 women.
The arithmetic is that a pooled rate is a weighted average of the departmental rates, with weights equal to the share of the group applying to each department. If pk is a group’s admission rate in department k and wk the share of its applications sent there, the pooled rate is the sum of wkpk. Two groups with different weights can have pooled rates in the opposite order to every one of their pk. Direct standardisation, the slider in the demo, gives both groups the same weights: with the men’s weights the women’s rate becomes 51.6% against the men’s 44.5%. In the vector picture each department is a step of (applicants, admitted), a rate is a slope, and a sum of steeper steps can still be the shallower vector if its long steps are the shallow ones.
The reversal is named after Edward Simpson, who described it in 1951, though Udny Yule had noted the same effect in 1903. In its strict form one group leads in every stratum and trails overall. Berkeley is the milder and more common case: women led in four departments of the six, and the large pooled gap vanished.
Arithmetic alone does not say which table to believe. Whether the pooled or the split comparison answers the question depends on the causal story: here, on the fact that applicants choose a department before any committee decides. Splitting is right for asking whether committees treated men and women differently. It does not show that nothing unfair happened, and the authors noted that the data cannot say why women applied where they did. In other problems the pooled table is the right one, as the mediator in the next demo shows.
Choose a preset, then switch the analysis between “Everyone”, “Adjust for Z” and “Only high Z”, and see which one lands on the dashed line of truth. Click the links in the diagram to rewire it yourself.
| Z is a | Shape | What to do about Z |
|---|---|---|
| Confounder | X ← Z → Y | Adjust for Z. Without it the slope mixes the effect of X with the effect of Z. |
| Mediator | X → Z → Y | Do not adjust for Z if you want the total effect of X. Adjusting leaves only the part that bypasses Z. |
| Collider | X → Z ← Y | Do not adjust for Z, and beware of samples that were selected on it. |
Everything here is simulated: 2,000 cases in which each variable is the sum of its causes times the arrow strengths, plus independent normal noise. Click a link in the diagram to change its arrow, or use the buttons; drag the circles to rearrange them. Dots are coloured by Z, from indigo (low) through teal to yellow (high); grey dots are cases an analysis has left out. The dashed white line is the truth: what moving X by hand would do to Y. Amber is the analyst’s fitted line, and under “Adjust for Z” the short coloured lines are fits within five equal slices of Z.
A causal diagram has a node for each variable and an arrow from each cause to its effect. Sewall Wright introduced the idea as path analysis in the 1920s, and from the 1990s Judea Pearl and others developed it into a general graphical theory of causation. With three variables, a third variable Z can sit between X and Y in three ways: as a fork (X ← Z → Y, a common cause), a chain (X → Z → Y, a mediator) or a collider (X → Z ← Y, a common effect). Larger diagrams are assembled from these three junctions.
A fork and a chain both let association flow between X and Y, and holding Z fixed blocks it. For a fork that is the cure: the association was never an effect of X. For a chain it removes the very effect being studied, and what remains is only the direct effect that bypasses Z. A collider is the reverse of both: it blocks association when left alone and opens a path when it is held fixed. In the demo’s linear model with unit noise, a collider built with strengths a and b gives a slope of exactly zero using everyone and −ab/(1 + b²) after adjusting for Z.
Selecting a sample on a collider does the same as adjusting for it. Joseph Berkson pointed out in 1946 that two diseases unrelated in the population can appear associated among hospital patients, because either disease makes admission more likely; this is now called Berkson’s paradox. So “control for everything available” is not safe advice. Whether to adjust for a variable depends on where it sits.
The diagram has to come from knowledge of the subject, because the data cannot supply it. The preset “Same scatter, X causes Y” produces X and Y with exactly the same joint distribution as the Confounder preset, from a world in which X really does drive Y. Measuring Z can rule out some diagrams, since a fork and a chain both predict no association within a slice of Z and a collider does not, but a fork and a chain cannot be told apart from correlations at all.
The drug helps, and yet the patients who chose it do worse. Switch to “A coin chooses” and watch the two groups even out, then raise the number of patients and see which histogram closes in on the truth.
Everything here is simulated. Each patient has a severity (standard normal; paler dots are milder, darker rose more severe) and a recovery score of 50 − 10 × severity + the drug’s effect if treated + noise. In the observational study a patient of severity s takes the drug with probability Φ(strength × s), so the expected severity gap at the current setting is 1.13 sd. Orange band: took the drug; sky band: did not; amber bars are group means and the dashed white line shows where the treated mean would be if the groups differed only by the drug. Below, emerald is the randomised estimate and amber the observational one over 2,000 repetitions, with the truth dashed; the amber triangle marks the exact large-sample value. Adjustment is by least-squares regression on treatment and the measure of severity.
In an observational study the treated and untreated differ in the treatment and in whatever led them to it. In this demo that is severity: the sicker take the drug, and sickness lowers the recovery score. The difference in means converges to the true effect minus (cost of one unit of severity) × (severity gap between the groups), and no sample size shrinks the second term. Adjusting for the confounder removes it only if every confounder is measured, measured accurately, and modelled correctly.
Randomisation makes the treatment independent of every other cause of the outcome, measured or not. The two groups then differ only by chance and by the treatment, the difference in means is an unbiased estimate of the average effect, and the size of the chance differences is known from the randomisation itself, which is what justifies the significance test. R. A. Fisher introduced randomisation for agricultural field experiments in the 1920s. The first widely cited randomised clinical trial is the British Medical Research Council’s trial of streptomycin for tuberculosis, published in 1948 and designed by Austin Bradford Hill.
Some questions cannot be put to an experiment. Nobody can assign people to smoke. The conclusion that smoking causes lung cancer rests on many kinds of observational evidence together: the studies of Richard Doll and Bradford Hill from 1950 onwards, Jerome Cornfield’s argument of 1959 that a confounder strong enough to explain the association would itself have to be implausibly powerful, and the list of considerations Hill set out in 1965 for judging when an association is causal.
Fisher himself disputed the conclusion. He suggested that a common genetic cause might dispose people both to smoke and to develop cancer, which is a confounder of exactly the kind in the second demo. The suggestion was a legitimate question, and it was answered by evidence and argument of the sort Cornfield gave, since no coin could be flipped.
Spot a mistake or have an idea?