Toolstia / Spearman rank correlation calculator
Spearman rank correlation calculator
Spearman rho measures how well two variables rise and fall together, using ranks instead of raw values. Paste pairs of numbers and see rho, its p-value, the ranks and the Pearson r for comparison.
Spearman rho measures how well the ranks of two variables move together, so it detects any steadily rising or falling relationship, not only straight lines, and it is less affected by outliers than Pearson r. Tied values share the average of their ranks.
How it works
- Paste one pair of numbers per line.
- Read rho, the p-value and the strength label.
- Check the rank table.
Why ranks
Ranks make the measure work for any steady rising or falling link, not only straight lines, and make it robust against outliers.
Ties
Tied values share the average of the ranks they would take, which matches standard statistical software.
Reading rho
Values near 1 mean a strong rising link, near -1 a strong falling link, and near 0 no steady link.
Sample size
Fewer than about 10 pairs give weak evidence, so look at the p-value and not rho alone.
Questions
Is my data uploaded?
Everything happens in your browser, and nothing you enter is sent anywhere.
How should I separate the pairs?
Put each pair on its own line, with a space, comma or tab between the two numbers.
When should I prefer Spearman over Pearson?
Use Spearman for ranked data, for curves that always rise or fall, and when outliers could distort Pearson.