You are on page 1of 6

Coefficient of correlation “ Spearman’s Rank ”

6 ∑d2
rs = 1 – ‫ـــــــــــــــــــــــــــــــــ‬
n ( n2 – 1 )

d Difference between rank of (x) and


rank of (y)
n No. of observations.
N.B
Rank (x) and (y) ascending OR descending
The following table gives the grades of 7 students in
Economics (x) and Management (Y)

Student 1 2 3 4 5 6 7
Economics E V.G G P V.G G E
Management W V.W P V.W G P P

Calculate spearman's Rank correlation coefficient.


Sol. V.W : Very weak W: Weak P: Pass,
G : Good V.G : Very good E: Excellent
Rank Rank
X Y d d2
X Y
E w 6.5 3 3.5 12.25
V.G v.w 4.5 1.5 3 9
G P 2.5 5 -2.5 6.25
P v.w 1 1.5 -0.5 0.25
V.G G 4.5 7 -2.5 6.25
G P 2.5 5 -2.5 6.25
E P 6.5 5 1.5 2.25
Zero 42.5

6 x 42.5 255
rs = 1 – 0.24 = 0.76 – 1 = ‫ – ــــــــــــــــــ‬1 = ‫ـــــــــــــــــــــــــ‬
7(49 – 1) 336
direct , weak
Ex :
The following table gives two sets of ranks

X 1 2 4 5 10 3 6 11 12 8 7 9

Y 2 5 1 6 12 3 4 11 10 7 8 9

Compute the Rank correlation coefficient.


Sol.
Rank of Rank of d
d2
X Y ( Rank of X – Rank of Y )
1 2 -1 1
2 5 -3 9
4 1 3 9
5 6 -1 1
10 12 -2 4
3 3 0 0
6 4 2 4
11 11 0 0
12 10 2 4
8 7 1 1
7 8 -1 1
9 9 0 0
Zero 34

6∑d2 6(34) 204


rs = 1 – 0.881 = 0.119 – 1 = ‫ – ـــــــــــــ‬1 = ‫ – ــــــــــــــــــــــــــ‬1 = ‫ـــــــــــــــــــــ‬
n (n2 – 1) 12 (144 – 1) 1716
Direct, strong correlation.
Exercises
Calculate spearman’s Rank correlation coefficient
(1) Math. V.G G V.G E G P
Stat. G P V.G E V.G G
Ans.: rs = 0.642
(2) Student 1 2 3 4 5 6 7 8 9 10

Math. V.G G V.G E G P V.W G P W

Stat. G P V.G E V.G G W P P V.W

You might also like