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, , measures the total discrepancy between observed cell counts and the counts you'd expect if the two variables were independent. The problem with using directly as a strength measure is that it grows mechanically with sample size , even if the underlying association is weak — a huge sample can produce a huge from a trivial relationship. Cramér's V corrects for this:
where and are the number of rows and columns (categories) in the table. In plain English: divide out the sample size's mechanical inflation of , 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 directly comparable across tables of different sizes and different sample sizes — something a raw 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 with . Cramér's V: . This is a weak-to-modest association — the chi-squared test might well be statistically significant at (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 . Naively comparing versus would suggest the second study found a "ten times stronger" relationship — but Cramér's V for the second table, , 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."
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.
Practice in interviews
Further reading
- Cramér, Mathematical Methods of Statistics, ch. 21