Simpson’s Paradox: The UC Berkeley Admissions Case

A note on AI tools: You may use AI assistants (ChatGPT, Claude, etc.) to help debug your R code — that’s a realistic professional skill. You may not use AI to generate your interpretations. Every write-up sentence must reflect your own reading of the output. If you use AI for any part of this assignment, note where at the end.

Setup

data(UCBAdmissions)

UCBAdmissions ships with base R — no upload or URL needed. It’s a 3-dimensional table: Admit (Admitted/Rejected) × Gender (Male/Female) × Dept (A–F), from UC Berkeley’s 1973 graduate admissions.

Part 1: The Aggregate Picture

Step 1 — Inspect the table’s structure.

str(UCBAdmissions)
ftable(UCBAdmissions)
  1. How many variables does this dataset have, and what are they? What does each cell in the table represent?

Step 2 — Predict before you compute. Before running anything else: if you had to guess, do you think admission rates in 1973 were higher for men, higher for women, or about the same? Write your prediction down.

Step 3 — Collapse across departments and compute overall admission rates.

total <- margin.table(UCBAdmissions, c(1, 2))
total
prop.table(total, 2)
  1. What are the aggregate admission rates for men and women? How does this compare to your prediction?

Step 4 — Test whether the aggregate association is real.

agg_table <- margin.table(UCBAdmissions, c(2, 1))   # Gender x Admit
chisq.test(agg_table)

library(vcd)
assocstats(agg_table)
  1. Report the chi-square statistic, df, N, and p-value. Is the aggregate association between gender and admission statistically significant at α = .05?
  2. Report Cramér’s V from assocstats(). Effect sizes are reported regardless of significance — what does this value tell you about the strength of the aggregate association, separately from whether it’s significant?
  3. Based only on what you’ve computed so far, what would you conclude about gender and admissions at Berkeley in 1973? What is one lurking variable — something not yet in your analysis — that could also explain a gender difference in admission rates, even if there’s no admissions bias at all? (You don’t need to know the answer is “department” yet — just name a plausible candidate.)

Part 2: Breaking It Down by Department

Step 5 — Compute admission rates within each department.

apply(UCBAdmissions, 3, function(tab) prop.table(tab, 2)["Admitted", ])
  1. Look at the rate for men vs. women within each department (not aggregated). In how many of the 6 departments is the female admission rate equal to or higher than the male rate?

Step 6 — Visualize department-level patterns.

library(ggplot2)
ucb_df <- as.data.frame(UCBAdmissions)
ggplot(ucb_df, aes(x = Dept, y = Freq, fill = Admit)) +
  geom_col(position = "fill") +
  facet_wrap(~ Gender) +
  labs(y = "Proportion", x = "Department")
  1. Describe what the figure shows. Does the within-department pattern match the aggregate pattern from Part 1, or contradict it?

Step 7 — Find the lurking variable.

# Applications per department, by gender
margin.table(UCBAdmissions, c(3, 2))
  1. Compare how many women vs. men applied to each department. Do women and men apply to the same departments in the same proportions? Which departments received the most applications from women? Are those typically higher- or lower-admission-rate departments?
  2. Put it together in your own words: why does the aggregate result (Part 1) look different from the department-level result (Part 2)? Name the lurking variable explicitly and explain how it’s related to both gender and admission outcome — which is exactly the condition the chapter says causes Simpson’s paradox.

Part 3: Recognizing It Elsewhere

The chapter lists four warning signs that a dataset might have a Simpson’s-paradox pattern hiding in it (subgroups differing in size, an implausible aggregate result, a plausible confounding Z, and totals that vary systematically across groups).

  1. Pick one warning sign and explain, specifically using numbers from this dataset, how it applied to the Berkeley case.
  2. Describe one situation from your own field of interest (psychology, biology, or sociology) where aggregating across a group could hide or reverse a real pattern. You don’t need real data — just describe the X, Y, and Z (the lurking variable) and how Z would need to relate to both X and Y for the paradox to occur.

Reporting

Write one paragraph (4–6 sentences) summarizing your findings, as if for a methods section. Include: the aggregate result with its test statistic and Cramér’s V, the department-level pattern, and the correct, non-misleading conclusion about what the 1973 data actually show. Do not claim the university was or wasn’t discriminating — state only what the data support.