Your browser is out of date

This browser version is too old for Quizara to display the page correctly. Update to the latest version and refresh to continue.

Non-Parametric Test for Correlation

Updated · 2027 Level I · Quantitative Methods · Module 7 · Lesson 12 · 5 min lesson

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.

Review Module 7 formulas in Quizara →

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.

Practice question

For 8 pairs of observations with no tied ranks, the sum of the squared rank differences, ∑di2\sum d_i^2, is 28. The Spearman rank correlation coefficient is closest to:

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.