68617302-Spermans-Rank-Correlation Solved Examples
68617302-Spermans-Rank-Correlation Solved Examples
68617302-Spermans-Rank-Correlation Solved Examples
R=1-6∑D2÷N(N2-1)
A 6 5 3 10 2 4 9 7 8 1
B 3 8 4 9 1 6 10 7 5 2
Calculate rank correlation coefficient
Solution:
∑D2=36
R=1-6∑D2÷N (N2-1)
=1-6×36÷10 (102-1)
=1-6×36÷10×99
= 0.7818
X 1 2 3 4 5 6 7 8 9 10 11 12
Y 12 9 6 10 3 5 4 7 8 2 11 1
What degree of agreement is there between the two judges?
Solution:
Rank R1 (X) Rank R2 (Y) R1-R2 (D) (D2) (R1-R2)2
1 12 -11 121
2 9 -7 49
3 6 -3 9
4 10 -6 36
5 3 2 4
6 5 1 1
7 4 3 9
8 7 1 1
9 8 1 1
10 2 8 64
11 11 0 0
12 1 11 121
∑D2=416
R=1-6∑D2÷N (N2-1)
=1-6×416÷12 (122-1)
=1-6×416÷12×143
=1-1.4545
= -0.4545
∑D2=304
R=1-6∑D2÷N (N2-1)
=1-6×304÷15×224
=1-0.5428
=0.4571
1st 1 6 5 10 3 2 4 9 7 8
judge
2nd 3 5 8 4 7 10 2 1 6 9
judge
3rd 6 4 9 8 1 2 3 10 5 7
judge
Use the rank correlation coefficient to determine which pair
of judges has the nearest approach to common taste in
beauty.
=1-6×200÷10 (102-1)
=1-6×200÷10×99
=1-1.2121
= -0.2121
=1-6×60÷10×99
= 0.6363
=1-60×214÷10 (102-1)
=1-60×214÷10×99
=1-1.2969
= -0.2969
Out of R12, R13 & R23 only R13 is positive. Hence the first &
second judges are in agreement as their beauty tastes are
common.
Ex – 26
If the sum of squares of the rank differences of 9 pairs of values is 80, find the correlation
coefficient between them
Solution:
∑D2=80, N =9
Rank correlation coefficient R = 1-6∑D2÷ N (N2-1)
=1- 6*80÷9 (92-1)
= 1- 6*80 ÷ 9*80
= 1- 6÷9
= 1/3
= 0.333
Ex – 27
In a bivariate data of n pairs of observations, the sum of square of differences between
the ranks of observed values of two variables is 231 & the rank correlation coefficient is
– 0.4. Find the value of N.
Solution
∑D2 = 231, R=-0.4
R= 1- 6∑D2÷ N (N2-1)
Or
-0.4=1 – 6*231÷ N(N2-1)
or
6*231÷ N(N2-1)
= 1+0.4
=1.4
or
N(N2-1) = 6*231÷1.4
=990
=10*99
=10(100-1)
= 10(102-1)
N=10
EX – 28
Solution
R = 1- 6∑D2 ÷ N (N2 – 1)
so
Rw = 1- 6∑Dw 2 ÷ N (N2 – 1)
Or
0.2 = 1- 6∑Dw 2 ÷ 10 (102 – 1)
= 1- 6∑Dw2 ÷ 10*99
or
6∑D w2 ÷ 10*99
= 1-0.2
=0.8
= 132
= 132- 92 + 72
=132- 81+49
= 100
So
= 1-6*100 ÷ 10(102- 1)
= 1- 6*100÷10*99
= 1 – 0.606
= 0.394
Ex -29
A test in statistics was taken by 7 students. The teacher ranked his students
according to their academic achievements .The order of achievement from
high to low together with family income for each pupil, is given follows:
Rai (Rs 8700), bhatnagar (Rs 4200), Tuli (Rs 5700), Desai (Rs8200), Gupta
(Rs 20000), Choudhary (Rs 18000) & Singh (Rs 17500)
The students have been ranked from high to low in academic achievements
as there are 7 students whose academic achievements & family income are
to be correlated as Rai , Bhatnagar , _ _ _ _ _ _ _ , singh
However their ranking from high to low as per family income will be will be
Gupta, Choudhary, Singh, Rai, Desai, Tuli, and Bhatnagar
RAI 1 4 -3 9
BHATNAGAR 2 7 -5 25
TULI 3 6 -3 9
DESAI 4 5 -1 1
GUPTA 5 1 4 16
CHOUDHARY 6 2 4 16
SINGH 7 3 4 16
∑D2=92
= 1- 6*92÷7 (72-1)
= 1 – 6*92÷7*48
=1- 1.6248
= -0.6428
Ex- 30
1 97.8 73.2
2 99.2 85.8
3 98.8 78.9
4 98.3 75.8
5 98.4 77.2
6 96.7 87.2
7 97.1 83.8
Solution:
Ranking from highest to lowest for both debenture & share prices, stabulating
97.8 5 73.2 7 -2 4
99.2 1 85.8 2 -1 1
98.8 2 78.9 4 -2 4
98.3 4 75.8 6 -2 4
98.4 3 77.2 5 -2 4
96.7 7 87.2 1 6 36
97.1 6 83.8 3 3 9
∑D2=62
=1-6*62÷7 (72-1)
=1-6*62÷7*48
=1-1.1071
=0.1071
Ex – 31
No. 1 2 3 4 5 6 7 8 9 10
Marks by 52 53 42 60 45 41 37 38 25 27
judge X
Marks by 65 68 43 38 77 48 35 30 25 50
judge Y
Solution:
Ranking students by marks given by both the judges from lowest to highest &
tabulating.
52 8 65 8 0 0
53 9 68 9 0 0
42 6 43 5 1 1
60 10 38 4 6 36
45 7 77 10 -3 9
41 5 48 6 -1 1
37 3 35 3 0 0
38 4 30 2 2 4
25 1 25 1 0 0
27 2 50 7 -5 25
∑D2=76
=1-6*76÷10(102-1)
=1-6*76÷990
=1-0.4604
=0.5396
This is a special case of finding rank correlation coefficient when ranks are
not given at the same time two or more items in a series have equal ranks, in
other words, they are repeated.
The steps calculating rank correlation coefficient will be the same as the
previous case (ranks not given) however, the ranks will be assigned in the
following manner.
For a set of two repeated items in a series , if one is getting assigned rank R
then the other is supposed to get rank ( R+1) on the assumption that it has a
marginally higher value than the other one (ranking consideration is on the
basis of increasing values of items ) . In reality this is not the case hence both
the repeated items are assigned the average of two ranks as R + (R+1) ÷ 2.
The next rank for non repeated items in the series will be R+2. For repeated
n times in the series, the average rank will be r+(r+1) +………..[r+(n-1)] &
the subsequent rank for a non repeated item in the series will be (r+n)
R=1-6[∑D2+1÷12(m13-m1)+1÷12(m23-m2)+1÷12(m33-m3)+……..]
N (N2-1)
Where D is the rank difference of N paired items in the two series X&Y, m1 &
m2, are the repeated items In the two series X&Y respectively.
Ex – 32
Relationship between height and weight of a batch of 10 students is given in
the following table:
Height (inches): 48 49 50 51 52 53 54 55 56 57
Weight (lbs): 100 105 105 104 111 115 125 130 132 137
There is no repetition in the data for height, however, the weight 105 lbs is
repeated. Arranging the weight in ascending order 100, 104, 105, 105, 111,
115, 125, 130, 132, 137.
Ranks of 100 & 104 are 1 & 2. Ranks of the repeated weight 105 lbs will be
3+4 = 3.5. Tabulating the data.
48 1 100 1 0 0
51 4 104 2 2 4
52 5 111 5 0 0
53 6 115 6 0 0
54 7 125 7 0 0
55 8 130 8 0 0
56 9 132 9 0 0
57 10 137 10 0 0
∑D2=6.5
R=1-6[∑D2+1÷12 (m13-m1)+1÷12(m23-m2)+1÷12(m33-m3)+……..]
N (N2-1)
=1-6*7÷990
=0.957
Ex -33
Solution:
1st subject: 40 46 54 60 70 80 82 85 85 90 95
2nd subject: 40 42 43 45 45 50 55 65 70 72 75
1st subject Ranks (R1) 2nd subject Ranks (R2) R1-R2 (D) (D2)
(X) (Y)
54 3 50 6 -3 9
60 4 43 3 1 1
70 5 40 1 4 16
80 6 75 11 -5 25
82 7 55 7 0 0
90 10 42 2 8 64
95 11 70 9 2 4
∑D2=140
R = 1-6[∑D2+1÷12 (m13-m1)+1÷12(m23-m2)+1÷12(m33-m3)+……..]
N (N2-1)
=1-6[140+1÷12(23-2)+1÷12(23-2) ÷11(112-1)
=1-6(140+1÷2+1÷2) ÷11*120
=1-6*141÷11*120
=0.359
Ex 34
Obtain the rank correlation coefficient between the variables X & Y from the
following pairs of observed values.
X = 50 55 65 50 55 60 50 65 70 75
Y = 110 110 115 125 140 115 130 120 115 160
Solution:
50 lies in first, second and third places so their average rank = 1+2+3 = 2
55 lies in fourth & fifth places so their average rank = 4+5 = 4.5
65 lies in seventh & eighth places so their average rank = 7+8 = 7.5
Y series: 110 110 115 115 115 120 125 130 140 160
110 lies in first & second places so their average rank = 1+2 =1.5
115 lies in third , fourth & fifth places so their average rank = 3+4+5 = 4
50 2 125 7 -5 25
60 6 115 4 2 4
50 2 130 8 -6 36
70 9 115 4 5 25
75 10 160 10 0 0
∑D2=134
R= 1-6[∑D2+1÷12 (m13-m1)+1÷12(m23-m2)+1÷12(m33-m3)+……..]
N (N2-1)
=1-6[134+1÷12(33-3)+1÷12(23-2)+1÷12(23-2)+1÷12(33-3)+1÷12(23-2)]
÷10(102-1)
=1-6[134+2+1÷2+1÷2+2+1÷2] ÷10*99
=1-6*139.5÷990
=0.1545
Ex 35
Calculate the coefficient of correlation from the following data by the method
of rank differences.
Rank of X: 10 4 2 5 8 5 6 9
Rank of Y: 10 6 2 5 8 4 5 9
Solution:
N= 8 as there are only 8 pairs of observations & in the data ranks are
mentioned as 9 & 10 also. This is not possible.
Both X and Y series have repeated items 5 so m1= 2 & m2 = 2. in both the
series they are placed at third and fourth positions. Hence for both the series
their average rank will be 3+4 = 3.5
10 8 10 8 0 0
4 2 6 5 -3 9
2 1 2 1 0 0
5 3.5 5 3.5 0 0
8 6 8 6 0 0
9 7 9 7 0 0
∑D2=13.5
R = 1-6[∑D2+1÷12 (m13-m1)+1÷12(m23-m2)+1÷12(m33-m3)+……..]
N (N2-1)
=1-6[13.5+1÷12(23-2)+1÷12(23-2)] ÷8(82-1)
=1-6[13.5+0.5+0.5] ÷8*63
=1-6*14.5÷8*63
=0.8273
Ex 36
If the coefficient of rank correlation between debenture prices & share prices
of a company found to be 0.143. if the sum of the squares of the differences
in ranks is 48. Find the value of N?
Solution:
0.143=1-6*48÷ N (N2-1)
Or
6*48÷ N (N2-1)=1-0.143
=0.857
N (N2-1)=6*48÷0.857
=336=7*48=7*(49-1)=7(72-1)
Therefore, N=7
This is the easiest of all the methods of studying correlation. The basis of this
method is to study the direction of change, in other words, to find the
increase or decrease in value of the variables X and Y. Then the concurrent
deviation which is the product of the changes in variables X and Y is observed
; only the positive sign or negative sign is considered and not the actual
change in magnitude.
Steps:
1. In the X variable find the deviation or the direction of change Dx. The first
place change cannot be determined due to non- existence of predecessor to
the first place value so it is left blank. Compare the first & second place
values of the X series. If the second place value is more than the first place
value, mark +ve sign in the second place of the deviation Dx column. In case
the second place value is less than the first place value, mark –ve sign & if
both values are equal mark zero in the second place of the deviation Dx
column. In the same manner the second and third place & subsequently all
the remaining adjacent values of the X variables are to be compared and
accordingly marked in the deviation Dx column.
2. The same treatment is to be given to values of the Y variable & the +ve,
-ve sign or zero as the case may be marked in the deviation Dy coloumn.
3. Find the product of Dx & corresponding Dy marking & record them in the
DxDy coloumn.
4. Add all the +ve signs in DxDy coloumn to get ∑+ve signs = C
The +ve & -ve signs inside and outside the square root sign have
a significance. The square root of +ve numbers are real numbers which could
be either +ve or –ve but of same magnitude. Square root of –ve numbers are
not real numbers. If 2c-n is –ve sign then 2c-n will also be –ve
Ex 37
X: 60 55 50 56 30 70 40 35 80 80 75
Y: 65 40 35 75 63 80 35 20 80 60 60
Solution:
X Dx Y Dy Dx.Dy
60 65
55 - 40 - +
50 - 35 - +
56 + 75 + +
30 - 63 - +
70 + 80 + +
40 - 35 - +
35 - 20 - +
80 + 80 + +
80 0 60 - 0
75 - 60 0 0
C=∑Dx.Dy=8
Rc=±√± (2c-n),
=±√±(2*8-10)
10
=±√6÷10
=0.7747
Ex 38
Imports: 22 21 24 20 22 26 24 29 28 27
Solution:
X Dx Y Dy Dx.Dy
368 22
384 + 21 - -
385 + 24 + +
361 - 20 - +
347 - 22 + -
384 + 26 + +
395 + 24 - -
403 + 29 + +
400 - 28 - +
385 - 27 - +
C=∑Dx.Dy=6
Rc=±√± (2c-n),
=±√±(2*6-9)
=±√±1÷3
=0.5773
Ex 39
Solution:
C=∑Dx.Dy=0
Rc=±√± (2c-n),
=±√±(2*0-6÷6)
=±√±(-6÷6)
=±√±(-1)
Square root of -1 is not a real number so consider –ve sign inside & outside
the square root sign