Mathematics: Applications and Interpretation · Topic 4: Statistics and probability
SL4.10 — Spearman's rank correlation coefficient
Mathematics: Applications and Interpretation · SL / HL · syllabus-mapped notes
AISL4.10.1
Spearman's rank correlation coefficient
Ranking data and computing rs with technology, averaging tied ranks.
Full note — freeSpearman's rank correlation coefficient $r_s$ measures how well the relationship between two variables can be described by a monotonic (consistently increasing or decreasing) trend, using the ranks of the data rather than the values. Rank each variable separately (e.g. $1$ for the largest), then $r_s$ is Pearson's $r$ applied to the ranks. In examinations $r_s$ is found using technology . $-1\le r_s\le 1$; values near $\pm1$ indicate a strong monotonic relationship. If data items are equal (tied) , their ranks are averaged. e.g. if two values would occupy ranks $3$ and $4$, each is instead given the averaged rank $\dfrac{3+4}{2}=3.5$.
AISL4.10.2
Choosing between Pearson and Spearman
Linearity vs monotonicity and the effect of outliers on each coefficient.
Pearson's $r$ and Spearman's $r_s$ answer different questions, so choose based on the relationship and the data. Pearson's $r$ : tests for a linear relationship only. Best when the scatter looks like a straight line. Sensitive to outliers , which can distort the value badly. …
