IB Maths AI HL Correlation & Regression Paper 1 & 2 ~6 min read

Comparison of Correlation Coefficients

You now have two correlation tools: Pearson’s r for linear relationships and Spearman’s rs for monotonic ones. This page is about choosing wisely and knowing each tool’s limits — exactly the kind of “comment” and “explain” marks examiners love. Three ideas do all the work: Pearson’s only sees straight lines while Spearman’s sees any always-increasing/decreasing trend; the two are linked but not equivalent (r = ±1 forces rs = ±1, but not the other way round); and outliers distort r but barely touch rs, because Spearman’s only uses ranks.

📘 What you need to know

Which coefficient should you use?

The choice comes down to what kind of relationship you’re testing for: a straight line, or just a consistent direction.

Pearson’s r
linear
Tests how well a STRAIGHT LINE fits. Use it when you want a linear model. Blind to curves.
Spearman’s rₛ
monotonic
Tests for an always-up or always-down trend, even if curved. Use it for non-linear monotonic data or when outliers are present.
FeaturePearson’s rSpearman’s rs
Tests forlinear relationshipmonotonic relationship
Usesactual valuesranks only
Detects curves?NoYes (if monotonic)
Affected by outliers?Yes ✗Not usually ✓
Tells you the model?suggests linearno — just “monotonic”

🧠 Memory aid — “Pearson is picky, Spearman is chill”

Pearson’s is picky: it only rewards a near-perfect straight line and gets thrown off by a single outlier. Spearman’s is relaxed: it just checks whether the order matches, so it forgives curves and shrugs off outliers. If a question mentions a curve, exponential growth, or an extreme value, that’s your cue to reach for Spearman’s.

How the two are connected

Perfect linear correlation is a special case of perfect monotonic correlation — so it forces Spearman’s to ±1 as well. But monotonic does not mean linear, so the connection only runs one way.

One-way implication r = 1 ⇒ rs = 1    and    r = −1 ⇒ rs = −1 the converse is FALSE: rₛ = ±1 does NOT force r = ±1 ✗
why exponential data splits the two coefficients
x y straight line of best fit always increasing → rₛ = 1 points bend off the line → r < 1
Exponential data is always increasing, so the ranks agree perfectly and rs = 1. But the points curve away from any straight line, so Pearson’s r < 1.

Outliers: the key difference

This is the most-asked comparison point. Because Pearson’s uses the raw numbers and Spearman’s uses only ranks, a single outlier can wreck r while leaving rs almost unchanged.

🤔 Why don’t outliers affect Spearman’s?

An outlier is extreme in value — say a point at 500 when everything else is under 50. Pearson’s r feels the full force of that 500, so it gets dragged. But when you rank the data, that 500 just becomes “the highest” — rank n — exactly as it would be if it were 51. The huge gap in value collapses to a single step in rank, so rs barely moves. That’s why Spearman’s is the safer choice when a data set contains outliers.

Reading the gap: if rs is much higher than r, the relationship is probably monotonic but non-linear (curved), or r has been pulled down by an outlier.

Worked examples

WE 1

Choose the right coefficient

A researcher believes the relationship between two variables follows an exponential (non-linear) curve, but is always increasing. Which correlation coefficient should she use, and why?

linear or monotonic? curve = non-linear, but always increasing = monotonic Pearson’s r only detects straight-line relationships, so it would understate this. use Spearman’s rₛ Spearman’s measures monotonic correlation, including curves.
WE 2

Interpret the connection

A data set gives rs = 1 but r = 0.91. What does this tell you about the relationship?

rₛ = 1 the rankings agree perfectly → the relationship is perfectly monotonic (always increasing). r = 0.91 (not 1) the points don’t lie exactly on a straight line. monotonic but non-linear (e.g. a curve) perfect monotonic with imperfect linear ⇒ the data follows a curve, not a line.
WE 3

Is the converse true?

A student claims: “If r = 1 then rs = 1, so it must also be true that if rs = 1 then r = 1.” Is the student correct?

forward direction r = 1 ⇒ rₛ = 1 ✓ (perfect line is also perfectly monotonic) converse rₛ = 1 does NOT ⇒ r = 1 counterexample: exponential data has rₛ = 1 but r < 1. no — the converse is false monotonic doesn’t mean linear, so the implication only runs one way.
WE 4

Effect of an outlier

A data set has a strong increasing trend plus one extreme outlier. After including the outlier, r drops to 0.55 but rs stays at 0.94. Explain why.

Pearson’s uses actual values the outlier’s extreme value pulls r down to 0.55. Spearman’s uses ranks the outlier is just “the highest rank” — its extreme size doesn’t matter, so rₛ stays high at 0.94. outlier distorts r but not rₛ ranks compress the outlier to a single step, protecting Spearman’s.
WE 5

Compare two coefficients in context

For the maths/English test data, r = 0.794 and rs = 0.976. Comment on both values.

Pearson’s r = 0.794 suggests strong positive LINEAR correlation. Spearman’s rₛ = 0.976 suggests strong positive correlation that is not necessarily linear — the rankings agree almost perfectly. strong positive; likely monotonic & curved rₛ noticeably higher than r ⇒ the trend is monotonic but probably bends rather than being a straight line.

💡 Top tips

⚠ Common mistakes

Next up — Linear Regression. Once Pearson’s r (and a critical value) confirms a linear model is appropriate, you’ll find the actual line: the least-squares regression line of y on x, written y = ax + b. You’ll interpret the gradient, make predictions, and learn why interpolation is reliable but extrapolation isn’t.

Need help with Correlation & Regression?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →