Practical 1 - Heteroskedasticity & Autocorrelation
Practical 1 - Heteroskedasticity & Autocorrelation
1 PART I: Heteroskedasticity
For the first part of this practical we will use the house prices dataset. It contains 88
observations on the following variables:
Now consider the same model in logarithms, except for the number of bedrooms:
log (pricei ) = γ1 + γ2 log (lotsizei ) + γ3 log (sqrtf i ) + γ4 bdrmsi + εi (2)
1 Statistics→Linear models and related→Linear regression
2 Statistics→Linear models and related→Linear regression: SE/Robust
3 Statistics→Postestimation→Reports and statistics: Information matrix test
4 Statistics→Postestimation→Reports and statistics: Tests for heteroskedasticity
1
4. Run the model in logarithms. Report the estimated elasticity of price with respect to
size of the house. Use both White’s and Breusch-Pagan’s tests for heteroskedasticity.
What do the two tests suggest with respect to heteroskedasticity? Why do the two
tests lead to different conclusions?
5. Use a non-nested test to decide whether you should use the model in levels (model (1))
or in logarithms (model (2)). What is the value of the test statistic and what model
would you use?
Phillip’s (1958) model suggests that there is a negative effect of unemployment on infla-
tion:
inf t = β1 + β2 unemt + εt (3)
with β2 < 0.
1. Use the command tsset year to tell Stata that you are using a time-series dataset,
where the time-indexing variable is year.
2. Estimate model (3) by OLS. Do you reject the hypothesis of the Phillips curve? Test
the hypothesis of absence of autocorrelation using a Durbin-Watson test5 . Test for
absence of autocorrelation of order 3, 2, and 1, using Breusch-Godfrey6 tests.
3. Use the newey command to get heteroskedasticity and autocorrelation robust standard
errors7 . Truncate the lags needed for the variance matrix estimation to 5 (use the
option lag(5)). Report the results.
4. Use the prais command8 to estimate the model using the Prais-Winston FGLS esti-
mator. Use the corc option to get the Cochrane-Orcutt estimator. For both estimators
report the results. Did running FGLS correct for autocorrelation? Support your answer
with a formal test.
5. Most likely there is a misspecification issue in the model. The inflation rate does not
depend only on the rate of unemployment, but also on the stage of the business cycle.
To account for the effect of business cycles, run OLS on the extended model9 :
and report the results. Did including lagged inflation rate as an independent variable
correct for autocorrelation? Support your answer with a formal test (state the null, the
value of the test statistic, and the conclusion).
variable.