Blog › Research methods
Spearman’s Rho, Step by Step
Rank, find the differences, square them, use the formula, compare. Five steps, one worked example, and the decision rule students most often get backwards.
In short
Use Spearman’s rho to test for a correlation between two co-variables measured at least at ordinal level. Rank each variable separately, find d and d², then use rs = 1 − 6Σd² ÷ n(n² − 1). The result is significant if your value (ignoring the sign) is equal to or greater than the critical value.
Watch: Spearman’s rho explained
When to use it
- You are looking for a relationship (correlation), not a difference
- You have two scores from each participant (co-variables)
- The data are at least ordinal: they can be put in rank order
The five steps
- Rank each variable separately. Give the lowest score rank 1. Tied scores share the average of the ranks they would have taken.
- Find d for each participant: rank of variable A minus rank of variable B.
- Square each d and add them up to get Σd².
- Use the formula: rs = 1 − (6 × Σd²) ÷ n(n² − 1), where n is the number of participants.
- Compare with the critical value for your n, significance level and one- or two-tailed hypothesis. Significant if the observed value is equal to or greater than the critical value.
Worked example
A student predicts that the more sleep people lose, the more irritable they feel (a one-tailed, directional hypothesis). Eight participants report hours of sleep lost and complete an irritability questionnaire.
| Participant | Sleep lost (hours) | Rank | Irritability score | Rank | d | d² |
|---|---|---|---|---|---|---|
| A | 2.5 | 3 | 12 | 3 | 0 | 0 |
| B | 4 | 5 | 15 | 6 | -1 | 1 |
| C | 1 | 1 | 9 | 2 | -1 | 1 |
| D | 6 | 7 | 18 | 8 | -1 | 1 |
| E | 3.5 | 4 | 13 | 4 | 0 | 0 |
| F | 7 | 8 | 17 | 7 | 1 | 1 |
| G | 2 | 2 | 8 | 1 | 1 | 1 |
| H | 5 | 6 | 14 | 5 | 1 | 1 |
| Σd² | 6 | |||||
Calculate: rs = 1 − (6 × 6) ÷ 8(64 − 1) = 1 − 36 ÷ 504 = 1 − 0.071 = 0.929.
Decide: for n = 8 at p ≤ 0.05, one-tailed, a standard critical values table gives 0.643. The observed value of 0.929 is greater than 0.643, so the result is significant: there is a strong positive correlation between sleep lost and irritability, and the null hypothesis can be rejected.
Memory hack: tests with an R in the name (chi-squared, Spearman’s rho) need the observed value to be greater than or equal to the critical value. Wilcoxon and Mann-Whitney are the other way round.
Exam tipAlways write the full conclusion: the observed value, the critical value, n, the significance level, one- or two-tailed, and the decision. “It is significant” on its own rarely earns the marks.
Free download
The chi-squared worked example and practice set
Statistics practice in the same step-by-step style, with practice data and answers.
- Expected frequencies and degrees of freedom
- The critical value decision, worked through
- Practice data with answers
Pop your email in below. You will go straight to the download page, and you will also get Exams Made Easy: one two-minute exam skill every Sunday. Unsubscribe any time.
Quick check
1. What level of data does Spearman’s rho need?
At least ordinal: data that can be ranked.
2. Is a negative rs value significant?
It can be. Compare the value ignoring the sign with the critical value; the sign tells you the direction of the correlation.
3. What do you do with tied scores?
Give them the average of the ranks they would have taken.
For teachers
The full units are available now
Both Biological Psychology units include Spearman’s rho step by step, a full correlational practical and calculation exam practice. Complete and editable for Edexcel A Level and IAL.
