Professional Documents
Culture Documents
PGD - Stat-3.Simple Corr & Regression
PGD - Stat-3.Simple Corr & Regression
PGD - Stat-3.Simple Corr & Regression
Cov( x, y ) S xy
r
Var ( x).Var ( y ) S xx S yy
x
2
y
y
i
2
x
2
S xx 2 i S yy i
i
n n
S xy x y
x y i i
i i
n
• “r” indicates…
– strength of relationship (strong, weak, or none)
– direction of relationship
• positive (direct) – variables move in same direction
• negative (inverse) – variables move in opposite directions
350
300
250
200
150
100
50
0
0 100 200 300 400 500 600
No. of Reservations
[ yi (0 1 xi )]
i 1
i
2 ˆ
i 1
ˆ 2
i i 0 1i
2
i 1
[ y (
i 1
ˆ ˆ x )]2
as small as possible.
S xy
ˆ1 and ˆ0 y ˆ1 x
S xx
450
400
No. of Passengers
350
300
250
200
150
100
50
0
0 100 200 300 400 500 600
No. of Reservations
= = 0.69
and
The fitted line is
R r
2 2
xy
•
R 2 greater than 0.80 usually indication of a good
fitted model