01 / 20

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

Political Science

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.

Rows
Categories of the independent variable (the cause or grouping variable)
Columns
Categories of the dependent variable (the outcome we want to explain)
Cells
Each cell shows the count (and often %) of cases at that intersection

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.

Survey Analysis
Compare opinion breakdowns across demographic groups
Election Data
Examine vote choice by party, region, or income

Anatomy of a Crosstab

Approve Disapprove Total Democrat Republican Total 80 (80%) 20 (20%) 100 30 (30%) 70 (70%) 100 110 90 200 Dependent Variable (Approval) → Independent →

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

1
Percentage within rows: divide each cell by its row total, then multiply by 100.
2
Compare down columns: look at how the percentage for the same dependent-variable category differs between groups.
3
Interpret the difference: a large gap in column percentages across rows signals a relationship.

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

1
State hypotheses: \(H_0\): the two variables are independent. \(H_a\): the two variables are related.
2
Calculate degrees of freedom: \(df = (r - 1)(c - 1)\), where \(r\) = number of rows and \(c\) = number of columns (excluding totals).
3
Compare to critical value: if \(\chi^2\) exceeds the critical value at your significance level (e.g., \(p < 0.05\)), reject \(H_0\).
4
Important: a significant \(\chi^2\) tells you the variables are related, not how strongly. For that we need a measure of association.

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.

Cramer's \(V\)
For any two nominal variables. Ranges from 0 (no association) to 1 (perfect association).
Lambda \(\lambda\)
PRE measure for nominal data. Indicates how much prediction error is reduced by knowing the IV.
Gamma \(\gamma\)
For two ordinal variables. Ranges from \(-1\) to \(+1\), showing direction and strength.

\(\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

1
Identify your variables: which is independent (cause/grouping) and which is dependent (outcome)?
2
Place the IV in rows, DV in columns. Add a totals row and a totals column.
3
Enter raw counts in each cell and calculate row marginals and column marginals.
4
Compute row percentages: \(\text{cell} \div \text{row total} \times 100\).
5
Compare percentages down columns. A large difference suggests a relationship; then test with \(\chi^2\).

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 ACandidate BTotal
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:

1
Cell (Male, A): \(\frac{(120 - 100)^2}{100} = \frac{400}{100} = 4.0\)
2
Cell (Male, B): \(\frac{(80 - 100)^2}{100} = 4.0\)
3
Cell (Female, A): \(\frac{(80 - 100)^2}{100} = 4.0\)
4
Cell (Female, B): \(\frac{(120 - 100)^2}{100} = 4.0\)

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.

0.00 : 0.10
Negligible association
0.10 : 0.30
Weak to moderate
0.30 : 0.50
Moderate to strong
0.50+
Strong association

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?

1
\(E_1\): predict the modal DV category for everyone. Count wrong predictions.
2
\(E_2\): for each IV category, predict the modal DV category. Sum errors across groups.
3
Interpret: \(\lambda = 0\) means no improvement; \(\lambda = 1\) means perfect prediction.

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?

\(\gamma > 0\)
Positive relationship: as IV rises, DV tends to rise
\(\gamma < 0\)
Negative relationship: as IV rises, DV tends to fall

Common Mistakes with Crosstabs

✕ Wrong Percentage Direction
Computing column percentages when the IV is in the rows. Always percentage in the direction of the independent variable.
✕ Confusing Significance with Strength
A significant \(\chi^2\) does not mean a strong relationship. Large samples can make trivial differences significant.
✕ Ignoring Expected Frequency Rule
\(\chi^2\) requires all \(f_e \geq 5\). Cells with very small expected counts invalidate the test: combine categories or use Fisher's exact test.

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

Why might \(\lambda = 0\) even though party and policy support appear strongly related?