Mathwords logoMathwords

Cramér's V — Definition, Formula & Example

Cramér's V is a number from 0 to 1 that tells you how strongly two categorical variables are related in a two-way table. A value near 0 means almost no association, and a value near 1 means one variable nearly predicts the other.

For an r×cr \times c contingency table with nn observations and Pearson chi-square statistic χ2\chi^2, Cramér's V is V=χ2/(n⋅min⁡(r−1, c−1))V = \sqrt{\chi^2 / \big(n \cdot \min(r-1,\, c-1)\big)}. It satisfies 0≤V≤10 \le V \le 1. V=0V = 0 exactly when every observed count equals its expected count under independence. V=1V = 1 when the association is perfect. For a 2×22 \times 2 table, VV equals the absolute value of the phi coefficient.

Key Formula

V=χ2n⋅min⁡(r−1, c−1)V = \sqrt{\frac{\chi^2}{n \cdot \min(r-1,\ c-1)}}
Where:
  • VV = Cramér's V, the strength of association, between 0 and 1
  • χ2\chi^2 = the chi-square statistic computed from the table
  • nn = the total number of observations in the table
  • rr = the number of rows (categories of one variable)
  • cc = the number of columns (categories of the other variable)

Worked Example

Problem: A school surveys 250 students. It records each student's grade (10th, 11th, or 12th) and favorite lunch option (pizza, tacos, salad, or sandwiches). This gives a 3-row by 4-column table, and a chi-square test on it gives χ2=20\chi^2 = 20. Find Cramér's V.
Step 1: Find the smaller of (rows minus 1) and (columns minus 1). The table has 3 rows and 4 columns.
min⁡(3−1, 4−1)=min⁡(2, 3)=2\min(3-1,\ 4-1) = \min(2,\ 3) = 2
Step 2: Multiply the sample size by that value to get the denominator.
n⋅min⁡(r−1, c−1)=250⋅2=500n \cdot \min(r-1,\ c-1) = 250 \cdot 2 = 500
Step 3: Divide the chi-square statistic by the denominator and take the square root.
V=20500=0.04=0.2V = \sqrt{\frac{20}{500}} = \sqrt{0.04} = 0.2
Answer: Cramér's V is 0.2. Grade level and lunch preference show a weak-to-moderate association.

Why It Matters

A chi-square test in AP Statistics tests for evidence of an association. It does not tell you how strong the association is, and with a large sample even a tiny association can give a very small P-value. Cramér's V reports the size of the effect on a fixed 0-to-1 scale, much as r does for two quantitative variables. Cramér's V itself is not on the AP exam, but survey researchers and social scientists report it routinely.

Common Mistakes

Mistake: Treating a large Cramér's V as proof that the association is statistically significant, or a small V as proof that there is no association.
Correction: V measures strength, not significance. Use the chi-square test's P-value to judge significance and V to judge size. Report both. Also check the denominator: it uses the smaller of (r − 1) and (c − 1), not r or c themselves.

Related Terms