Homework Assignment #3 (General linear test and standardized regression) Use the log of the housing price
Homework Assignment #3
-
(General linear test and standardized regression) Use the log of the housing price as the dependent variable: log(price) =
B
0
+
B
1
sqrft +
B
2
bdrms + u
-
You are interested in estimating and obtaining a confidence interval for the percentage change in
price
when a 150-square-foot bedroom is added to a house. In decimal form, this is
1 = 150 B 1 + B 2 . Use the data in HPRICE1.RAW to estimate
1 .
-
Write
B
2
in terms of
1 and B 1 and plug this into the log(price) equation.
-
Use part ii. To obtain a standard error for
1 hat and use this standard error to construct a 95% confidence interval.
-
Suppose I am interested in the following model:
price= \({{\beta }_{0}}\) + \({{\beta }_{1}}\) sqrt + \({{\beta }_{2}}\) bdrms + u .
Between sqrt and bdrms , which variable has bigger partial effect on housing price and why?
-
You are interested in estimating and obtaining a confidence interval for the percentage change in
price
when a 150-square-foot bedroom is added to a house. In decimal form, this is
- (Goodness of fit) The following three equations were estimated using the 1,534 observations in 401K.RAW:
prate hat = 80.29 + 5.44 mrate + .269 age - .00013 totemp
(.78) (.52) (.045) (.00004)
R 2 = .100, R 2 bar = .098
prate hat = 97.32 + 5.02 mrate + .314 age – 2.66 log (totemp)
(1.95) (.51) (.044) (.28)
R 2 = .144, R 2 bar = .142
prate hat = 80.62 + 5.34 mrate + .290 age - .00043totemp + .0000000039 totemp 2
(.78) (.52) (.045) (.00009) (.0000000010)
R 2 = .108, R 2 bar = .106
Which of these three models do you prefer. Why?
3. (Interaction term) NOTE: Use WAGE1 dataset for this exercise. Consider a model where the return to education depends upon the amount of work experience (and vice versa):
log( wage ) = B 0 + B 1 educ + B 2 exper + B 3 educ * exper + u
- Show that the return to another year of education (in decimal form), holding exper fixed, is B 1 + B 3 exper.
- State the null hypothesis that the return to education does not depend on the level of exper. What do you think is the appropriate alternative?
- Use the data in WAGE1.RAW to test the null hypothesis in ii. against your stated alternative.
-
Let
1 denote the return to education (in decimal form), when exper = 10:
1 = B 1 + 10B 3 . Obtain
1 hat and a 95% confidence interval for
1 . (HINT: Write B 1 =
1 – 10B 3 and plug this into the equation; then rearrange. This gives the regression for obtaining the confidence interval for
1 .)
-
(Prediction analysis) Use the data in HPRICE1.RAW for this exercise.
- Estimate the model: price = B 0 + B 1 lotsize + B 2 sqrft + B 3 bdrms + u and report the results in the usual form, including the standard error of the regression. Obtain predicted price, when we plug in lotsize = 10,000, sqrft = 2,300, and bdrms = 4; round this price to the nearest dollar.
- Run a regression that allows you to put a 95% confidence interval around the predicted value in part i. Note that your prediction will differ somewhat due to rounding error.
- Let price 0 be the unknown future selling price of the house with the characteristics used in parts i. and ii. Find a 95% Confidence Interval for price 0 and comment on the width of this confidence interval.
Deliverable: Word Document
