Measure how consistently two variables rise or fall together using ranks: Spearman's ρ with its p-value and the full table of ranks and squared differences.
ρ = 1 − 6Σd² ÷ (n(n² − 1)), without ties
Raw values or ranks both work; they're ranked for you, with ties sharing the average rank.
Spearman's ρ (rho) measures how consistently two variables move in the same direction, using their ranks instead of their values. It runs from −1 to +1, like Pearson's r.
Because it only cares about order, it catches any steadily rising or falling relationship, curved or straight, and one extreme value can't dominate it. It also suits data that are ranks to begin with, such as judges' placings or survey ratings.
In practice it's simply Pearson's r calculated on the ranks. Without ties, that reduces to the neat shortcut formula using squared rank differences.
As introduced by Spearman (1904); see also Hollander, Wolfe and Chicken. See Sources.
With ties, the calculator uses Pearson's r on the ranks, which is the correct general definition.
The judges agree exactly on the bottom five and differ only in how they order the top three. Judge B scores lower overall, but ranks ignore that.
x = 1 to 10 with three different shapes of y. Spearman sees any steady rise as perfect; Pearson only straight lines.
| y | Spearman ρ | Pearson r |
|---|---|---|
| 2x + 1 | 1 | 1 |
| x³ | 1 | 0.928 |
| eˣ | 1 | 0.717 |
| (x − 5.5)² | 0 | 0 |
For ranks or ratings, for curved but steadily rising or falling relationships, and when outliers could distort Pearson’s r.
Always moving in one direction: as x rises, y never falls (or never rises). It doesn’t have to be a straight line.
They share the average of the positions they occupy. Two values tied for 3rd and 4th both get 3.5.
It uses the standard t approximation, which is good from about 10 pairs. For very small samples, exact tables are more accurate.
Kendall’s τ counts agreeing and disagreeing pairs. It’s usually smaller in size than ρ and has a cleaner interpretation; the correlation coefficient calculator shows both.
Yes. Ranks are already in order, so ranking them again changes nothing.
Rank each column with RANK.AVG, then use =CORREL on the two rank columns.
Charles Spearman, an English psychologist, who introduced rank correlation in 1904 while studying intelligence.
Related Tools
Linear relationship strength.
Linear correlation coefficient.
Regression fit quality.
Parabolic curve fit.
Third-degree polynomial fit.
Higher degree curve fit.