CH 05 Regression OLS Lecture 2
CH 05 Regression OLS Lecture 2
Chapter 5
Regression Analysis
.5
2
1
1
-1 0 1 2 3 4 5
x
x3
e3
3
E(Y)=a + bX
2
y
x1
e2
e1
1
x2
0
0 1 2 3 4 5
x
Min 2 Min (Y a bX ) 2
a Y
b X
Y bX
n n
0
n n
n X 2 X 2 XY X Y
b
n n
2003 Prentice Hall Business Publishing Managerial Economics, 4/e Keat/Young
Least Squares Method 4
Least squares method is an algebraic solution
that minimizes the sum of squares of errors
(variance component of error)
n XY X Y ( X X )(Y Y ) SP
b xy
n X 2 X (X X )
2 2
SS x
a Y b X Y bX
n n
b ( X X )(Y Y ) SP
xy
541.5
.9644
(X X ) SS 2
x 561.5
40 50 60 70
x
Fitted values y
Regression Statistics
Multiple R 0.940502
R Square 0.884543
Adjusted R Square
0.86049
Standard Error
1.06418
Observations 30
ANOVA
df SS MS F Significance F
Regression 5 208.229 41.64581 36.77399 1.72E-10
Residual 24 27.17952 1.13248
Total 29 235.4085
Coeffi cients
Standard Error t Stat P-value Lower 95%Upper 95%Lower 95.0%
Upper 95.0%
Intercept 29.16132 2.200962 13.24935 1.57E-12 24.61876 33.70388 24.61876 33.70388
Pslices -0.09257 0.011827 -7.82718 4.64E-08 -0.11698 -0.06816 -0.11698 -0.06816
Tuition 0.059756 0.034522 1.730945 0.0963 -0.01149 0.131006 -0.01149 0.131006
Psoftdrink -0.08185 0.012899 -6.3455 1.47E-06 -0.10847 -0.05523 -0.10847 -0.05523
Urban -0.74684 0.575019 -1.29881 0.206348 -1.93363 0.439938 -1.93363 0.439938
Residential -3.04912 0.492581 -6.19008 2.14E-06 -4.06576 -2.03248 -4.06576 -2.03248
ANOVA
df SS MS F Significance F
Regression 3 6829.866 2276.622 7.504796 0.018698
Residual 6 1820.134 303.3556
Total 9 8650
Coeffi cients
Standard Error t Stat P-value Lower 95%Upper 95%Lower 95.0%
Upper 95.0%
Intercept 310.2448 95.07486 3.263163 0.017181 77.60497 542.8846 77.60497 542.8846
Prom Expen0.007717 0.204064 0.037816 0.971061 -0.49161 0.507044 -0.49161 0.507044
Price -12.2025 4.58207 -2.6631 0.037369 -23.4144 -0.99057 -23.4144 -0.99057
Disp Income2.676784 3.160072 0.847064 0.429446 -5.05563 10.4092 -5.05563 10.4092