Professional Documents
Culture Documents
SLMNA2-11 EcoB 07 Correlation Goutam
SLMNA2-11 EcoB 07 Correlation Goutam
SLMNA2-11 EcoB 07 Correlation Goutam
CLASS XI
CORRELATION
Understanding Concepts
Introduction
Example
To compare:
people's income with their education
prices and demand of goods
weight of person with height etc.
These sorts of studies involve comparison between
two variables to see the connection.
Supply
Y
P
Price
Demand
O
Q X
Quantity
Helps in framing policies
Example: If there is positive correlation between
investment policy and development, then government
would increase investment.
Economists establish relationship between the
variables like demand and supply, price level etc.
-1 0 +1
Karl Pearson’s
Coefficient of
Correlation
Scatter Diagram
1 Positive Correlation
2 Negative Correlation
5 No Correlation
Positive
Correlation
Variables change in the same direction.
or
Education
Relationship between two variables that
vary together in the same direction
Example: O Salary
Price
decreases and vice-versa.
Example:
O
Quantity demanded
Decrease in price will lead to an increase
in quantity demanded.
Perfect Positive
Correlation
Tickets Sold
Example:
Amount of money collected by movie
tickets with the number of sale of tickets.
O
Money collected
Perfect Negative
Correlation
Time
Example:
Speed of a car and the time it takes
O
to reach destination. As the speed Speed
increases, the total time taken
decreases.
No
Correlation
Marks in exam
between the two variables
Example:
High score in exam and weather
conditions. Temperature
Benefits
(i) Variable X 1 2 3 4
Variable Y 4 3 2 1
Variable X 2 4 6 12
(ii)
Variable Y 3 7 2 5
Let us see a better method to measure
the degree of correlation.
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
× −2
dy
N
Direct method
r=
∑ xy
∑ x ∑y
2 2
r = Coefficient of correlation
x=X −X
y =Y −Y
It can be written as:
r=
∑ xy
N σ xσ y
r = Coeficient of correlation
x= X-X
y=Y-Y
σ X = Standard Deviation of x series
σ y = Standard Deviation of y series
N = Number of observations
Example: Calculate the correlation between
production of bread and demand for flour.
Bread 9 11 13 12 10 9 6
Flour 4 8 13 11 9 6 5
Step 1 Calculate arithmetic mean
11 8
13 13
∑ X 70
12 11 X= = = 10
N 7
10 9
9 6
∑ Y 56
6 5 Y = = =8
N 7
∑ X = 70 ∑Y =56
Step 2 Take deviations of both the series with their
corresponding mean and sum up these deviations.
Bread (X) Wheat (Y) x= X ( −X 1X0) (
y = Y = −Y Y8 ) =
9 4 -1 -4
11 8 0
1
13 13
3 5
12 11
2 3
10 9
0 1
9 6
-1 -2
6 5
-4 -3
∑ X = 70 ∑Y =56 ∑x=0 ∑y = 0
Step 3 Square these deviations to get ∑ and
x 2
∑ y2
11 8 1 0 1 0
13 13 3 5
9 25
12 11 2 3
4 9
10 9 0 1
0 1
9 6 -1 -2
1 4
6 5 -4 -3
16 9
∑x 2
= 32 ∑ = 64
y 2
Step 4 Multiply both these deviations to get ∑xy
Bread Wheat
2
(X) (Y) x= X −yX = Y −Y x y2 xy
9 4 -1 -4 1 16 4
11 8 1 0 1 0 0
13 13 3 5 9 25
15
12 11 2 3 4 9
6
10 9 0 1 0 1
0
9 6 -1 -2 1 4
2
6 5 -4 -3 16 9
12
∑ x y= 39
Step 5 Put values in the
formula
∑ xy
r=
∑ x2 ∑ y 2
39
=
32 × 64
= 0.86
0.86 means positive and high degree of correlation
Indirect method
( ∑ )
dx∑ ×( dy )
∑dxdy −
N
r=
( ∑dx ) ∑ ( )
2 2
dy
∑dx 2
− ∑
N
× −2
dy
N
N=
Number of observations
Example: Calculate the correlation between death
rate and birth rate from the following hypothetical
data:
Birth rate 24 26 32 33 35 30
Death rate 15 20 22 24 27 24
Step 1 Take any arbitrary value in the X series and Y
series as assumed mean (A).
24 15
26 20
32 22
33 24
(A) (A)
35 27
30 24
Take the deviations of both series from assumed
Step 2
∑
mean and add to get dx and dy ∑
X Y dx = X − A dy = Y − A
24 15 -9 -9
26 20 -6 -4
32 22 -2
-1
33 24
(A) (A) 0 0
35 27
2 3
30 24
-3 0
∑ d x = −17 ∑ dy = −12
Square the deviations and sum up to get
Step 3
∑ dx and ∑ dy
2 2
X Y dx = X − A dy = Y − A dx2 dy 2
24 15 -9 -9 81 81
26 20 -6 -4 36 16
32 22 -1 -2
1 4
33 24 0 0
0 0
35 27 2 3
4 9
30 24 -3 0
9 0
X Y dx = X − A dy = Y − A dx2 dy 2 dx. dy
24 15 -9 -9 81 81 81
26 20 -6 -4 36 16 24
32 22 -1 -2 1 4
2
33 24 0 0 0 0
0
35 27 2 3 4 9
6
30 24 -3 0 9 0
0
( ∑ )
dx∑ ×( dy )
∑dxdy −
N
r=
( ∑dx ) ∑ ( )
2 2
dy
∑dx 2
− ∑
N
× −2
dy
N
( −17
×
)−( 12
)
113 −
r= 6
( −17) 2 − ( 12 ) 2
131 − 1−
10
6 6
204
113 −
= 6
289 144
131 − 110−
6 6
113 −34
=
.
131 −48 16 − 24
110
79
=
82 .84 86
79
=
9.10 ×9.27
79
=
84 .35
= 0.93
∑ dx′. dy ′ − ∑ dx ′ ∑ dy ′
r= N
( ∑ dx ′ ) ( ∑ dy ′)
2 2
∑ dx′ 2
−
N
∑ dy ′2
−
N
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 B 7 5 4 1 9 3 2 6 8
Step 1 Find rank differences of corresponding variables
JUDGE A JUDGE B D = R1 – R2
8 7 1
7 5
2
R1 = Row 1 6 4
2
R2 = Row 2 3 1
2
D = Rank difference of 9 9
0
corresponding
2 3
variables -1
1 2
-1
5 6
-1
4 8
-4
Step 2 Square differences (D) and add to get ∑D 2
JUDGE A JUDGE B D = R1 – R2 D2
8 7 1 1
7 5 2 4
6 4 2 4
3 1 2 4
9 9 0
0
2 3 -1
1
1 2 -1
1
5 6 -1
1
4 8 -4
16
∑D 2
= 32
Step 3 Put values in the
formula
6 ∑D2
rk =1−
N 3 −N
6 (32)
=1− 3
9 −9
192 192
=1− = −1
729 −9 720
rk = 0.74
When ranks are not
given
6 ∑D2
rk =1−
N −N
3
Example: Marks of 5 students in English and Economics
out of 30 are as follows:
Subject Marks
Judge A 16 10 20 30 14
Judge B 25 15 10 12 16
Step 1 Assign ranks to each series by taking either
acsending or decsending order.
10 1 15 3
20 4 10 1
30 5 12 2
14 2 16 4
Step 2 Find rank differences of corresponding variables
English R1 Economics R2 D= R1 - R2
16 3 25 5 -2
10 1 15 3 -2
20 4 10 1
3
30 5 12 2
3
14 2 16 4
-2
Step 3 Square the differences (D) and add to get ∑D 2
English R1 Economics R2 D D2
16 3 25 5 -2 4
10 1 15 3 -2
4
20 4 10 1 3
9
30 5 12 2 3
9
14 2 16 4 -2
4
∑D 2
= 30
Step 4 Put values in the formula
6 ∑D 2
rk =1−
N3 −N
6 (30)
rk =1− 3
5 −5
180
=1−
120
=1− 1 5
.
rk =− 0.5
It impliesanegativecorrelation
Your Turn
Rank
Mr. Sam 10 18 14 5 7 12 6 3 10 4
Mr. Ajit 12 20 14 10 20 17 3 20 18 5
Step 1 There are two 10s. Take the mean of their ranks.
The mean of 4+5/2 = 4.5. Assign rank 4.5 to
both10s. Same with 3rd column.
1 3 1 3
116.5 + 12 ( 2 − 2) + 12 (3 − 3)
rk =1 −
103 −10
1 1
116. 5 + ( 6 ) + ( 24 )
12 12
=1 −
1000 − 10
1
6 116.5 + + 2
2
=1 −
990
6 [ 119]
=1 −
990
714
=1 −
990
=1 − 0.72
= .28