Quant Memo
Core

Cramér's V and Measures of Association

Correlation coefficients need numeric, ordered data — Cramér's V is the analogous 0-to-1 strength-of-relationship measure for two purely categorical variables with no natural ordering, like sector and analyst-rating-change type.

Prerequisites: Correlation, Hypothesis Testing

You want to know whether a company's sector (Tech, Energy, Healthcare, ...) is related to the type of analyst rating action it received last quarter (Upgrade, Downgrade, No Change). Neither variable is a number — you can't compute a Pearson correlation between "Tech" and "Upgrade." A chi-squared test can tell you whether the two variables are related at all (a yes/no answer), but not how strongly — and "statistically significant" and "practically meaningful" are very different things once your sample gets large enough. Cramér's V is the fix: a single number between 0 and 1, built from the same chi-squared statistic, that behaves like a correlation coefficient's strength reading but works for purely categorical, unordered data.

An analogy: how much does knowing one thing narrow down the other?

If knowing someone's astrological sign told you nothing useful about their favorite music genre, the two would show zero association — knowing one leaves your guess about the other exactly as uncertain as before. If knowing someone's home country almost perfectly predicted their favorite sport, that's strong association — knowing one nearly pins down the other. Cramér's V measures exactly this "how much does knowing category A narrow down your uncertainty about category B" idea on a fixed 0-to-1 scale, regardless of how many categories either variable has or how the categories happen to be labeled.

The mechanics, one piece at a time

Start from a chi-squared test of independence on the contingency table of observed counts across all combinations of the two categorical variables. The chi-squared statistic, χ2\chi^2, measures the total discrepancy between observed cell counts and the counts you'd expect if the two variables were independent. The problem with using χ2\chi^2 directly as a strength measure is that it grows mechanically with sample size nn, even if the underlying association is weak — a huge sample can produce a huge χ2\chi^2 from a trivial relationship. Cramér's V corrects for this:

V=χ2/nmin(r1,c1),V = \sqrt{\frac{\chi^2 / n}{\min(r-1, c-1)}},

where rr and cc are the number of rows and columns (categories) in the table. In plain English: divide out the sample size's mechanical inflation of χ2\chi^2, then rescale by the table's dimensions so the result always lands between 0 (no association) and 1 (perfect association, each category of one variable maps to exactly one category of the other), no matter how many categories are involved. This makes VV directly comparable across tables of different sizes and different sample sizes — something a raw χ2\chi^2 value cannot do.

Worked example 1: sector vs. rating action

A contingency table of 400 companies across 4 sectors and 3 rating-action categories (Upgrade, Downgrade, No Change) yields a chi-squared statistic of χ2=24.6\chi^2 = 24.6 with min(r1,c1)=min(3,2)=2\min(r-1,c-1) = \min(3,2) = 2. Cramér's V: V=24.6/4002=0.06152=0.030750.175V = \sqrt{\frac{24.6/400}{2}} = \sqrt{\frac{0.0615}{2}} = \sqrt{0.03075} \approx 0.175. This is a weak-to-modest association — the chi-squared test might well be statistically significant at n=400n=400 (a p-value comfortably below 0.05), but a V of 0.175 tells you sector explains only a small part of what drives rating actions, which is a very different, more useful message than "statistically significant" alone conveys.

Worked example 2: comparing two tables fairly

A second study, with 4,000 companies instead of 400, finds the exact same proportional pattern in its contingency table, so its chi-squared statistic scales up roughly tenfold to χ2246\chi^2 \approx 246. Naively comparing χ2=24.6\chi^2 = 24.6 versus χ2=246\chi^2 = 246 would suggest the second study found a "ten times stronger" relationship — but Cramér's V for the second table, V=246/40002=0.061520.175V = \sqrt{\frac{246/4000}{2}} = \sqrt{\frac{0.0615}{2}} \approx 0.175, comes out identical to the first. The two studies actually found the same underlying strength of association; only the raw chi-squared statistic, and the statistical confidence in detecting it, changed with sample size. This is exactly why V, not raw chi-squared, is the number to report when the question is "how strong," not "is it detectable."

n=400 χ² = 24.6 V ≈ 0.175 n=4,000 χ² = 246 V ≈ 0.175 Same association strength, ten times the sample size and chi-squared statistic
Chi-squared grows mechanically with sample size even when the underlying association is unchanged; Cramér's V divides that inflation out, so both tables here correctly report the same 0.175 strength of association.
weak <0.1 moderate 0.1-0.3 strong >0.3 V = 0.175 (sector vs. rating action)
Conventional bands for interpreting Cramér's V place the sector-versus-rating-action example (V ≈ 0.175) at a weak-to-moderate association, a very different message than a significant chi-squared p-value alone would send.

What this means in practice

Cramér's V is the go-to strength-of-relationship measure whenever both variables are categorical and unordered: sector versus event type, exchange versus order-cancellation reason, region versus default trigger. It lets you compare association strength across datasets of different sizes fairly, and separates the "is there a relationship" question (chi-squared p-value) from the "how much does it matter" question (V), which large financial datasets otherwise conflate — almost anything becomes "significant" with enough data, but not everything significant is large.

Cramér's V rescales the chi-squared statistic by sample size and table dimensions to produce a 0-to-1 measure of association strength between two categorical variables, letting you compare "how related" across tables of any size — unlike the raw chi-squared statistic, which mechanically grows with sample size regardless of whether the underlying relationship got any stronger.

A statistically significant chi-squared test (small p-value) only tells you the association is unlikely to be pure noise — it says nothing about how large or practically meaningful that association is, and with enough data even a trivial V near 0.05 can produce a vanishingly small p-value. Always report Cramér's V alongside (or instead of) the chi-squared p-value when the point is to communicate the strength of a categorical relationship, not merely whether one is statistically detectable.

Related concepts

Practice in interviews

Further reading

  • Cramér, Mathematical Methods of Statistics, ch. 21
ShareTwitterLinkedIn