Topic 4.10 · AI SL and HL

One point moves. Only one of the two numbers cares.

Spearman's rank correlation, when it beats Pearson, and what each of them is actually measuring.

Six points on a perfect straight line, so both coefficients start at 1. Drag the last point away and watch what happens to each.

x = 6.0
1.000Pearson r
1.000Spearman rs
0.000how far Pearson fell

Spearman only looks at the order. Moving a point further out does not change which one is biggest.

What each one measures

Pearson rSpearman rs
Usesthe actual valuesonly the ranks
Detectslinear association onlyany monotonic trend
Outliersvery sensitivebarely affected
r = 1 meansexactly on a straight linethe order matches perfectly

Monotonic means "always going the same way". It does not have to be straight. A curve that rises the whole time has Spearman exactly 1 and a Pearson well below it, which is the second demonstration above.

How Spearman is calculated

Rank each variable separately, then work out Pearson's coefficient on the ranks. That is all it is.

x123456
rank of x123456
y149162536
rank of y123456

The ranks match exactly, so rs = 1, even though the points are nowhere near a straight line and Pearson gives 0.979.

Equal values share the average rank. Two values tied for 1st and 2nd both get rank 1.5, and the next one is rank 3. Skipping to rank 2 and 3 is the common slip, and it changes the answer.

Which to use

Your turn

1. Six points lie exactly on y = x² for x = 1 to 6. What is rs?

2. Three data values are 7, 7 and 9. What rank does each 7 get?

3. A scatter rises steadily except for one point far off to the right. Which coefficient should you quote?

Where the marks go

Both coefficients come from technology. The marks are in choosing the right one and justifying it, which is a sentence about the shape of the scatter or about an outlier.

Ranking correctly, including averaging ties.

Never delete an awkward point to make Pearson look better. Use Spearman and say why, which is the whole reason this sub-topic exists.

Want a verdict on your own draft?

These pages are free and stay free, but they are general and your IA is not. Send me your research question, or whatever exists so far, and I will tell you in writing whether the topic has a ceiling on it, where the marks are going, and what to change first. That costs nothing and it comes back within 24 hours.

Written by a serving IB Diploma and Career-related Programme Coordinator and Head of Mathematics, who reads internal assessments across every subject group every year. If you then want the whole draft reviewed properly against all five criteria, that is the paid one, and it is refunded if it does not name at least three specific things to fix.

Get a free verdict Full written review, $99

I never write any part of it. Not a sentence, not a calculation, not your data. Under 18: a parent buys this and the thread is with them. I do not work with students at my own school.