Skip to content

What is rank correlation?

Rank correlation measures how similarly two variables order a set of items. Replace each value with its rank (1st, 2nd, 3rd…), then ask: do the two rankings agree? The result runs from +1 (identical order) through 0 (no relationship) to −1 (exactly reversed order).

An everyday example

Two friends rank the same ten films. If their lists are identical, the rank correlation is +1. If one list is the other upside down, it is −1. If there is no pattern at all, it is close to 0. Notice that it does not matter whether one friend scores films out of 5 and the other out of 100: only the order is compared.

Rank vs ordinary (Pearson) correlation

Pearson correlationRank correlation
MeasuresStraight-line relationship between valuesWhether the order is the same (any rising or falling pattern)
Sensitive to outliersYes: one extreme value can dominateMuch less: an outlier is just first or last
Changes if you log-transform the dataYesNo: the order does not change
Common namesPearson's rSpearman's ρ (rho), Kendall's τ (tau)
Good forMeasurements on a similar scale with a linear relationshipSkewed data, rankings, mixed units

Pearson correlation asks whether the points fall near a straight line. Rank correlation asks a looser question: when one goes up, does the other tend to go up too? A relationship that curves (rising quickly, then flattening) can have a perfect rank correlation and a weaker Pearson correlation.

The two common measures

  • Spearman's ρ: the Pearson correlation of the ranks. Easy to compute, easy to explain, and the one Mystery Metric will use. The formula and a worked example are on how scoring works.
  • Kendall's τ: counts how many pairs of items are in the same order in both rankings, minus how many are in opposite order. Usually smaller in magnitude than Spearman's ρ for the same data, and preferred by some statisticians for small samples.

Why rank correlation fits world data

Country statistics are usually skewed: a few countries have values far larger than the rest. With Pearson correlation, those few countries would decide the result. Ranks give every country one equal step, so the comparison reflects the whole world rather than the extremes. Ranks also make it possible to compare statistics in completely different units, such as a percentage against a value per person.

What a high rank correlation does not mean

  • Not causation. Two statistics can rank countries alike because both follow a third factor, such as income.
  • Not equal size. Identical order says nothing about how big the gaps between countries are.
  • Not the same thing. Even ρ = 0.95 leaves room for real differences in individual countries.

Negative is still informative

A strong negative rank correlation means one statistic is close to the mirror image of the other. In Mystery Metric that shows up as an inverse result. It does not solve the puzzle, but it tells you which countries are probably at the bottom of the hidden map, which is a strong clue.

Related terms

Play the first map on day one

Mystery Metric is in the final stretch before launch. Leave your email and we will tell you when the first puzzle is live.