Professional Documents
Culture Documents
ρ r r Cov (X,Y) V (x) .V (Y) X X) (Y Y) X X n Y Y: xy xy
ρ r r Cov (X,Y) V (x) .V (Y) X X) (Y Y) X X n Y Y: xy xy
Basic concept:
It measures the strength and the direction of linear relationship between two
variables.
If X and Y are two random variables. Then the coefficient of correlation between X
and Y is denoted by ρ xyor r xywhich is defined by
C ov ( X , Y )
r XY =
√V ( x ) . V (Y )
n
1
∑ (X − X́)(Y i−Ý )
n i=0 i
¿
n n
√ 1
∑
n i =0
(
21
X i− X́ ) ∑ ( Y i −Ý )
n i=0
2
∑ (X i − X́ )(Y i−Ý )
i=0
¿ n n
√ ∑ ( X i− X́ )
i=0
2
∑ ( Y i−Ý )
i=0
2
Positive correlation: If the variables are variance in the same direction i.e. if the
increase or decrease of one variable result in a corresponding increase or
decrease in the other variable is called positive correlation.
Non-sense correlation: When two variables X and Y are linearly independent then
the value of correlation coefficient is zero. But r=0 does not means that the two
variables X and Y are not related. This type of correlation is known as non-sense
correlation.
Measure of correlation:
strong
Intermediate Weak Weak Intermediate strong
1- 1
-0.75 -0.25
0 0.25 0.75
1
indirect Direct Perfect
Perfect No relation correlation
correlation
Example question: Discuss the situation when r=-1, r=+1, r=-0.93 and r=0.65.
r= -0.93 indicates that there exists a strong negative relationship between X and
Y.
n
1 2
And V(Y) = σ ❑2Y = ∑ ( Y i−Ý )
n i=1
n
2
⇒ nσ ❑2Y =∑ ( Y i−Ý )
i =1
¿)
X i− X́ 2 Y i−Ý 2
n n n 2 2
X − X́ Y i−Ý
⇒∑
i=0
( σX ) +¿¿ ∑
i=0
( )
σY (
+¿ ¿2∑ i
i=0 σX )( ) σY
≥0
n n n
1 2 1 2 1 1
⇒ 2 ∑ ( X i− X́ ) + 2 ∑ ( Y i−Ý ) ± 2. . ∑ ( X i− X́ )(Y i−Ý )≥0
σ X i=1 σ Y i=1 σ X σ Y i=0
1 1 1 1
⇒ nσ ❑2X + 2 nσ ❑2Y ±2. . nr σ X σ Y ≥ 0
2
σX σY σ X σY
⇒ 2 n ±2 rn ≥ 0
⇒ 2 n ( 1± n ) ≥ 0
∴ 1± r ≥0
⇒ r ≥−1
∴−1 ≤ r -------(iii)
⇒r ≥1
∴ r ≤ 1 -------(iv)
(Proved)
C ov ( X , Y )
r XY =
√V ( x ) . V (Y )
n
∑ (X i − X́ )(Y i−Ý )
i=0
¿ −−−−−−(i)
n n
√∑ (
i=0
X i− X́ )
2
∑ ( Y i−Ý )
i=0
2
Let us suppose,
X i−A Y i−B
U i= ∧V i=
h k
That means we have shifted the origin of X to A and Y to B. Also we have changed
the scale of X by h and Y by k.
Now,
X i−A
U i=
h
⇒ X i= A+U i h
n n n
⇒ ∑ X i=¿ ∑ A ¿+h ∑ U
i=0 i=0 i=0
n n n
1 1 1
⇒ ∑ X i=¿ ∑ A ¿ +h ∑ U
n i=0 n i=0 n i=0
∴ X́= A+ h Ú
And
Y i−B
V i=
k
⇒ Y i =B+Y i k
n n n
⇒ ∑ Y i =¿ ∑ B ¿ +k ∑ V i
i=0 i=0 i=0
n n n
1 1 1
⇒ ∑ X i=¿ ∑ B ¿+k ∑ V i
n i=0 n i=0 n i=0
∴ Ý =B+k V́
√ 1
∑
n i =0
(
21
A +U i h− A−h Ú ) ∑ ( B+ Y i k −B−k V́ )
n i=0
2
n
1
hk ∑ (U i−Ú )(V i−V́ )
n i=0
¿
n n
√ h2
1
∑
n i=0
(
2 1
U i−Ú ) . k 2 ∑ ( V i −V́ )
n i=0
2
n
1
hk ∑ (U −Ú )(V i−V́ )
n i=0 i
¿
n n
hk
√ 1
∑
n i=0
(
2 1
U i−Ú ) . ∑ ( V i−V́ )
n i=0
2
¿ r UV
∴ r XY =r UV
∑ ( X i− X́ )(Y i−Ý )
b Y∨ X = i=0 n
−−−(i)
2
∑ ( X i− X́ )
i=0
∑ ( X i− X́ )(Y i−Ý )
b X ∨Y = i=0 n
−−−(ii)
2
∑ ( Y i−Ý )
i=0
∑ (X i − X́ )(Y i−Ý )
i=0
r XY = n n
√ 2
∑ ( X i− X́ ) ∑ ( Y i−Ý )
i=0 i=0
2
⇒ b Y ∨X × b X ∨Y = n
{∑ (
i=0
X i− X́ )( Y i−Ý )
n
}
2 2
∑ ( X i− X́ ) ∑ ( Y i−Ý )
i=0 i=0
∑ ( X i− X́ )(Y i −Ý )
i=0
⇒ √ bY ∨ X × b X ∨Y = n n
√∑ (i=0
X i− X́ )
2
∑ ( Y i−Ý )
i=0
2
⇒ √ bY ∨ X × b X ∨Y =r XY
∴ r XY = √ b Y ∨X × b X ∨Y
(Showed)
⇒ a { X−E ( X ) }+ b { Y −E ( Y ) }=0
−b
∴ { X−E ( X ) }= { Y −E ( Y ) } −−−−−(iii)
a
−b
¿ E[ { Y −E ( Y ) }{ Y −E ( Y ) }]
a
b
¿− E[ {Y −E ( Y )2 }]
a
b
¿− σ 2X
a
b2 2
⇒ V ( X )= σY
a2
b2 2
∴ ⇒ V ( X )= σY
a2
−b 2
σ
a Y
¿
b 2
||
σ
a Y
−b
a
¿
b
a||
When a and b are opposite sign then,
−(+ b)
(−a)
r=
+b
| |
−a
b
a
r=
b
a
∴ r=+1
∴ r=−1
So the correlation coefficient between X and Y is -1 if signs of a and b are alike and
+1 if they are different.
(Proved)
Let,
Now,
V ( U )=V ( X +Y ) =V ( X ) +V (Y )+ 2Cov ( X , Y )
¿ σ 2X +σ 2Y
And
V ( V )=V ( X −Y )=V ( X ) +V ( Y )−2 Cov ( X , Y )
¿ σ 2X +σ 2Y
Again,
¿ E[ ( X +Y − X́ + Ý )( X −Y − X́ + Ý ) ]
¿E¿
¿E¿
2 2
¿ E ( X − X́ ) −E ( Y −Ý ) −2 E ¿
σ 2X −σ 2Y
r UV = 2 2 2 2
√(σ X + σ Y )( σ X + σ Y )
σ 2X −σ 2Y
¿ 2
√( σ 2
X + σ 2Y )
σ 2X −σ 2Y
∴ r= 2 2
σ X +σ Y
(Showed)
V ( X 1 ) =V ( X 2 )=V ( X 3 )=σ 2
Let,
U =X 1 + X 2 ∴ Ú= X́ 1+ X́ 2 [Taking sum and dividing by n]
V = X2+ X3 ∴ Ú= X́ 2+ X́ 3 [Taking sum and dividing by n]
¿ E[ ( X 1+ X 2− X́ 1− X́ 2 )( X 2+ X 3− X́ 2− X́ 3 ) ]
¿ E¿
¿ E¿
¿ σ2
Again,
V ( U )=E (U−Ú )
¿ E( X 1+ X 2− X́ 1− X́ 2 )