Professional Documents
Culture Documents
Rank Correction-Spear, Kendal-Day and Evening
Rank Correction-Spear, Kendal-Day and Evening
5
Spearman Rank Correlation Coefficient
(rs)
of two variables
Spearman’s
Take in account only the ranks
are distribution-free
8
Example 1
Calculations:
S D S-Rank D-Rank d=X-Y d²
100 257 2.5 1 1.5 2.25
102 264 5 4 1 1
103 274 6 6 0 0
101 266 4 5 -1 1
105 277 7.5 8 -0.5 0.25
100 263 2.5 3 -0.5 0.25
99 258 1 2 -1 1
105 275 7.5 7 0.5 0.25
6 (di) 2
rs 1 2
•
n(n 1)
6 Σdi² 6 (6) 36
rs = 1 - ----------- = 1 – ------------- = 1 - -------- = 0.929
n(n² - 1) 8(64 - 1) 8(63)
11
Example 2
12
Example
Table below: Ranks of Wine Consumption and Heart Disease Deaths
13
Solution
∑d2=2,081.5
r = 1- (6)(2,081.5) = -0.826
(19)(360)
There is negative strong rank
correlation between wine consumption
and heart disease deaths
Example
In a study of the relationship between level
education and income the following data was
obtained. Find the relationship between them and
comment.
∑ di2=64
6 64
rs 1 0.1
7(48)
Comment:
There is an indirect weak correlation
between level of education and income.
Assignment 1
The following table shows how 10 students, arranged in
alphabetical order, were ranked according to their
achievements in both Course work and final examination
of QM.
Find the coefficient of rank correlation
COURSE WORK 8 3 9 2 7 10 4 6 1 5
EXAMINATION 9 5 10 1 8 7 3 4 2 6
Assignment 2
Height X of Father
(inches) 65 63 67 64 68 62 70 66 68 67 69 71
Height Y of Son
(inches) 68 66 68 65 69 66 68 65 71 67 68 70
Solution for Assignment 2
Arranged in ascending order of magnitude, the fathers’ heights are
62, 63,64,65,66,67,67,68,68,69,70,71
Since the 6th and 7th places in this array represent the same height (67 inches), we assign a
mean rank 6.5 to these places. Similarly, the 8th and 9th places are assigned the rank 8.5. It
follows that the fathers’ heights are assigned the ranks
1,2,3,4,5,6.5,6.5,8.5,8.5,10,11,12.
Sons’ heights arranged in ascending order of magnitude are
65,65,66,66,67,68,68,68,69,70,71
Since the 6th ,7th ,8th and 9th places represent the same height (68 inches), we assign the mean
rank 7.5 [(6+7+8+9)]/4 to these places. Thus the sons’ heights are assigned the ranks
1.5,1.5,3.5,3.5,5,7.5,7.5,7.5,7.5,10,11,12.
Using the correspondences above the ranking becomes
Solution to Assignment 2
D -3.5 -1.5 -1 1.5 -1.5 -2.5 3.5 3.5 -3.5 1.5 2.5 1
2 2
D 12.25 2.25 1 2.25 2.25 6.25 12.25 12.25 12.3 2.25 6.25 1 ∑D = 72.50
Solutions
Assignment 1: Rrank = 1 - 6∑D2
N(N2-1)
1 - 6(24) = 0.8545
10(102-1)
Assignment 2
Rrank = 1 – 6(72.50) = 0.7465
12(122-1)