Effect size · Statistics Library

Cramer's V

Cramer's V is a normalized measure of association strength between two categorical variables, scaled to run from 0 (no association) to 1 (perfect association) regardless of the table's size.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

The chi-square statistic from a test of independence tells you whether an association is detectable, but its raw size depends heavily on the sample size and on how many rows and columns the table has: a big table with lots of data will produce a big chi-square value even for a fairly weak association. Cramer's V fixes this by rescaling chi-square into a number that behaves like a correlation.

A Cramer's V near 0 means the two categorical variables are essentially unrelated; a V near 1 means knowing one variable almost perfectly determines the other. Rough conventional benchmarks (adjusted for the table's degrees of freedom) exist, similar in spirit to Cohen's d's small/medium/large labels, but should be read as a starting point, not a rule.

It is the natural companion to a chi-square test of independence in exactly the way Cohen's d accompanies a t-test: the chi-square test says 'is there evidence of an association', and Cramer's V says 'how strong does that association look'.

For a 2x2 table, Cramer's V equals the absolute value of the phi coefficient. Cramer's V is the usual categorical effect size for a chi-square test of independence.

Practitioner explanation

V = sqrt(chi2 / (n * (k-1))), where k = min(number of rows, number of columns), so the divisor (k-1) is the smaller table dimension minus 1; this normalizes for the table's shape so that V's maximum possible value is 1 for tables of any size, unlike the raw chi-square statistic.

V is a symmetric, non-directional measure of association and does not indicate WHICH cells drive the association; adjusted (Pearson) standardized residuals per cell are the standard follow-up for that. Like phi (its 2x2 special case) V is sensitive to the marginal distributions of the table (very unbalanced margins can constrain the achievable V), a caveat that limits strict comparability across tables with very different marginal structures.

KernelStats reports Cramer's V directly alongside the chi-square statistic on the test-of-independence card, computed from the same table, so an association that is statistically detectable but practically weak (small V, significant p at large n) is visible on the same card rather than requiring a separate calculation.

When to use it

Consider it when

Alongside every chi-square test of independence, to communicate the STRENGTH of the association, not only whether one is detectable.

Use caution when

As a directional measure (it cannot say which category level drives the association) or as a like-for-like comparison across tables with very different marginal distributions.

Formulas and symbols

Cramer's V

V=χ2n (k−1)V = \sqrt{\frac{\chi^2}{n \,(k-1)}}

n is the total sample size, k = min(number of rows, number of columns).

Common misconceptions

Misconception

A statistically significant chi-square test with a large sample means the association is strong.

Correction

Chi-square grows with sample size even for a weak association. Cramer's V, not the chi-square statistic or its p-value, is what indicates how strong the association actually is.

Read more: Misconception: a chi-square test can be run directly on percentages

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.15 Chi-square test for independence, NIST/SEMATECH (2012), §1.3.5.15.