Spearman's Rank Correlation Coefficient | Edexcel IAL Maths notes

Free preview: Spearman's Rank Correlation Coefficient

Correlation Using Ranks

Unit S3 (WST03): Statistics 3

Let's start with two judges at a baking contest. They don't give marks, only an order: 1st, 2nd, 3rd... How well do they agree? The PMCC needs measurements, but here we only have ranks (positions in an order).

  • Spearman's rank correlation coefficient rs is the PMCC of the ranks.
  • It measures how well the relationship is described by a monotonic function: as one goes up, the other always goes up (or always down), not necessarily in a straight line.
  • Like r, it lies between โˆ’1 and 1. rs=1 means the two orders match exactly; rs=−1 means one order is the exact reverse of the other.

rs=1−6∑d2n(n2−1)

  • d is the difference between the two ranks for each item; n is the number of items.
  • This short formula gives exactly the PMCC of the ranks when there are no ties.

Where the 6 comes from (no ties)

  1. Both sets of ranks are 1, 2, ..., n, so they have the same mean and the same Sxx=Syy=n(n2−1)12.
  2. ∑d2=∑(x−y)2=Sxx+Syy−2Sxy=2Sxx−2Sxy (the means cancel).
  3. So Sxy=Sxx−12∑d2, and r=SxySxx=1−∑d22Sxx=1−6∑d2n(n2−1).

๐Ÿ’ก In plain words

  • Small differences between ranks mean small ∑d2 and rs close to 1.
  • Check: ∑d=0 always. If not, you've ranked wrongly.

Method: Spearman's coefficient

  1. Rank each variable separately, in the same direction.
  2. d = rank of x โˆ’ rank of y for each item; check ∑d=0.
  3. Square and add for ∑d2.
  4. Substitute into the formula, and interpret.

๐Ÿ‘€ Watch me do it: five people's hours of sleep x and reaction times y (seconds): (6.5, 0.42), (8, 0.31), (7, 0.35), (5, 0.48), (9, 0.33). Find rs

What I writeWhy I do it
Rank x (1 = smallest): 2, 4, 3, 1, 5Step 1: 5 is the smallest sleep, so it gets rank 1.
Rank y (1 = smallest): 4, 1, 3, 5, 2Same direction for y: 0.31 is the smallest time.
d = rank x โˆ’ rank y: โˆ’2, 3, 0, โˆ’4, 3Step 2. Check: โˆ’2 + 3 + 0 โˆ’ 4 + 3 = 0 โœ“.
∑d2=4+9+0+16+9=38Step 3.
rs=1−6×385×24=1−228120=−0.9Step 4: n = 5, so n2−1=24.
Strong negative association: more sleep goes with quicker reactionsInterpret the sign and size in context.

โœ๏ธ YOUR TURN 1

Try this first:

Six students' maths and physics marks: (72, 65), (55, 58), (81, 77), (64, 70), (90, 85), (48, 52). Find rs.

Answer:

  • Maths ranks (1 = lowest): 4, 2, 5, 3, 6, 1. Physics ranks: 3, 2, 5, 4, 6, 1.
  • d: 1, 0, 0, โˆ’1, 0, 0. ∑d=0 โœ“, ∑d2=2.
  • rs=1−6×26×35=1−12210=0.943 (3 s.f.): strong agreement.

Two Judges, Step by Step

CakeABCDEFGH
Judge 112345678
Judge 221436857
dโˆ’11โˆ’11โˆ’1โˆ’221
dยฒ11111441

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in S3.3 Goodness of Fit, Contingency Tables and Rank Correlation

  1. Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
  2. Goodness of Fit for Continuous Uniform and Normal Models
  3. Chi-Squared Tests for Independence in Contingency Tables
  4. Spearman's Rank Correlation Coefficient
  5. Hypothesis Tests for Correlation and Association: PMCC or Spearman?

What's inside for this topic

5 teacher notes, 142 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Chi-Squared Tests for Independence in Contingency Tables Next note: Hypothesis Tests for Correlation and Association: PMCC or Spearman?

All Edexcel IAL Maths topics ยท A Level Maths