Modelo Multiple
Modelo Multiple
Modelo Multiple
10
minimize:
12
so
13
he estimates
Obs
Mean
colGPA
hsGPA
ACT
141
141
141
3.056738
3.402128
24.15603
Std. Dev.
Min
Max
.3723103
.3199259
2.844252
2.2
2.4
16
4
4
33
17
Regression results
. regress colGPA hsGPA ACT
Source
SS
df
MS
Model
Residual
3.42365506
15.9824444
2
138
1.71182753
.115814814
Total
19.4060994
140
.138614996
colGPA
Coef.
hsGPA
ACT
_cons
.4534559
.009426
1.286328
Std. Err.
.0958129
.0107772
.3408221
t
4.73
0.87
3.77
Number of obs
F( 2,
138)
Prob > F
R-squared
Adj R-squared
Root MSE
P>|t|
0.000
0.383
0.000
=
=
=
=
=
=
141
14.78
0.0000
0.1764
0.1645
.34032
.6429071
.0307358
1.960237
18
SS
df
MS
Model
Residual
.829558811
18.5765406
1
139
.829558811
.133644177
Total
19.4060994
140
.138614996
colGPA
Coef.
ACT
_cons
.027064
2.402979
Std. Err.
.0108628
.2642027
t
2.49
9.10
Number of obs
F( 1,
139)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
141
6.21
0.0139
0.0427
0.0359
.36557
P>|t|
0.014
0.000
.0055862
1.880604
.0485417
2.925355
a) Simple regression
a) Multiple regression
. ge logwage=ln(wage)
Source
SS
df
MS
Model
Residual
27.5606288
120.769123
1 27.5606288
524 .230475425
Total
148.329751
525
Number of obs
F( 1, 524)
Prob > F
R-squared
Adj R-squared
Root MSE
.28253286
=
=
=
=
=
=
526
119.58
0.0000
0.1858
0.1843
.48008
SS
Coef.
educ
_cons
.0827444
.5837727
Std. Err.
.0075667
.0973358
t
10.94
6.00
P>|t|
0.000
0.000
.0678796
.3925563
.0976091
.7749891
MS
Model
Residual
46.8741776
3 15.6247259
101.455574 522 .194359337
Total
logwage
logwage
df
educ
exper
tenure
_cons
Data: WAGE1.DTA.
.0073299
.0017233
.0030936
.1041904
t
12.56
2.39
7.13
2.73
Number of obs
F( 3, 522)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
526
80.39
0.0000
0.3160
0.3121
.44086
P>|t|
0.000
0.017
0.000
0.007
.0776292
.0007357
.0159897
.0796756
.1064288
.0075065
.0281448
.4890435
21
Correlation matrix
. corr educ exper tenure
(obs=526)
educ
exper
tenure
educ
exper
tenure
1.0000
-0.2995
-0.0562
1.0000
0.4993
1.0000
24
Properties:
25
27
Goodness-of-fit:
Same as for simple regression model
SST = Total Sum of Squares
SSE = Explained Sum of Squares
SSR = Residual Sum of Squares
28
29
a) Multiple regression
. ge logwage=ln(wage)
Source
SS
df
MS
Model
Residual
27.5606288
120.769123
1 27.5606288
524 .230475425
Total
148.329751
525
Number of obs
F( 1, 524)
Prob > F
R-squared
Adj R-squared
Root MSE
.28253286
=
=
=
=
=
=
526
119.58
0.0000
0.1858
0.1843
.48008
SS
Coef.
educ
_cons
.0827444
.5837727
Std. Err.
.0075667
.0973358
t
10.94
6.00
P>|t|
0.000
0.000
.0678796
.3925563
.0976091
.7749891
MS
Model
Residual
46.8741776
3 15.6247259
101.455574 522 .194359337
Total
logwage
logwage
df
educ
exper
tenure
_cons
Data: WAGE1.DTA.
.0073299
.0017233
.0030936
.1041904
t
12.56
2.39
7.13
2.73
Number of obs
F( 3, 522)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
526
80.39
0.0000
0.3160
0.3121
.44086
P>|t|
0.000
0.017
0.000
0.007
.0776292
.0007357
.0159897
.0796756
.1064288
.0075065
.0281448
.4890435
30
31
Assumptions
Assumption MLR.1: Linear in parameters:
y = 0 + 1x1 + 2x2 ++ u.
Assumption MLR.2: Random sampling:
{xi1, xi2,,xik,y): i=1,2,,n}
following the population model in Assumption MLR.1
Assumption MLR.3: No perfect collinearity: In the
sample, none of the independent variables is
constant and there are no exact linear relationships
among the independent variables.
Assumption MLR.4: Zero conditional mean - the
error u has an expected value of zero given any
values of the independent variables:
E(u|x , x ,,x )=0
32
34
35
36
Theorem 3.1:
Under MLR.1-4, OLS is unbiased
38
Example:
40
3.45
Because the bias in this case arises from omitting one of the
explanatory variables, this is often referred to as omitted
variable bias.
There are two cases where there is no bias what are they?
Discuss: a) the sign of the bias; b) the size of the bias.
41
42
44
SS
df
MS
Model
Residual
3.42365506
15.9824444
2
138
1.71182753
.115814814
Total
19.4060994
140
.138614996
colGPA
Coef.
hsGPA
ACT
_cons
.4534559
.009426
1.286328
Std. Err.
.0958129
.0107772
.3408221
t
4.73
0.87
3.77
Number of obs
F( 2,
138)
Prob > F
R-squared
Adj R-squared
Root MSE
P>|t|
0.000
0.383
0.000
=
=
=
=
=
=
141
14.78
0.0000
0.1764
0.1645
.34032
.6429071
.0307358
1.960237
49
51