Simpson’s paradox in the UC Berkeley admissions data

The data

In 1973 the graduate division of the University of California, Berkeley, was suspected of gender bias in admissions (Bickel, Hammel and O’Connell, 1975). The data for the six largest departments are in base R as datasets::UCBAdmissions, a \(2 \times 2 \times 6\) table (Admit \(\times\) Gender \(\times\) Dept) with 4526 applicants.

ftable(UCBAdmissions, row.vars = "Dept", col.vars = c("Gender", "Admit"))
#>      Gender     Male            Female         
#>      Admit  Admitted Rejected Admitted Rejected
#> Dept                                           
#> A                512      313       89       19
#> B                353      207       17        8
#> C                120      205      202      391
#> D                138      279      131      244
#> E                 53      138       94      299
#> F                 22      351       24      317

All the plots below are interactive. You can drag the variables to change their order, hover the tiles, and switch the residuals in the side panel.

1. The aggregated table

Summing over departments, 44.5% of men and 30.4% of women were admitted. Under independence of Gender and Admit all four cells are significant: the adjusted standardized residuals are \(\pm\) 9.6. Women look under-represented among the admitted.

imosaic(~ Gender + Admit, data = UCBAdmissions,
        main = "Aggregated over departments: Gender x Admit", height = 500)

2. Within departments

The hypothesis of no discrimination corresponds to the log-linear model [AD][GD]: admission and gender are conditionally independent given the department. Its expected counts reproduce the Dept \(\times\) Admit and Dept \(\times\) Gender margins, so each department keeps its own admission rate and its own share of women.

imosaic(~ Dept + Gender + Admit, data = UCBAdmissions,
        expected = ~ Admit * Dept + Gender * Dept,
        main = "Model [AD][GD]: Admit independent of Gender given Dept",
        height = 620)

The model gives \(G^2 =\) 21.7 on 6 df. The only significant cells (Holm correction) are the four cells of department A:

sig
#>      Admit Gender Dept observed  expected  residual      p_value   p_adjusted
#> 1 Rejected Female    A       19  38.43087 -4.153074 3.280382e-05 0.0007872918
#> 2 Admitted Female    A       89  69.56913  4.153074 3.280387e-05 0.0007872918
#> 3 Rejected   Male    A      313 293.56913  4.153062 3.280552e-05 0.0007872918
#> 4 Admitted   Male    A      512 531.43087 -4.153062 3.280556e-05 0.0007872918
#>   direction
#> 1     under
#> 2      over
#> 3      over
#> 4     under

In department A women are admitted more often than men (82.4% vs 62.1%). Without department A the model fits well (\(G^2 =\) 2.7, df = 5, p = 0.75).

Try dragging Dept to the last position. You then see, within each gender, how the applicants are spread over the departments.

Now untick Dept in the toolbar. The table is collapsed over the departments and the model [AD][GD] becomes the independence of Admit and Gender: the plot turns into the aggregated mosaic of Section 1, with its four strongly significant cells. Tick Dept again and each tile splits back into its departments. Switching between the two views shows Simpson’s paradox directly.

3. Why the aggregate is misleading

The department is associated with both gender and admission. Women applied mostly to departments C–F, which admit few applicants. Men applied mostly to A and B, which admit most of them. Aggregating over this confounder creates an association against women that does not exist within departments, where, if anything, women are favoured: this is Simpson’s paradox.

imosaic(~ Dept + Gender, data = UCBAdmissions,
        main = "Who applies where: Dept x Gender", height = 480)
imosaic(~ Dept + Admit, data = UCBAdmissions,
        main = "Admission rate by department: Dept x Admit", height = 480)

Reference

Bickel, P. J., Hammel, E. A. and O’Connell, J. W. (1975). Sex bias in graduate admissions: data from Berkeley. Science, 187, 398–404.

mirror server hosted at Truenetwork, Russian Federation.