Simple Linear Regression
Simple Linear Regression
REGRESSION
1
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
Example:
xi = height of person i
yi = weight of person i
2
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
yi = 0 + 1xi + i,
yi N (0 + 1xi, 2).
3
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
y = 0 + 1x
with high 2
y = 0 + 1x
with low 2
4
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
5
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
xi yi
Production Electric Usage
($ million) (million kWh)
Jan 4.5 2.5
Feb 3.6 2.3
Mar 4.3 2.5
Apr 5.1 2.8
May 5.6 3.0
Jun 5.0 3.1
Jul 5.3 3.2
Aug 5.8 3.5
Sep 4.7 3.0
Oct 5.6 3.3
Nov 4.9 2.7
Dec 4.2 2.5
6
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
3.4
yi 3.0
2.6
2.2
xi
7
Goldsman ISyE 6739 12.2 Fitting the Regression Line
8
Goldsman ISyE 6739 12.2 Fitting the Regression Line
P P
yi = n0 + 1 xi
P P
xiyi = 2 xi(yi (0 + 1xi)) = 0
9
Goldsman ISyE 6739 12.2 Fitting the Regression Line
10
Goldsman ISyE 6739 12.2 Fitting the Regression Line
y = 0 + 1x.
11
Goldsman ISyE 6739 12.1 Simple Linear Regression Model
12
y
y = 0 + 1x
y|x
x
x xi
Goldsman ISyE 6739 12.2 Fitting the Regression Line
= yi2 0 yi 1 xiyi.
P P P
13
Goldsman ISyE 6739 12.2 Fitting the Regression Line
14
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
Sxy
(xi x)2 and
P
1 = Sxx , where Sxx =
P P P
Sxy = (xi x)(yi y) = (xi x)yi y (xi x)
P
= (xi x)yi
15
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
1 is an unbiased estimator of 1.
16
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
1 1 X 2
Var(1) = 2 Var(Sxy ) = 2 (xi x)2Var(yi) = .
Sxx Sxx Sxx
2
Thus, 1 N(1, Sxx )
17
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
0 = y 1x
18
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
Proof:
Cov(y, 1) = 1 Cov(y, P(x x)y )
Sxx i i
P
(xix
= Sxx )Cov(y, yi)
P
(xix) 2
= Sxx n = 0
1 1
q N(0, 1)
2/Sxx
Turns out:
SSE 22(n2)
(1) 2
= n2 n2 ;
(2) 2 is independent of 1.
20
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
1
1
/ Sxx N(0, 1)
s t(n 2)
/ 2(n2)
n2
1 1
t(n 2).
/ Sxx
21
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
t(n 2)
t/2,n2 t/2,n2
22
Goldsman ISyE 6739 12.3 Inferences on Slope Parameter 1
1 = Pr(t/2,n2 1 1
t/2,n2)
/ Sxx
= Pr(1 t/2,n2 1 1 + t/2,n2 )
Sxx Sxx
1 (, 1 + t,n2 )
Sxx
1 (1 t,n2 , )
Sxx
23