Cross-Tabulations
& Measures of Association
Learn to build, read, and interpret cross-tabulation tables, calculate percentages correctly, and apply measures of association like \(\chi^2\) and Cramer's \(V\).
What Is a Cross-Tabulation?
A cross-tabulation (or "crosstab") is a table that displays the joint frequency distribution of two categorical variables. It lets us see whether the distribution of one variable changes across the categories of another.
Why Crosstabs Matter in Political Science
Political scientists constantly ask: does X influence Y? Cross-tabulations give us the first, clearest look at whether two categorical variables are related: for example, whether party identification is associated with vote choice.
Anatomy of a Crosstab
The Rule of Percentaging
Always percentage in the direction of the independent variable. If the independent variable is in the rows, compute row percentages. Then compare those percentages across categories of the independent variable (down the columns).
The \(\chi^2\) Test of Independence
The chi-square test tells us whether the relationship we see in a crosstab is statistically significant or could have arisen by chance alone. It compares observed cell counts to the counts we would expect if the variables were independent.
Interpreting \(\chi^2\) Results
Measures of Association
While \(\chi^2\) tests significance, measures of association quantify strength (and sometimes direction). The choice depends on the level of measurement of your variables.
\(\chi^2\) vs. Cramer's \(V\)
| \(\chi^2\) Statistic | Cramer's \(V\) | |
|---|---|---|
| What it tells you | Is there a significant relationship? | How strong is that relationship? |
| Range | \(0\) to \(\infty\) | \(0\) to \(1\) |
| Affected by sample size? | Yes: larger \(n\) inflates \(\chi^2\) | No: normalized by \(n\) |
| Direction of relationship? | No | No (use gamma for ordinal) |
| Formula | \(\sum \frac{(f_o - f_e)^2}{f_e}\) | \(\sqrt{\frac{\chi^2}{n(\min(r,c)-1)}}\) |
How to Build and Read a Crosstab
Example 1: Gender and Vote Choice
A survey of 400 voters records gender (Male/Female) and vote choice (Candidate A / Candidate B). Is there a gender gap?
| Candidate A | Candidate B | Total | |
|---|---|---|---|
| Male | 120 (60%) | 80 (40%) | 200 |
| Female | 80 (40%) | 120 (60%) | 200 |
| Total | 200 | 200 | 400 |
Example 2: Computing \(\chi^2\)
Using the gender/vote table from the previous slide, let us compute \(\chi^2\). Under independence, each expected frequency is:
Example 3: Computing Cramer's \(V\)
Now let us measure the strength of the gender/vote relationship using the \(\chi^2\) value we just found.
Lambda \(\lambda\): A PRE Measure
Proportional Reduction in Error (PRE) measures ask: how much does knowing the independent variable reduce our prediction errors for the dependent variable?
Gamma \(\gamma\) for Ordinal Variables
When both variables are ordinal (e.g., education level and political interest), we can assess direction: as one variable increases, does the other tend to increase or decrease?
Common Mistakes with Crosstabs
Summary: Choosing the Right Measure
| Measure | Level of Measurement | Range | Shows Direction? |
|---|---|---|---|
| \(\chi^2\) | Nominal or ordinal | \(0\) to \(\infty\) | No |
| Cramer's \(V\) | Nominal | 0 to 1 | No |
| Lambda \(\lambda\) | Nominal (PRE) | 0 to 1 | No |
| Gamma \(\gamma\) | Ordinal | \(-1\) to \(+1\) | Yes |
| Kendall's \(\tau_b\) | Ordinal (square table) | \(-1\) to \(+1\) | Yes |
| Somers' \(d\) | Ordinal (asymmetric) | \(-1\) to \(+1\) | Yes |
Question 1 of 5
In a cross-tabulation, if the independent variable is placed in the rows, how should you compute percentages?
Question 2 of 5
In a \(2 \times 3\) cross-tabulation, how many degrees of freedom does the \(\chi^2\) test have?
Question 3 of 5
A researcher finds \(\chi^2 = 45.2\) with \(n = 10{,}000\). A colleague finds \(\chi^2 = 12.8\) with \(n = 200\). Which study shows a stronger association?
Question 4 of 5
A researcher crosstabs education level (low / medium / high) with political interest (low / medium / high) and finds \(\gamma = +0.72\). What does this mean?
Question 5 of 5
A political scientist surveys 300 people and cross-tabulates party ID (Democrat / Independent / Republican) with support for a policy (Support / Oppose). The results:
Democrats: 90 Support, 10 Oppose (n = 100)
Independents: 50 Support, 50 Oppose (n = 100)
Republicans: 20 Support, 80 Oppose (n = 100)
The researcher computes \(\lambda = 0\) when predicting support/oppose from party.
Why might \(\lambda = 0\) even though party and policy support appear strongly related?