WAEC 2018 · Paper 2 · Q5

Cooking oil A B C D E F G H
XX 8 5 1 7 2 6 3 4
YY 6 3 4 8 5 7 1 2

Two panels of judges, XX and YY, rank 8 brands of cooking oil as shown.

  1. (a)

    Calculate the Spearman's rank correlation coefficient (4 d.p.).

Worked solution (try it first)
  1. The judges' values are already ranks.
  2. d=X−Yd = X - Y: 2,2,−3,−1,−3,−1,2,22, 2, -3, -1, -3, -1, 2, 2.
  3. ∑d2=4+4+9+1+9+1+4+4\sum d^2 = 4 + 4 + 9 + 1 + 9 + 1 + 4 + 4
    =36= 36.
  4. ρ=1−6×368×63\rho = 1 - \dfrac{6 \times 36}{8 \times 63}
    =1−216504= 1 - \dfrac{216}{504}
    =47= \dfrac47
    ≈0.5714\approx 0.5714.

Report a problem with this question