Spearman Rank Correlation Calculator
Enter your x and y values to measure how well their ranks agree.
Numbers separated by commas, spaces or new lines.
One y for each x, in the same order.
Result
You entered
ρ squared
Show the work
Rank the data
Spearman's coefficient measures how well the ranks of x and y agree, so replace every value by its rank, 1 for the smallest. A value tied with others takes the mean of the ranks they share. Here no values tie. Ties matter: the shortcut is exact only when the ranks are exactly 1 to , which a tie breaks, so the correlation is always found as Pearson's on the ranks.
Pearson correlation of the ranks
Treat the ranks as ordinary data: and measure the spread of the ranks and how the two sets of ranks move together.
Using
Spearman's shortcut formula
With no ties, is the difference between each pair of ranks and the shortcut agrees with the result above.
Using
Result
So , a strong negative monotonic relationship.