Further Maths Spearman’s rank correlation Practice Questions
Free Further Maths Spearman’s rank correlation practice questions with full step-by-step worked solutions. Covers spearman, rank-correlation, formula, rearrangement. Practise exam-style problems and check your method.
A set of n=8 bivariate observations is ranked, with no tied ranks, and d denotes the difference between the two ranks of an observation. Given that ∑d2=30, calculate Spearman's rank correlation coefficient rs, giving your answer correct to 3 decimal places.
Show worked solution
Worked solution
Quote the formula for Spearman's rank correlation coefficient
rs=1−n(n2−1)6∑d2
This is the standard form, valid when there are no tied ranks.
Substitute n and ∑d2
rs=1−8(82−1)6×30
Only the sample size and the total of the squared rank differences are needed.
Evaluate the fraction
5046×30=145
Keeping the fraction exact means no rounding error can creep in.
State the value of rs
rs=1−145=149=0.643
This is Spearman's rank correlation coefficient for the data.
Answer
0.643
Question 2
2 markseasy
A researcher records the finishing position of each of 12 runners in two different cross-country races. The only information available is the order in which the runners finished. Which of the following statements about the choice of correlation coefficient is correct?
Show worked solution
Worked solution
Identify what each coefficient measures
r:linear association;rs:monotonic association
The product moment coefficient measures how close the points lie to a straight line; Spearman's coefficient measures how well the order of one variable matches the order of the other.
Identify the feature of these data that decides the choice
ordinal data
This is the feature that makes the product moment coefficient unsuitable here.
Apply the criterion
⇒use rs
Because the data are ordinal: only the order is known, and no meaningful arithmetic can be done with finishing positions, so a rank method is the only one available.
State which coefficient should be used
rs(Spearman’s rank correlation coefficient)
A rank method is preferred here because the data are ordinal: only the order is known, and no meaningful arithmetic can be done with finishing positions, so a rank method is the only one available.
Answer
rs(Spearman’s rank correlation coefficient)
Question 3
4 marksintermediate
A scatter diagram of 10 observations shows the points lying very close to a smooth increasing curve which is definitely not a straight line. Which of the following statements about the choice of correlation coefficient is correct?
Show worked solution
Worked solution
Identify what each coefficient measures
r:linear association;rs:monotonic association
The product moment coefficient measures how close the points lie to a straight line; Spearman's coefficient measures how well the order of one variable matches the order of the other.
Identify the feature of these data that decides the choice
a monotonic but non-linear relationship
This is the feature that makes the product moment coefficient unsuitable here.
Apply the criterion
⇒use rs
Because the relationship is monotonic but not linear, so the product moment coefficient understates a relationship that the ranks describe perfectly.
Quote Spearman's rank correlation coefficient
rs=1−n(n2−1)6∑d2
This is the formula in the booklet: d is the difference between the two ranks of a single item and n is the number of items.
Note what d means
d=rank of x−rank of y
The sign of d never matters, because only d2 is used.
Check the ranks against a known total
∑ranks=2n(n+1)
Both sets of ranks must add up to this, even when tied ranks have been averaged.
State which coefficient should be used
rs(Spearman’s rank correlation coefficient)
A rank method is preferred here because the relationship is monotonic but not linear, so the product moment coefficient understates a relationship that the ranks describe perfectly.
Answer
rs(Spearman’s rank correlation coefficient)
Question 4
6 markshard
A scatter diagram of 9 observations shows 8 points in a loose cluster and one point a very long way from all the others. Which of the following statements about the choice of correlation coefficient is correct?
Show worked solution
Worked solution
Identify what each coefficient measures
r:linear association;rs:monotonic association
The product moment coefficient measures how close the points lie to a straight line; Spearman's coefficient measures how well the order of one variable matches the order of the other.
Identify the feature of these data that decides the choice
an outlier
This is the feature that makes the product moment coefficient unsuitable here.
Apply the criterion
⇒use rs
Because a single outlier can have an enormous effect on the product moment coefficient, but it changes the ranks by only a small amount.
Quote Spearman's rank correlation coefficient
rs=1−n(n2−1)6∑d2
This is the formula in the booklet: d is the difference between the two ranks of a single item and n is the number of items.
Note what d means
d=rank of x−rank of y
The sign of d never matters, because only d2 is used.
Check the ranks against a known total
∑ranks=2n(n+1)
Both sets of ranks must add up to this, even when tied ranks have been averaged.
Check that the differences sum to zero
∑d=0
The two sets of ranks have the same total, so the differences must cancel; this also forces ∑d2 to be even.
Note the range of the coefficient
−1≤rs≤1
A value outside this range can only be an arithmetic error.
Recall what rs actually is
rs=PMCC of the ranks
Spearman's coefficient is the product moment correlation coefficient applied to the ranks instead of to the raw data.
State which coefficient should be used
rs(Spearman’s rank correlation coefficient)
A rank method is preferred here because a single outlier can have an enormous effect on the product moment coefficient, but it changes the ranks by only a small amount.
Answer
rs(Spearman’s rank correlation coefficient)
Question 5
9 markschallenging
The table shows the mass, in kg, and the price, in pounds, of each of 8 items sold by a shop. One item is a very heavy and very expensive machine. ItemMass (kg)Price (£)A1133B1231C1330D1428E1526F1625G1822H9095 Rank 1 is given to the largest value in each row. Which of the following gives the correct values of Spearman's rank correlation coefficient rs and of the product moment correlation coefficient r of the raw data, together with the correct reason for preferring the rank coefficient here?
Show worked solution
Worked solution
Rank both variables
ItemRank of xRank of yA82B73C64D55E46F37G28H11
Rank 1 is given to the largest value of each variable.
Find Spearman's coefficient from the ranks
rs=−0.333
This depends only on the order of the data, not on the values themselves.
Find the product moment correlation coefficient of the raw data
r=SxxSyySxy=0.974
This uses the actual values, so it is sensitive to the extreme observation.
Compare the two coefficients
rs=−0.333,r=0.974
They measure different things: r measures LINEAR association and rs measures MONOTONIC association.
Quote Spearman's rank correlation coefficient
rs=1−n(n2−1)6∑d2
This is the formula in the booklet: d is the difference between the two ranks of a single item and n is the number of items.
Note what d means
d=rank of x−rank of y
The sign of d never matters, because only d2 is used.
Check the ranks against a known total
∑ranks=2n(n+1)
Both sets of ranks must add up to this, even when tied ranks have been averaged.
Check that the differences sum to zero
∑d=0
The two sets of ranks have the same total, so the differences must cancel; this also forces ∑d2 to be even.
Note the range of the coefficient
−1≤rs≤1
A value outside this range can only be an arithmetic error.
Recall what rs actually is
rs=PMCC of the ranks
Spearman's coefficient is the product moment correlation coefficient applied to the ranks instead of to the raw data.
Note when the closed formula may be used
no tied ranks⇒1−n(n2−1)6∑d2=PMCC of the ranks
The closed formula is derived on the assumption that the ranks are 1,2,…,n in some order; once ranks are averaged that is no longer true.
Recall the rule for tied values
tied values share the mean of the ranks they would occupy
Two values tied for 3rd and 4th place each receive the rank 3.5.
Recall the product moment correlation coefficient
r=SxxSyySxy
Applied to the ranks, this is exactly Spearman's coefficient.
Note what perfect agreement means
∑d2=0⟺rs=1
The two rankings are then identical, item by item.
Decide which coefficient is appropriate
use rs
A rank method is preferred here because one extreme observation would otherwise dominate the product moment coefficient, while ranking reduces it to a single ordinary rank.
Answer
use rs
Unlock 65 more Spearman’s rank correlation questions
Create a free account to work through every Further Maths Spearman’s rank correlation question with instant step-by-step worked solutions, progress tracking and interactive lessons.