Documente Academic
Documente Profesional
Documente Cultură
CLASS XI
CORRELATION
Basic Concepts
Introduction
Example:
Rainfall and production of rice
Road accidents and number of cars
Sales and profit etc.
We find that there is always some relationship between
the two variables.
O O
X X
Positive correlation: Variables move together in
same direction
Example: Advertising and sales
r=0 No correlation
-1 0 +1
Karl Pearson’s
Coefficient of
Correlation
Scatter Diagram
O
X
Types of Scatter Diagram
1 Positive Correlation
2 Negative Correlation
5 No Correlation
Positive Correlation
O
X
Perfect Negative Correlation
O
X
No Correlation
Production of cars
Your Turn
Weight 50 65 60 50
(Kg)
Height 62 72 70 58
(inches)
Karl Pearson’s Coefficient of
Correlation
1. Direct method
r=
∑ xy
∑ x ∑y2 2
2. Indirect method
( ∑ )
dx∑ ×( dy )
∑dxdy −
N
r=
( ∑dx ) ∑ ( )
2 2
dy
∑dx 2
− ∑
N
× −
dy 2
N
Example: Calculate the correlation between the
weights and heights of 9 students by direct
method.
Weight 48 49 50 51 52 53 54 55 56
(Kg)
Height 100 105 105 104 110 115 125 130 132
(cm)
Weight (X) Height (Y)
49 105
50 105
∑X ∑Y
X= Y =
51 104
N N 52 110
53 115
468 1026
= = 54 125
9 9 55 130
56 132
= 52 = 114
∑ X = 468 ∑Y =1026
X Y
x= X −Xy = Y −Y xy x2 y2
48 100 -4 - 14 56 16 196
49 105 -3 -9 27 9 81
50 105 -2 -9 18 4 81
51 104 -1 - 10 10 1 100
Here, 52 110 0 -4 0 0 16
53 115 1 1 1 1 1
X = 52
54 125 2 11 22 4 121
55 130 3 16 48 9 256
Y = 114
56 132 4 18 72 16 324
∑ xy = 254 ∑ x 2
= 60 ∑ y 2
= 1176
∑ xy
r=
∑x ∑y
2 2
254
=
60 × 1176
= .95
Price (Rs) 14 16 17 18 19 20 21 22 23
Demand 84 78 70 75 66 67 62 58 56
(Quantity)
Price Demand dx = X − A dy = Y − A
(X) (Y)
( A = 20) ( A = 70)
14 84 -6 14
16 78 -4 8
17 70 -3 0
18 75 -2 5
19 66 -1 -4
20 67 0 -3
21 62 1 -8
22 58 2 -12
23 56 3 -14
-4 8 16 64 -32
-3 0 9 0 0
-2 -5 4 25 10
-1 -4 1 16 4
0 -3 0 9 0
1 -8 1 64 -8
N N
( −12)× −
( 14)
( −176)−
r= 9
( −12 ) ( )
2 2
− 14
80 − −
714
9 9
−176− (18.66)
r=
144 196
80 − 714−
9 9
−176− (18.66)
r=
64 692.33
−194.66
r=
8 ×26.31
−194.66
r=
210.48
r =− .92
Itisacaseof strong negativecorrelation .
Your Turn
Variable (X) 6 2 4 9 1 3 5 8
Variable (Y) 13 8 12 15 9 10 11 16
Spearman’s Rank Correlation
6 ∑D2
rk =1−
N 3 −N
1 1
6 ∑ D 2 + (m31 − m1 ) + (m3 2 − m2 ) + ....
12 12
rk =1 −
N3 − N
Judge A 10 8 5 3 6 1 2 9 7 4
Judge B 10 6 5 4 7 9 8 2 1 3
JUDGE AJUDGE BD =R1 – R2 D2
10 10 0 0
8 6 2 4
5 5 0 0
3 4 -1 1
6 7 -1 1
Here, 1 9 -8 64
2 8 -6 36
R1=Row 1
9 2 7 49
R2= Row 2 7 1 6 36
4 3 1 1
∑ =192
D 2
6 ∑D 2
rk =1−
N 3 −N
6 (192)
=1− 3
10 −10
1152
=1−
990
=1− 1 .16
=− 0.16
When ranks are not given
Judge A 25 12 40 20 8 15 10
Judge B 12 10 18 16 6 25 15
Judge A Rank Judge Rank
(R1) B (R2) D = R1- R 2 D2
25 2 12 5 -3 9
12 5 10 6 -1 1
40 1 18 2 -1 1
20 3 16 3 0 0
8 7 6 7 0 0
15 4 25 1 3 9
10 6 15 4 2 4
∑ = 24
D 2
6 ∑D
rk =1−
N −N
3
6(24)
=1− 3
7 −7
144
=1− 3
7 −7
144
=1−
336
=1− 0.43
rk =0.57
Positive correlation
Your Turn
Hindi 80 38 95 30 74 84 91 60 66 40
English 85 50 92 58 70 65 88 56 52 46
When ranks are equal or repeated
Subject Marks
Accounts 40 42 35 40 47 42 30
Statistics 38 45 42 35 30 40 35
Accounts Statistics R1 R2 D = R1- R 2 D2
37 38 3 4 -1 1
35 42 2 6 -4 16
47 30 7 1 6 36
∑ D = 60
2
1 1
6 ∑ D + (m 1 − m1 ) + ( m 2 − m2 ) + ....
2 3 3
12 12
rk =1 −
N3 − N
1 3 1 3
6 60 + ( 2 − 2) + ( 2 − 2) + ....
12 12
=1 −
73 − 7
1 1
6 60 + ( 6) + ( 6) + ....
12 12
=1 −
73 − 7
1 1
6 60 + +
2 2
=1 −
336
6 [ 61]
=1 −
336
366
=1 −
336
=1 − 1.08
r = − 0.08
Negative correlation
Now, on your FINGER TIPS…