Wa0013.
Wa0013.
Submitted
BY
Sidra shahzadi
ROLL # 23011720-015
COURSE TITLE
Submitted To
1
Example 7.1
Detection & Removal of Autocorrelation
Detection of Autocorrelation
Regression Model
In this model Investment is dependent variable while income and interest rate are independent
variables.
Number of Observation= 30.
I = a + b1R + b2Y
Dependent Variable: I
Method: Least Squares
Date: 10/30/24 Time: 21:07
Sample: 1 30
Included observations: 30
Coefficient Std. Error t-
Statistic Prob.
Variable
2
Interpretation
As we now that range of Durbin Watson statistics is between 0 to 4. If Durbin Waston is equal 2,
it means that there is no autocorrelation. If Durbin Waston is less than 2, it shows positive
autocorrelation and if Durbin Waston is more than 2, it shows negative autocorrelation. Above
regression table shows that Durbin Waston statistics is 0.852153 which is less than 2 which
means that it shows positive autocorrelation.
Use Serial Correlation LM Test To check severity, that we move to removals or not for that
we apply serial correlation LM test.
Breusch-Godfrey Serial Correlation LM Test:
F-statistic 13.04955 Prob. F(1,26) 0.0013
Obs*R-squared 10.02538 Prob. Chi-Square(1) 0.0015
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 10/30/24 Time: 21:24
Sample: 1 30 Included observations: 30
Presample missing value lagged residuals set to zero.
t-
Variable Coefficient Std. Error Statistic Prob.
3
S.E. of regression 2.768671 Akaike info criterion 4.998178
Sum squared resid 199.3040 Schwarz criterion 5.185004
Log likelihood -70.97266 Hannan-Quinn criter. 5.057945
F-statistic 4.349852 Durbin-Watson stat 1.695546
Prob(F-statistic) 0.013046
Interpretation
If prob value is greater than 0.05 which means that we can accept the hypothesis which shows
the no autocorrelation while if the prob value is less than 0.05, it means that we can reject
hypothesis because autocorrelation exist. Above table shows that prob value is 0.0013 which is
less than 0.05 due to which we reject the hypothesis because autocorrelation exist and we move
to removals.
Removals
There are two removals for autocorrelation.
1. Addition of relevant variables
2. HAC Test
For removal, we use HAC Test.
Dependent Variable: I
Method: Least Squares
Date: 10/30/24 Time: 21:29
Sample: 1 30
Included observations: 30
HAC standard errors & covariance (Bartlett kernel, Newey-West fixed
bandwidth = 4.0000)
Coefficient Std. Error t-
Statistic Prob.
Variable
4
R-squared 0.816282 Mean dependent var 20.22200
If standard error and significance value are not reliable than we apply HAC Test. HAC test
resolve the standard error and significance value issues which make the model more reliable and
fit.
Example 7.2
Detection & Removal of Autocorrelation
Detection of Autocorrelation
Regression Model
In this model quantity of a good produced during various years is dependent variable while price
of the good, amount of fertilizer used in the production of this good and amount of rainfall
during each production year are independent variables.
Dependent Variable: Q
Method: Least Squares
Date: 10/30/24 Time: 21:13
Sample (adjusted): 2 31
Included observations: 30 after adjustments
5
Coefficient Std. Error
t-Statistic Prob.
Variable
Interpretation
As we now that range of Durbin Watson statistics is between 0 to 4. If Durbin Waston is equal 2,
it means that there is no autocorrelation. If Durbin Waston is less than 2, it shows positive
autocorrelation and if Durbin Waston is more than 2, it shows negative autocorrelation. Above
regression table shows that Durbin Waston statistics is 1.805563 which is less than 2 which
means that it shows positive autocorrelation.
6
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 10/30/24 Time: 21:25
Sample: 2 31 Included observations: 30
Presample missing value lagged residuals set to zero.
Coefficient Std. Error
t-Statistic Prob.
Variable
Interpretation
If prob value is greater than 0.05 which means that we can accept the hypothesis which shows
the no autocorrelation while if the prob value is less than 0.05, it means that we can reject
hypothesis because autocorrelation exist. Above table shows that prob value is 0.8489 which is
greater than
0.05 due to which we accept the hypothesis because there is no autocorrelation exist.