GCSE Statistics · Topic guide

Spearman's Rank Correlation

Spearman's rank correlation coefficient measures the strength and direction of a relationship between two ranked variables, giving a value between -1 (perfect negative) and +1 (perfect positive). In GCSE Statistics it is calculated using rs = 1 - (6 x sum of d^2) / (n(n^2 - 1)), where d is the difference between each pair of ranks and n is the number of pairs.

Higher tierCorrelation and Time SeriesEdexcelAQA

Before you start

Make sure you're comfortable with these topics first:

Method

  1. Rank each set of data separately, giving equal (averaged) ranks to any tied values.
  2. Find the difference, d, between the two ranks for each pair of data.
  3. Square each difference to get d^2, then find the sum of all the d^2 values.
  4. Substitute the sum of d^2 and the number of pairs, n, into the formula rs = 1 - (6 x sum of d^2) / (n(n^2 - 1)).
  5. Calculate rs, giving the answer as a decimal, usually to 2 or 3 decimal places, between -1 and 1.
  6. Interpret the value: close to +1 means strong positive correlation between the rankings, close to -1 means strong negative correlation, and close to 0 means little or no correlation.

Worked example

Five students' scores in a maths test and a science test are ranked below. Maths rank: 1, 2, 3, 4, 5. Science rank: 2, 1, 3, 5, 4. Calculate Spearman's rank correlation coefficient.

  1. Find d for each pair: 1-2=-1, 2-1=1, 3-3=0, 4-5=-1, 5-4=1.
  2. Square each difference: 1, 1, 0, 1, 1.
  3. Sum the squared differences: sum d^2 = 1+1+0+1+1 = 4.
  4. Substitute into the formula with n = 5: rs = 1 - (6 x 4) / (5(25-1)) = 1 - 24/120.
  5. Simplify: rs = 1 - 0.2 = 0.8.
  6. Final answer: rs = 0.8, showing a strong positive correlation between the two sets of ranks.

Practice questions

Type your answer and press Check to be marked straight away, or reveal the answer and mark yourself.

Q1Two judges rank 4 dogs in a competition. Judge A's ranks: 1, 2, 3, 4. Judge B's ranks: 1, 2, 3, 4. Find the sum of d^2.Show answer

Answer: 0 (every difference is 0).

Got it right?
Q2Using the data in the previous question, find Spearman's rank correlation coefficient.Show answer

Answer: rs = 1 (perfect agreement, since sum of d^2 = 0).

Got it right?
Q3Two rankings of 5 items give differences d: 1, -1, 2, -2, 0. Find the sum of d^2.Show answer

Answer: 10 (1+1+4+4+0).

Got it right?
Q4Using n = 5 and sum of d^2 = 10, calculate Spearman's rank correlation coefficient.Show answer

Answer: rs = 0.5 (1 - (6x10)/(5x24) = 1 - 60/120).

Got it right?
Q5A calculation gives Spearman's rank correlation coefficient of -0.9. Describe what this shows about the relationship between the two rankings.Show answer

Answer: A strong negative correlation: as one ranking increases, the other tends to decrease.

Got it right?
Q6Six pairs of ranks give sum of d^2 = 14. Calculate Spearman's rank correlation coefficient, giving your answer to 2 decimal places.Show answer

Answer: 0.60 (1 - (6x14)/(6x35) = 1 - 84/210 = 1 - 0.4).

Got it right?

Exam-style questions

Written in the style of a GCSE Statistics exam paper, with a full mark scheme.

Q1[3 marks]

Two examiners rank 5 essays. Their rankings differ by d = 0, 1, -1, 2, -2 for the five essays. Calculate Spearman's rank correlation coefficient.

Show mark scheme

Tick each line you got. Your score builds from the marks on the scheme.

Nothing ticked yet - 3 available

Got it right?
Q2[4 marks]

The table shows the ranks given by two panels to 6 films. Panel 1 ranks: 1, 2, 3, 4, 5, 6. Panel 2 ranks: 2, 1, 4, 3, 6, 5. (a) Find the value of sum of d^2. (b) Calculate Spearman's rank correlation coefficient, giving your answer to 2 decimal places.

Show mark scheme

Tick each line you got. Your score builds from the marks on the scheme.

Nothing ticked yet - 4 available

Got it right?
Q3[5 marks]

Eight athletes are ranked by two different coaches based on performance. The sum of the squared rank differences is sum d^2 = 20. (a) Calculate Spearman's rank correlation coefficient, giving your answer to 2 decimal places. (b) Interpret your value in the context of the two coaches' rankings.

Show mark scheme

Tick each line you got. Your score builds from the marks on the scheme.

Nothing ticked yet - 5 available

Got it right?

See real GCSE Statistics past-paper questions, with official mark schemes

Free printable worksheet

Want more practice on paper? Download the spearman's rank correlation worksheet pack - 19 pages of exam-style questions with a full mark scheme. One email opens every download in this browser for 14 days - no account, no card. Print it for personal and classroom use.

This topic is chapter 14 of GCSE Statistics Higher Workbook 2, the whole course as one free printable PDF.

Next topics

Ready to practise spearman's rank correlation? Add it to a printable topic pack for this student in the Pack Builder.

Add to my pack

Not quite what you needed?

Tell us what is missing on spearman's rank correlation, or which topic to write up next. Every request is read, and we reply to every one.

Build a full practice pack.

This topic is one of hundreds in the library - pick the ones a student needs and generate a printable PDF in minutes.