Professional Documents
Culture Documents
Department of Mathematics
Lovely Professional University, Phagwara,
Punjab.
negative correlation:
Cov (X , Y )
r (X , Y ) = ,
σX σY
Cov (X , Y )
r (X , Y ) = ,
σX σY
where
n
1X
Cov (X , Y ) = Xi Yi − X Y
n
i=1
n
1 X 2
σx2 = Xi2 − X
n
i=1
n
1 X 2
σy2 = Yi2 − Y
n
i=1
(Proof it by definition)
P P P
n UV − U V
r (X , Y ) = p P P p P P ,
n U 2 − ( U)2 n V 2 − ( V )2
where U = X − Ax and V = Y − Ay
and Ax and Ay are assumed mean of X and Y data.
−1 ≤ r (X , Y ) ≤ 1
ac
r (aX + b, cY + d) = r (X , Y )
|ac|
r (X , Y ) = r (U, V )
6 d2
P
ρ=1−
n(n2 − 1)
This line is the “bestfit line” to the given data points and will
be obtained by using the “principle of least sqaures’’.
y = a + bx
Using principle of least squares
(REST PART IS DONE IN CLASS ON BOARD)