Heptavo Get the app

Practice questions · IB Maths AI · SL · 16 marks

4.11 Spearman’s rank correlation coefficient

Five IB Maths AI questions on this topic, straight from the Heptavo app: 3 multiple choice and 2 written, climbing from the basics to exam style. Each one comes with its explanation or mark scheme.

Start

Question 1 · Rung 1 · 1 mark

Spearman's rank correlation coefficient measures

Show the answer and why

Answer: D

Spearman works on ranks, so it detects any consistently increasing or decreasing relationship, curved or not. Pearson's r is the one restricted to straight-line fit.

Question 2 · Rung 2 · 1 mark

For n = 6 and ∑d2=8\sum d^{2} = 8, find rsr_{s} to 3 significant figures.

Show the answer and why

Answer: B

1 − 48/(6 × 35) = 1 − 48/210 = 0.7714. The denominator n(n2−1)n(n^{2} - 1) is 6 × 35, and using n2−1=36n^{2} - 1 = 36 instead of 35 is the usual slip.

Question 3 · Rung 3 · 1 mark

Five students' ranks in maths and music are (1,2), (2,1), (3,4), (4,3), (5,5). Find rsr_{s}.

Show the answer and why

Answer: B

The d values are −1, 1, −1, 1, 0 so ∑d2=4\sum d^{2} = 4, giving 1 − 24/120 = 0.8. Two adjacent swaps in five items cost exactly 0.2.

Question 4 · Rung 4 · 6 marks

Six athletes are ranked by coach and by fitness test:
(1,3), (2,1), (3,2), (4,5), (5,4), (6,6).
(a) Find ∑d2\sum d^{2}.
(b) Find rsr_{s}.
(c) Comment on the level of agreement between the two rankings.

Show the mark scheme
  • (a) d = −2, 1, 1, −1, 1, 0 (M1)
  • ∑d2=4+1+1+1+1+0=8\sum d^{2} = 4 + 1 + 1 + 1 + 1 + 0 = 8 (A1)
  • (b) rs=1−48/(6×35)r_{s} = 1 - 48/(6 \times 35) (M1)
  • = 1 − 48/210 = 0.771 (A1)
  • (c) strong positive agreement (A1), the two rankings are broadly consistent with only small local disagreements (R1)

What the examiner is looking for

The largest single d is 2, which is what keeps the coefficient high — an athlete ranked 1 by the coach and 6 by the test would contribute 25 to ∑d2\sum d^{2} on its own and drag the result well down. Scanning the d column before computing is a quick sanity check on the answer's size.

Question 5 · Rung 5 · 7 marks

Seven cities are ranked by average rainfall and by number of sunny days:
(1,7), (2,6), (3,5), (4,4), (5,3), (6,2), (7,1).
(a) Find ∑d2\sum d^{2}.
(b) Find rsr_{s}.
(c) Interpret the result in context.
(d) State what a Pearson coefficient would add, if anything.

Show the mark scheme
  • (a) d = −6, −4, −2, 0, 2, 4, 6 (M1)
  • ∑d2=36+16+4+0+4+16+36=112\sum d^{2} = 36 + 16 + 4 + 0 + 4 + 16 + 36 = 112 (A1)
  • (b) rs=1−672/336=1−2=−1r_{s} = 1 - 672/336 = 1 - 2 = -1 (M1)(A1)
  • (c) the rainiest city has the fewest sunny days and so on throughout — a perfect inverse ranking (A1)(R1)
  • (d) Pearson would say whether the relationship is also linear, which rs=−1r_{s} = -1 does not establish (R1)

What the examiner is looking for

A complete reversal always gives exactly −1 whatever n is, and ∑d2\sum d^{2} reaching its maximum is the check. Part (d) is the conceptual mark: perfect rank agreement constrains the order of the data and says nothing about the spacing.

Your score

0/16

Answer the questions above and your marks add up here.

Heptavo has 54 questions on 4.11 Spearman’s rank correlation coefficient: 26 multiple choice and 28 written, each with its mark scheme. Free to start.

Practise 4.11 in Heptavo

What 4.11 asks

Spearman's rank correlation coefficient, which measures whether one variable consistently rises or falls with another; questions ask you to rank data, find rₛ and compare it with Pearson's r.

You need to be able to

  • Rank both variables the same way round, giving tied values the average of the ranks they share.
  • Calculate rₛ as Pearson's r of the ranks on a GDC; with no ties, 1 − 6Σd²/(n(n² − 1)) gives the same value.
  • Explain when rₛ suits the data better than r, such as for a curved but consistently rising pattern or data with outliers.

Key terms

  • Spearman's rank correlation coefficient
  • rank
  • tied ranks
  • monotonic relationship
  • Pearson's r

Common trap Ranking one variable from highest and the other from lowest, which reverses the sign of rₛ.

Formulas for 4.11