When two quantities are measured for the same people or things (marks in two tests, days and heights), correlation describes how closely they move together. Further Maths measures it with Spearman’s coefficient and pictures it with a scatter diagram.
Spearman’s rank correlation
Rank each set of values separately (1 for the highest, or 1 for the lowest, but the same way for both). For each pair, find , the difference in ranks. Then:
is always between and . Close to 1 means the two rankings agree; close to means they are reversed; close to 0 means little relationship.
| test 1 | rank | test 2 | rank | d | d² |
|---|---|---|---|---|---|
| 72 | 3 | 68 | 3 | 0 | 0 |
| 65 | 4 | 60 | 5 | −1 | 1 |
| 80 | 2 | 75 | 2 | 0 | 0 |
| 55 | 6 | 50 | 6 | 0 | 0 |
| 90 | 1 | 85 | 1 | 0 | 0 |
| 60 | 5 | 62 | 4 | 1 | 1 |
Worked example · WAEC 2019
In a research to determine the relationship between performance of students in an entrance examination and subsequent school performance, the results of ten randomly selected students were obtained as follows:
| Student | A | B | C | D | E | F | G | H | I | J |
|---|---|---|---|---|---|---|---|---|---|---|
| Entrance examination | 11 | 12 | 8 | 13 | 6 | 15 | 10 | 14 | 17 | 16 |
| School performance | 5 | 10 | 9 | 7 | 4 | 8 | 6 | 14 | 11 | 12 |
Calculate the Spearman's rank correlation coefficient (3 d.p.).
What would be the researcher's conclusion from the result in (a)?
Rank the entrance marks
- I 17 → 1, J 16 → 2, F 15 → 3, H 14 → 4, D 13 → 5.
- B 12 → 6, A 11 → 7, G 10 → 8, C 8 → 9, E 6 → 10.
Think first. Rank 1 for the highest. Who has 17?
Rank the school marks
- H 14 → 1, J 12 → 2, I 11 → 3, B 10 → 4, C 9 → 5.
- F 8 → 6, D 7 → 7, G 6 → 8, A 5 → 9, E 4 → 10.
d and d²
- A to J: .
- Squares: .
- Add them: .
Think first. Subtract the ranks for each student, then square.
The coefficient
- .
- This is a fairly strong positive correlation: students who did well in the entrance examination tended to do well in school.
Think first. n = 10, so n(n² − 1) = 990.
More: Spearman's rank correlation
- WAEC 2018 · Paper 2 · Q5| Cooking oil | A | B | C | D | E | F | G | H |
- WAEC 2018 · Paper 2 · Q6| Geography | 6 | 5 | 4 | 3 | 2 | 7 | 1 |
- WAEC 2013 · Paper 2 · Q14A bag contains 5 blue, 4 green and 3 yellow balls. All the balls are identical except for colour. Three balls are drawn at …
- WAEC 2018 · Paper 2 · Q12| Candidate | A | B | C | D | E | F | G | H | I | J |
- WAEC 2008 · Paper 2 · Q15Five (5) female and seven (7) male teachers applied for 4 vacancies in a Junior High School. The teachers are equally qualified. …
- WAEC 2009 · Paper 2 · Q15In a test, eight students obtained the following marks in Biology and Physics.
- WAEC 2013 · Paper 2 · Q13A committee of 6 is to be selected at random from a group of 7 boys and 4 girls. (i) In how many ways can this be done if …
Scatter diagrams and lines of best fit
Plot each pair as a point. If the points lie roughly along a line, draw the line of best fit. It should pass through the mean point ; a second point, such as the mean of the lower half of the data, fixes its direction.
Worked example · WAEC 2013
| Number of days () | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 |
|---|---|---|---|---|---|---|---|---|
| Height ( m) | 1.0 | 1.1 | 1.2 | 1.4 | 1.6 | 1.8 | 2.0 | 2.3 |
The table gives the relationship between the height, in metres, of a plant and the number of days it is left to grow.
Using a scale of 2 cm to 0.5 units on the -axis and 2 cm to 10 units on the -axis, draw the scatter diagram for the information.
Find , the mean of , and , the mean of , and plot on the diagram.
Draw the line of best fit to pass through and .
From the graph, find the: (i) equation of the line of best fit; (ii) height of the plant in 75 days.
The mean point
- .
- .
Think first. Add the x values and the y values, and divide each by 8.
The line
- Gradient .
- So , which is about .
Think first. The line passes through (10, 1) and (45, 1.55). What is its gradient?
Height at 75 days
- m.
More: scatter diagrams
- WAEC 2011 · Paper 2 · Q14The number of cars that called at a petrol station on some days of a month is as shown in the table.
- WAEC 2022 · Paper 2 · Q13| | 14 | 16 | 17 | 18 | 22 | 24 | 27 | 28 | 31 | 33 |
- WAEC 2008 · Paper 2 · Q13The table shows the examination marks of 8 students in Algebra and Statistics tests.
- WAEC 2009 · Paper 2 · Q15The table shows the corresponding values of two variables and .
Your turn
WAEC 2022 · Paper 2 · Q6
| Vocal () | 63 | 69 | 72 | 59 | 82 | 91 | 95 | 68 |
|---|---|---|---|---|---|---|---|---|
| Instrumental () | 58 | 61 | 67 | 51 | 53 | 79 | 92 | 57 |
The table shows the scores obtained by a group of artistes in Vocal () and Instrumental () musical competition.
- (a)
Calculate the Spearman's rank correlation coefficient between the scores (3 d.p.).
Worked solution (try it first)
- Rank the Vocal scores (1 for the highest): .
- Rank the Instrumental scores: .
- : , so .
- .