Assignment 2
Assignment 2
Home assignment 2
Chapter 4:
C1:
(i) Holding other things fixed,
expendA 1
voteA= 1 100
=
expendA
100
expendA 100
1
by
expendA
changes by 1 percent,
voteA
will change
1
100 percent.
(iii)
, which causes
voteA
expendA
results in a z% decrease in
remain unchanged.
The coefficient of
(0.38215)
(0.3788203)
(0.0620181)
2
n=173, R = 0.7926
l expendA is very significant (t statistic 15.92), thus As
e xpend B
, the coefficient of
-17.46), hence, Bs
Write
1= 1 + 2 , then 1= 1 2
Population model:
voteA = 0 +1 l expendA + 2 ( l expendBl expend A )+ 3 1519574 prtystrA
Stating the hypothesis:
1+ 2=0
H0:
1+ 2 0
H1:
Regression model:
^
voteA =45.078930.532101l expendA6.615417 ( l expendBl expendA )+ 0.1519574 prtystrA
(.5330858)
(.3788203)
(.0620181)
t statistic=-1, P( |t|>1 =0.320> =0.05 , then do not reject H0 at 5% level.
Stata command:
+ reg voteA lexpendA lexpendB prtystraA
C3:
The population model:
1=150 1+ 2
(i)
Thus,
(ii)
(0.0970445)
(0.0000432) (0.0296433)
2
n= 88, R = 0.5883
^
^
^
1=150 1 + 2 = 150 0.0003794+ 0.0003794 =0.085794
=
1150 1
(0.0000432)
^1=0.0858013
and
se (^1)=0.0267675 .
(0.0928652) (0.0275)
. Using the methods in Section 6.4, find the predicted value of price at the same
values of the explanatory variables.
We create:
0= 0 + 1 v 1+ 2 v 2 + 3 v 3
then,
v
log ( 1)2 log ( v 2 ) 3 log ( v 3)
0=0 1
v
v
^
log ( 1) 2 log ( v 2) ^
3 log ( v 3 )
log ( 1)+ ^2 log ( v 2 ) + ^
3 log ( v 3)then, ^
0=^0 ^
1
^
^
^
0= 0 + 1
Plug (1) into the equation:
(1)
log ( 1 )
+ 3 (bdrmsv 3 )+ u
llotsize+ 2
lprice= 0+ 1
20000
llotsizelog ( )
+0.0369(bdrms4)
^
lprice=5.99+0.168
^)
^
price=^0 exp ( lprice
, where
regression we get
pricei on m
^i
is the slope on
^0=1.097
^0
e5.99=437.703 US dollars.
(2)
C10:
(i)
The estimate model:
^
lbwght=7.958+0.0189 npvis0.00043npvissq
(0.0273)
(0.00368)
2
R =
(0.00012)
0.0201
Yes, the quadratic term is significant because its t-statistic is 3.57 in absolute
value.
(ii)
^
y=lbwght=7.958+0.0189 npvis0.00043 npvissq
We take the first derivative of y with respect to npvis: y=
0.01890.00043 npvis
0.0189
Then let y=0, the turning point will be npvis*= 2 0.00043 =21,97 22
(iii)
(iv)
(0 .00012)(0.00925)
2
n 1764 ; R =0.0234
Holding npvis fixed, the birth weight of the child is maximized at the turning
point, which equals to
(v)
(vi)
mage =
0.025392
=30.96 31 years old .
0.000412
The number of women, who are older than the optimal age is 605. It means
that 34.2% of the given sample.
No, we cannot say mothers age and number of prenatal visits explain a lot
of the variation in log(bwght). Because it only can explain 2% of the variation
in log(bwght).
2
If we regress bwght on npvis, npvisq, mage, and magesq, then R =.0192 .
Instead, we compute an R-squared for the bwght model that can be
compared with .0192. From Section 6.4, we compute the squared correlation
^
^
between bwght and exp ( lbwght) , where lbwght denotes the fitted values
from the log(bwght) model. The correlation is 0.1362, so its square is about
0.0185.
Therefore, for explaining bwght, the model with bwght actually fits better.
STATA COMMAND:
+ reg lbwght npvis npvissq
+ count if npvis>21
+ reg lbwght npvis npvissq mage magesq
+ count if mage>31
+ gen fittedlbwght= 7.5837+ .0180374*npvis
-.0004079*npvissq+.025392*mage -.0004119*magesq
+ gen expfittedlbwght=exp(fittedlbwght)
+ reg bwght expfittedlbwght
+ correlate bwght expfittedlbwght