Spearman's rank correlation coefficient, denoted by , measures the strength and direction of a monotonic relationship between two variables using their ranks rather than their original values. It ranges from to .
How Spearman's Rank Works
A relationship is monotonic when one variable generally increases as the other increases, or generally decreases as the other increases. Unlike Pearson's , Spearman's does not require the relationship to be linear and is less sensitive to outliers.
Because only order matters, any transformation that preserves the rankings leaves unchanged. This makes the method appropriate for ordinal data and curved but consistently increasing or decreasing patterns.
| Value of | Interpretation |
|---|---|
| Close to | Strong positive monotonic correlation |
| Close to | Weak or no monotonic correlation |
| Close to | Strong negative monotonic correlation |
Calculating
- Rank both variables consistently, usually from smallest to largest.
- For each pair, calculate the rank difference .
- Square each difference and find .
- If there are no tied ranks, use
where is the number of paired observations.
For example, suppose the two sets of ranks are and . The squared differences are , so :
This indicates a positive monotonic association. The rankings mostly move together, but two adjacent pairs are reversed. The coefficient therefore remains positive and fairly strong rather than perfect.
If values are tied, assign each tied value the average rank it would occupy. Do not use the shortcut formula unchanged when tied ranks occur; instead, calculate the correlation of the averaged rank lists. In IB Mathematics: Applications and Interpretation, is normally found using technology.
Exam Technique
This is SL 4.10 and may be tested on either GDC-active SL paper. Show consistent rankings, average tied ranks, state , and interpret its sign and strength in context. A common misconception is that correlation proves causation but it does not.
