Five students revise for x = 2, 4, 5, 7, 9 hours and score y = 40, 48, 55, 71, 66 marks. Find Spearman's rank correlation coefficient.
- Rank x from smallest to largest: 1, 2, 3, 4, 5.
- Rank y in the same way: 40 → 1, 48 → 2, 55 → 3, 71 → 5, 66 → 4, giving 1, 2, 3, 5, 4.
- Enter the two lists of ranks in the calculator and find r: rs = 0.9.
- Check: the rank differences are 0, 0, 0, −1, 1, so Σd2 = 2 and rs = 1 − (6 × 2)/(5 × (52 − 1)) = 1 − 12/120 = 0.9.
Answer: rs = 0.9, a strong positive rank correlation.