On this page
What this lesson covers
Spearman rank correlation measures the monotonic relationship between two variables by comparing their separately assigned ranks.
Rank both variables, compute rank differences and apply the no-ties formula. Handle tied ranks separately and choose a specialized table or large-sample t-test for inference.
How do you calculate Spearman rank correlation?
With no tied ranks, subtract six times the sum of squared rank differences divided by n(n² − 1) from one. With ties, assign average ranks and compute the Pearson correlation of those ranks instead.
Spearman rank correlation = 1 − 6 × sum of squared rank differences / [n × (n² − 1)]
- Difference between the two ranks for observation i
- Number of matched observations; no tied ranks
For example, the lesson’s nine managers have fee ranks (1, 2, 3, 4, 5, 6, 7, 8, 9) and corresponding five-year net-return ranks (9, 6, 8, 5, 4, 3, 7, 2, 1), with no ties. Their squared rank differences sum to 216, so rₛ = 1 − (6 × 216) / [9 × (9² − 1)] = 1 − 1,296 / 720 = −0.8.
Common mistakes
- Using the short no-ties formula with tied ranks applies a formula that no longer holds.
Try a practice question
Choose an answer, then check it to read the explanation for every option.
Continue studying in Quizara
In Quizara the lesson comes with more practice questions on the topic, explanations for every option and an AI tutor for your follow-up questions.
Written by the Quizara Editorial Team under our editorial standards.