What we are solvingEight students have letter grades in Mathematics and in Physics
Find the rank correlation coefficient between the two performances
Chapter: Correlation
Topic: Spearman's rank correlation coefficient
Concept and formulasThe grades are UACE letter grades, best to worst: A, B, C, D, E, O, F
Rank 1 = best grade; equal grades share the average of the ranks they occupy
ρ=1−n(n2−1)6∑d2d = difference between the two ranks of a student,
n=8WorkingMathematics: A (Ali) rank 1; three B's share ranks 2, 3, 4 so each gets 3; C 5; D 6; E 7; O 8
Physics: two A's share ranks 1, 2 so each gets 1.5; B 3; C 4; D 5; E 6; O 7; F 8
| Student | Maths grade | RM | Physics grade | RP | d | d2 |
| Ben | E | 7 | D | 5 | 2 | 4 |
| Ali | A | 1 | B | 3 | −2 | 4 |
| Ann | C | 5 | A | 1.5 | 3.5 | 12.25 |
| Musa | B | 3 | A | 1.5 | 1.5 | 2.25 |
| John | O | 8 | E | 6 | 2 | 4 |
| Joy | B | 3 | O | 7 | −4 | 16 |
| Sarah | B | 3 | C | 4 | −1 | 1 |
| Betty | D | 6 | F | 8 | −2 | 4 |
| | | | | Total | 47.5 |
ρ=1−8(82−1)6(47.5)=1−504285ρ=1−0.5655=0.4345Conclusionρ≈0.43 is positive but weak
Students who do well in Mathematics tend, only slightly, to do well in Physics
Answer: ρ≈0.435 (weak positive correlation)
Tip: Check that the ranks in each column add up to
28×9=36