Correlation
Correlation
Correlation
• Suppose we may be interested in finding the
relationship between volume of sales and year of
experience of sales person of a departmental store
r
( X X )(Y Y )
i i
n
2
( X i X ) (Y i Y )
2
X i
2
Y i
2
X i Y i
2 2
n n
• Assumptions of r
1. Both variables are measured on an interval or ratio scales
2. Two variables are follow bivariate normal distribution
3. The relationship between the variables is linear
4. The sample is adequate size to assume normality
-1 -.50 0 +.50 +1
Negative Correlation Positive Correlation
12
10
8
Sales
0
70 80 90 100 110 120 130 140
Experience
February 15, 2024 Correlation 11
Calculation of Correlation Coefficient
Necessary table for calculation
Sales person X Y XY X2 Y2
1 1 80 80 1 6400
2 3 97 291 9 9409
3 4 92 368 16 8464
4 4 102 408 16 10404
5 6 103 618 36 10609
6 8 111 888 64 12321
7 10 119 1190 100 14161
8 10 123 1230 100 15129
9 11 117 1287 121 13689
10 13 136 1768 139 18496
Totals 70 1080 8128 632 119082
February 15, 2024 Correlation 12
Calculation of Correlation Coefficient
X Y
X Y i i
i i
r n
X i 2
Y i
2
2 2
X i
n Yi n
70 1080
8128
10 0.96
2
2
632 70 119082 1080
10 10
• From the above calculation we can see that correlation coefficient
between sales and experience is .96 which means that there is
high degree of positive correlation between sales and experience
x y i
C
r
n 1
i
s 1 Where, 2
2
n(n 1) n
12 C
February 15, 2024 Correlation
4 16
Computing Rank Correlation
• Suppose we wish to determine whether the
marks given by two independent examiner are
correlated . The table below shows the marks
Student 1 2 3 4 5 6 7 8 9 10
1st examiner
65 70 76 75 80 78 83 84 85 90
marks
2nd examiner
30 25 35 40 38 42 48 50 55 45
marks
x y C
373 302.5
n1 302.5
i
r s
1 2
i
1
.85
C
n
2
n(n 1) 10(100 1)
12 12 4
Marks in 40 30 50 30 20 10 30 60
Statistics
15 40 2 6 -4 16
20 30 3.5 4 -0.5 0.25
28 50 5 7 -2 4
12 30 1 4 -3 9
40 20 6 2 4 16
60 10 7 1 6 36
20 30 3.5 4 -0.5 0.25
80 60 8 8 0 0
1 2 1 2
681.5 ( 2(2 1) (3(3 1)
12 12
r s
1 2
8(8 1)
6(81.5 .5 2)
1
504
0