Spearman’s rank correlation is a non-parametric measure of the strength and direction of association that exists between two ranked variables. Unlike Pearson’s correlation, Spearman correlation does not assume a linear relationship or normal distribution. It is ideal when data is ordinal or not normally distributed.
Spearman's rank correlation coefficient (denoted by ρ or rₛ) measures the monotonic relationship between two sets of data. It evaluates how well the relationship between two variables can be described by a monotonic function—where values move in the same or opposite direction without necessarily forming a straight line.
It is commonly used in cases involving ranked data, and where Pearson’s correlation may not be suitable.
The formula for Spearman's rank correlation coefficient is:
Where:
This formula is used when there are no tied ranks.
When data has tied ranks (i.e., two or more items have the same value), average ranks are assigned. Adjustments are made to account for these ties using a more advanced version of the Spearman correlation formula that involves correction factors.
Steps to Calculate Spearman’s Rank Coefficient
Example 1: A teacher wants to find the relationship between students’ ranks in Math and Science.
Solution:
Interpretation:
There is a strong positive Spearman rank correlation (rₛ = 0.8) between the Math and Science ranks.
Example 2: Find the Spearman’s rank correlation coefficient for the following data:
Solution:
Interpretation: Strong positive correlation.
Example 3: Calculate the Spearman coefficient for:
Solution:
Interpretation: Moderate positive correlation.
Example 4: Two teachers rank five students based on Class Participation and Homework.
Solution:
Interpretation: Moderate positive correlation.
Example 5: Calculate Spearman’s rank coefficient for ranks in Math and Science.
Solution:
Interpretation: Perfect positive correlation.
Example 6: Ranks of students in two subjects are opposite. Find Spearman correlation.
Solution:
Interpretation: Perfect negative correlation.
Example 7: The following table shows the ranks of 6 students in Mathematics and Physics. Calculate Spearman's rank correlation coefficient.
Solutions:
Step 1: Compute differences and squares
Step 2: Apply Spearman’s rank correlation formula
Answer:
There is a strong positive Spearman correlation between the Math and Physics ranks (rₛ ≈ 0.83).
Question 1: Calculate the Spearman coefficient of correlation for the ranks given below:
Question 2: A teacher recorded the following ranks for five students in Chemistry and Biology. Find Spearman's rank coefficient.
Question 3: The following data is collected from a class. Are the rankings of Maths and English scores positively correlated?
Question 4: What is the Spearman rank correlation when the ranks of two variables are exactly opposite?
Question 5: Two variables X and Y have identical ranks for each item. What is the Spearman's rank correlation coefficient?
(Session 2025 - 26)