Tutorial 5
Tutorial 5
Tutorial 5
1. OLS
Quick>Estimate Equation
Log(selling_price) c sfla beds baths stories vacant age
Sample should read 1 6660 if year=2002
Weighted Statistics
Unweighted Statistics
2
4. WLS (where t = 2
( SFLA 2t )
Weighted Statistics
Unweighted Statistics
Question 2
The R2 is the highest for OLS and OLS with White’s Robust standard errors.
We would choose OLS with White’s Robust standard errors.
Since there is heteroskedasticity, the estimators from the OLS would not be BLUE. The
estimates are unbiased. In addition, the standard errors could be too large or too small. If the
standard errors are not correct, then the conclusion may be incorrect as well.
Thus, it would be better to choose OLS with White’s Robust standard errors as the standard
errors have been ‘corrected’.
Question 3
i. Plot residuals over time; is there any evidence of autocorrelation?
Dependent Variable: RP
Method: Least Squares
Date: 09/24/20 Time: 16:36
Sample (adjusted): 6/01/1984 9/01/2003
Included observations: 77 after adjustments
.4
.2
.0
.02 -.2
.01 -.4
.00
-.01
-.02
1984 1986 1988 1990 1992 1994 1996 1998 2000 2002
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 09/24/20 Time: 16:43
Sample: 6/01/1984 9/01/2003
Included observations: 77
Presample and interior missing value lagged residuals set to zero.
Hypothesis:
H0: No autocorrelation
H1: Autocorrelation
P-value is less than 0.05. Reject H0.
There is autocorrelation present. At the 5% level of significance we can conclude that
autocorrelation exists in the model.
Value df Probability
t-statistic 0.853053 70 0.3965
F-statistic 0.727699 (1, 70) 0.3965
Likelihood ratio 0.796337 1 0.3722
F-test summary:
Mean
Sum of Sq. df Squares
Test SSR 6.74E-05 1 6.74E-05
Restricted SSR 0.006553 71 9.23E-05
Unrestricted SSR 0.006486 70 9.27E-05
LR test summary:
Value df
Restricted LogL 251.5481 71
Unrestricted LogL 251.9462 70
Included observations: 77
Hypothesis:
H0: Correct functional form and no omitted variables assume
H1: Either incorrect functional form or omitted variables or both
P-value (0.3965) is more than 0.05. Do not reject H0.
At the 5% significant we cannot conclude that there are omitted variables or the model has
incorrect functional form.
12
Series: Residuals
Sample 6/01/1984 9/01/2003
10
Observations 77
8 Mean 6.67e-18
Median -0.001196
Maximum 0.012183
6
Minimum -0.018640
Std. Dev. 0.009286
4 Skewness -0.364454
Kurtosis 1.878373
2 Jarque-Bera 5.740842
Probability 0.056675
0
-0.015 -0.010 -0.005 0.000 0.005 0.010
Hypothesis:
H 0 : Normal distribution
H 1 : Non-normal distribution
At the 5% level of significance, we can conclude that the model is normally distributed.
iii. Does this model suffer from first order (lag=1) autocorrelation? What are the
consequences of having autocorrelated residuals? Re-estimate the model
accounting for the first order autocorrelation present using non-linear least
squares. Has the problem been solved?
rp c rasx200a rdivy raps rroi rei
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 09/24/20 Time: 13:20
Sample: 6/01/1984 9/01/2003
Included observations: 77
Presample and interior missing value lagged residuals set to zero.
The consequence of having autocorrelated residuals is the estimates will not be BLUE but
they are still unbiased.
Standard error might be incorrect and any inferences (conclusion) might be misleading.
For positively correlated residuals, the R 2 might be higher than it should be (inflated relative
to the actual value).
iv. Estimate a dynamic version of the model including a lag of all the independent
variables as well as a lag of the dependent variable. Does this solve the autocorrelation?
rp c rasx200a rdivy raps rroi rei rp(-1) rasx200a(-1) rdivy(-1) raps(-1) rroi(-1) rei(-1)
Dynamic model with lags
Dependent Variable: RP
Method: Least Squares
Date: 09/24/20 Time: 13:36
Sample (adjusted): 3/01/1985 9/01/2003
Included observations: 75 after adjustments
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 09/24/20 Time: 13:37
Sample: 3/01/1985 9/01/2003
Included observations: 75
Presample missing value lagged residuals set to zero.
H0: No autocorrelation
H1: Autocorrelation
P-value (0.2223) is more than 0.05. Do not reject H0.
There is no autocorrelation (first order).