What Spearman rank correlation means
Big idea: Spearman rank correlation measures how strongly two rankings move together.
It is used for ordinal data or non-linear monotonic patterns.
If higher rank in one variable usually matches higher rank in the other, correlation is positive.
Free preview
This is the free notes preview
You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:
- FlashcardsLock in vocabulary and key terms with spaced repetition.
- Practice questionsAnswer exam-style questions and get instant AI marking.
- Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
- Personalised study planA daily plan built around your exam date and weak areas.
How to calculate Spearman coefficient
In the exam: use the GDC: Rank both variables, put the two rank lists in L1 and L2 and run LinReg(ax + b): the r it shows is rₛ.
The formula below gives the same value only when there are NO tied ranks. Use it as a check, not as the method.
Meaning of d: d is the difference between the two ranks for the same observation.
Worked example
For 5 students, rank differences d are: 1, -1, 0, 2, -2.
Find rs.
Step by step
- Square each d: 1,1,0,4,4
- Sum d2 = 10
- Use formula: rs = 1 - 6(10)/(5(25-1))
- rs = 1 - 60/120 = 0.5
Final answer
rs = 0.5, showing moderate positive rank correlation.
IB-style question — calculate and interpret rₛ [6 marks]
A manager records, for 6 sales representatives, the number of training hours they completed last month and their sales for the month (in thousands of pounds).
Rep: A B C D E F
Hours: 20 14 28 11 25 17
Sales (£000): 52 40 60 33 44 55
(a) Calculate Spearman's rank correlation coefficient rₛ between training hours and sales.
(b) Interpret your value of rₛ in context.
Step by step
- Rank each variable from 1 (highest) to 6 (lowest). Hours rank to A→3, B→5, C→1, D→6, E→2, F→4; sales rank to A→3, B→5, C→1, D→6, E→4, F→2.
- Find d (difference of the two ranks) for each rep, then square it. Only E and F differ.
- As a check the rank differences sum to zero, then add the squares.
- Write the formula before substituting (n = 6 pairs).
- Substitute n = 6 and Σd² = 8.
- (b) rₛ is close to +1, so reps who do more training tend to rank higher in sales — a strong positive monotonic association between training hours and sales.
Final answer
(a) rₛ = 0.771 (3 s.f.). (b) A strong positive monotonic association — more training hours tends to go with higher sales.
Never wonder what to study next
Get a personalized daily plan based on your exam date, progress, and weak areas. We'll tell you exactly what to review each day.
Tied ranks and interpretation
Ties: If two values tie, assign each the average of the tied rank positions.
Worked example
Values: 10, 12, 12, 15. Rank them from 1 (highest).
Step by step
- 15 is the highest: rank 1
- 12 and 12 would fill places 2 and 3, so each gets (2 + 3) ÷ 2 = 2.5
- 10 is next: rank 4 (places 2 and 3 are used up)
Final answer
Ranks: 10 → 4, 12 → 2.5, 12 → 2.5, 15 → 1.
IB-style question — rₛ with tied ranks [6 marks]
Seven students record their average daily screen time (hours) and their average nightly sleep (hours).
Student: 1 2 3 4 5 6 7
Screen (h): 5 3 6 4 5 2 7
Sleep (h): 7 8 5 7 6 9 4
(a) Rank each variable from 1 (highest) to 7 (lowest), giving tied values the average rank.
(b) Calculate Spearman's rank correlation coefficient rₛ.
(c) Interpret your answer in context.
Step by step
- (a) Screen time has two values of 5, which would take positions 3 and 4, so each gets the average rank 3.5. Screen ranks: 3.5, 6, 2, 5, 3.5, 7, 1.
- Sleep has two values of 7, which would take positions 3 and 4, so each gets 3.5. Sleep ranks: 3.5, 2, 6, 3.5, 5, 1, 7.
- (b) There are ties, so use the GDC: screen ranks in L1, sleep ranks in L2, LinReg(ax + b). The r it shows is rₛ.
- (c) rₛ is close to −1, so students with more screen time tend to rank lower for sleep — a strong negative monotonic association between screen time and sleep.
Final answer
(a) Tied values each take the average rank (3.5). (b) rₛ = −0.973 (3 s.f.). (c) A strong negative monotonic association — more screen time tends to go with less sleep.
Exam tips
- Always show tied-rank calculation.
- Interpret sign and strength of rs in words.
- Do not claim causation.
Past-paper style responses
A full-marks Spearman answer
- Both rank lists shown, ties averaged
- rₛ from the GDC to 3 s.f., with its sign
- One sentence in context: strength, direction and both variables
- No claim that one variable causes the other
Full-credit habit: Write one final sentence in context, for example: There is a moderate positive association between revision ranking and test ranking.
IB-style question — Spearman hypothesis test
For n = 8 paired ranks, Spearman's rₛ = 0.83. The critical value at the 5% level is 0.738.
Test, at the 5% level, whether there is a monotonic relationship.
Step by step
- State the hypotheses (Spearman tests a MONOTONIC relationship, not 'linear'). H₀: there is no monotonic relationship. H₁: there is a monotonic relationship.
- Compare |rₛ| with the critical value.
- Since it exceeds the critical value, reject H₀.
Final answer
0.83 > 0.738 ⇒ reject H₀: there is evidence of a monotonic relationship. (rₛ is unchanged by any value change that keeps the ranks the same.)
Stop wasting time on topics you know
Our AI identifies your weak areas and focuses your study time where it matters. No more overstudying easy topics.
Ranks are places in a queue: Order the values from the highest. Equal values share the average of the places they fill, and the next value takes the next FREE place.
rₛ only sees the places, so a value can change without changing rₛ.
See it drawn, step by step
In My Learning, handwritten diagrams build one step at a time. Play, pause and replay each explanation until it clicks. Create your free account to try it.
Exam-style question — mock marks and revision [5 marks]
Eight students record their mark in a mock exam (out of 80) and their average daily revision time in hours.
| Student | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| Mock mark | 64 | 71 | 58 | 80 | 71 | 49 | 75 | 62 |
| Revision (h) | 3.9 | 4.6 | 3.1 | 4.8 | 4.2 | 3.4 | 4.4 | 3.0 |
(a) Rank the mock marks, rank 1 = the highest. [1]
(b) Find Spearman's rank correlation coefficient, rₛ. [2]
(c) Use the table to state the strength of the correlation, and interpret it in context. [2]
| |rₛ| | Strength |
|---|---|
| 0 to 0.29 | Weak |
| 0.30 to 0.69 | Moderate |
| 0.70 to 1 | Strong |
Step by step
- (a) B and E both have 71 and fill places 3 and 4: 3.5 each.
- (b) Revision ranks 5, 2, 7, 1, 4, 6, 3, 8. Both rank lists into the GDC, LinReg(ax + b).
- (c) 0.862 is between 0.70 and 1: strong. It is positive.
Final answer
(a) 5, 3.5, 7, 1, 3.5, 8, 2, 6 (b) rₛ = 0.862 (c) Strong positive: students who revise more tend to get higher mock marks.
Line or order?: Pearson's r measures how close the points are to a STRAIGHT line. Spearman's rₛ measures whether one variable keeps going up (or down) as the other goes up: any monotonic pattern.
Animated graph
Watch the graph build step by step in study mode.