SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Applied Econometrics
Applied Econometrics
Second edition
Dimitrios Asteriou and
Stephen G. Hall
Applied Econometrics
Applied Econometrics: A Modern Approach using Eviews and Microfit © Dr D Asteriou
2
AUTOCORRELATION
1. What is Autocorrelation
2. What Causes Autocorrelation
3. First and Higher Orders
4. Consequences of Autocorrelation
5. Detecting Autocorrelation
6. Resolving Autocorrelation
Applied Econometrics
Learning Objectives
1. Understand the meaning of autocorrelation in the CLRM.
2. Find out what causes autocorrelation.
3. Distinguish among first and higher orders of autocorrelation.
4. Understand the consequences of autocorrelation on OLS estimates.
5. Detect autocorrelation through graph inspection.
6. Detect autocorrelation through formal econometric tests.
7. Distinguish among the wide range of available tests for detecting
autocorrelation.
8. Perform autocorrelation tests using econometric software.
9. Resolve autocorrelation using econometric software.
Applied Econometrics
What is Autocorrelation
Assumption 6 of the CLRM states that the
covariances and correlations between
different disturbances are all zero:
cov(ut, us)=0 for all t≠s
This assumption states that the disturbances ut
and us are independently distributed, which
is called serial independence.
What is Autocorrelation
Applied Econometrics
What is Autocorrelation
If this assumption is no longer valid, then the
disturbances are not pairwise independent, but
pairwise autocorrelated (or Serially Correlated).
This means that an error occurring at period t may be
carried over to the next period t+1.
Autocorrelation is most likely to occur in time series
data.
In cross-sectional we can change the arrangement of
the data without altering the results.
Applied Econometrics
One factor that can cause autocorrelation is omitted
variables.
Suppose Yt is related to X2t and X3t, but we wrongfully
do not include X3t in our model.
The effect of X3t will be captured by the disturbances
ut.
If X3t like many economic series exhibit a trend over
time, then X3t depends on X3t-1, X3t -2 and so on.
Similarly then ut depends on ut-1, ut-2 and so on.
What Causes Autocorrelation
Applied Econometrics
Another possible reason is misspecification.
Suppose Yt is related to X2t with a quadratic
relationship:
Yt=β1+β2X2
2t+ut
but we wrongfully assume and estimate a
straight line:
Yt=β1+β2X2t+ut
Then the error term obtained from the straight
line will depend on X2
2t.
What Causes Autocorrelation
Applied Econometrics
What Causes Autocorrelation
A third reason is systematic errors in measure-
ment.
Suppose a company updates its inventory at a given
period in time.
If a systematic error occurred then the cumulative
inventory stock will exhibit accumulated
measurement errors.
These errors will show up as an autocorrelated
procedure
Applied Econometrics
First-Order Autocorrelation
The simplest and most commonly observed is the first-order
autocorrelation.
Consider the multiple regression model:
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut
in which the current observation of the error term
ut is a function of the previous (lagged)
observation of the error term:
ut=ρut-1+et
Applied Econometrics
First-Order Autocorrelation
The coefficient ρ is called the first-order
autocorrelation coefficient and takes values fom
-1 to +1.
It is obvious that the size of ρ will determine the
strength of serial correlation.
We can have three different cases.
Applied Econometrics
First-Order Autocorrelation
(a) If ρ is zero, then we have no autocorrelation.
(b) If ρ approaches unity, the value of the previous
observation of the error becomes more important in
determining the value of the current error and therefore
high degree of autocorrelation exists. In this case we
have positive autocorrelation.
(c) If ρ approaches -1, we have high degree of negative
autocorrelation.
Applied Econometrics
First-Order Autocorrelation
Applied Econometrics
First-Order Autocorrelation
Applied Econometrics
Higher-Order Autocorrelation
Second-order when:
ut=ρ1ut-1+ ρ2ut-2+et
Third-order when
ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +et
p-th order when:
ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
Applied Econometrics
Consequences of Autocorrelation
1. The OLS estimators are still unbiased and consistent. This
is because both unbiasedness and consistency do not
depend on assumption 6 which is in this case violated.
2. The OLS estimators will be inefficient and therefore no
longer BLUE.
3. The estimated variances of the regression coefficients will
be biased and inconsistent, and therefore hypothesis testing
is no longer valid. In most of the cases, the R2 will be
overestimated and the t-statistics will tend to be higher.
Applied Econometrics
Detecting Autocorrelation
There are two ways in general.
The first is the informal way which is done through graphs
and therefore we call it the graphical method.
The second is through formal tests for autocorrelation, like
the following ones:
1. The Durbin Watson Test
2. The Breusch-Godfrey Test
3. The Durbin’s h Test (for the presence of lagged
dependent variables)
4. The Engle’s ARCH Test
Applied Econometrics
Detecting Autocorrelation
We have the following series (quarterly data from 1985q1 to
1994q2):
lcons = the consumer’s expenditure on food
ldisp = disposable income
lprice = the relative price index of food
Typing in Eviews the following command
ls lcons c ldisp lprice
we get the regression results.
Applied Econometrics
Detecting Autocorrelation
Then we can store the residuals of this regression in a
vector by typing the command:
genr res01=resid
And a plot of the residuals can be obtained by:
plot res01
While a scatter of the residuals against their lagged
terms can be obtained by:
scat res01(-1) res01
Applied Econometrics
Detecting Autocorrelation
-.08
-.04
.00
.04
.08
.12
85 86 87 88 89 90 91 92 93
RES01
Applied Econometrics
Detecting Autocorrelation
-.08
-.04
.00
.04
.08
.12
-.08 -.04 .00 .04 .08 .12
RES01(-1)
RES01
Applied Econometrics
The Durbin Watson Test
The following assumptions should be satisfied:
1. The regression model includes a constant
2. Autocorrelation is assumed to be of first-
order only
3. The equation does not include a lagged
dependent variable as an explanatory variable
Applied Econometrics
The Durbin Watson Test
Step 1: Estimate the model by OLS and obtain
the residuals
Step 2: Calculate the DW statistic
Step 3: Construct the table with the calculated
DW statistic and the dU, dL, 4-dU and 4-dL
critical values.
Step 4: Conclude
Applied Econometrics
The Durbin Watson Test
0 dL dU 2 4-dU 4-dL 4
+ve autoc -ve autoc
Zone of
indecision
Zone of
indecision
No
autocorrelation
Applied Econometrics
The Durbin Watson Test
Drawbacks of the DW test
1. It may give inconclusive results
2. It is not applicable when a lagged dependent variable is
used
3. It can’t take into account higher order of
autocorrelation
Applied Econometrics
The Breusch-Godfrey Test
It is a Lagrange Multiplier Test that resolves
the drawbacks of the DW test.
Consider the model:
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut
where:
ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
Applied Econometrics
The Breusch-Godfrey Test
Combining those two we get:
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+
+ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
The null and the alternative hypotheses are:
H0: ρ1= ρ2=…= ρp=0 no autocorrelation
Ha: at least one of the ρ’s is not zero, thus,
autocorrelation
Applied Econometrics
The Breusch-Godfrey Test
Step 1: Estimate the model and obtain the
residuals
Step 2: Run the full LM model with the number
of lags used being determined by the assumed
order of autocorrelation.
Step 3: Compute the LM statistic = (n-ρ)R2 from
the LM model and compare it with the chi-
square critical value.
Step 4: Conclude
Applied Econometrics
The Durbin’s h Test
When there are lagged dependent variables (i.e. Yt-1) then the DW
test is not applicable.
Durbin developed an alternative test statistic, named the h-
statistic, which is calculated by:
2
ˆ
1
2
1


n
n
DW
h









Where sigma of gamma hat square is the variance of the estimated
coefficient of the lagged dependent variable.
This statistic is distributed following the normal distribution
The Durbin’s h Test
Applied Econometrics
The Durbin’s h Test
Dependent Variable: LOG(CONS)
Included observations: 37 after adjustments
Variable Coefficient Std. Error t-Statistic Prob.
C 0.834242 0.626564 1.331456 0.1922
LOG(INC) 0.227634 0.188911 1.204981 0.2368
LOG(CPI) -0.259918 0.110072 -2.361344 0.0243
LOG(CONS(-1)) 0.854041 0.089494 9.542982 0.0000
R-squared 0.940878 Mean dependent var 4.582683
Adjusted R-squared 0.935503 S.D. dependent var 0.110256
S.E. of regression 0.028001 Akaike info criterion -4.211360
Sum squared resid 0.025874 Schwarz criterion -4.037207
Log likelihood 81.91016 F-statistic 175.0558
Durbin-Watson stat 1.658128 Prob(F-statistic) 0.000000
Applied Econometrics
The Durbin’s h Test
2971
.
1
089
.
0
*
37
1
37
2
658
.
1
1
1
2
1
2
2
ˆ





















n
n
DW
h
Applied Econometrics
Resolving Autocorrelation
We have two different cases:
(a) When ρ is known
(b)When ρ is unknown
Applied Econometrics
Resolving Autocorrelation
(when ρ is known)
Consider the model
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut
where
ut=ρ1ut-1+et
Applied Econometrics
Resolving Autocorrelation
(when ρ is known)
Write the model of t-1:
Yt-1=β1+β2X2t-1+β3X3t-1+β4X4t-1+…+βkXkt-1+ut-1
Multiply both sides by ρ to get
ρYt-1= ρβ1+ ρβ2X2t-1+ ρβ3X3t-1+ ρβ4X4t-1
+…+ ρ βkXkt-1+ ρut-1
Applied Econometrics
Resolving Autocorrelation
(when ρ is known)
Subtract those two equations:
Yt-ρYt-1= (1-ρ)β1+ β2(X2t-ρX2t-1)+ β3(X3t-ρX3t-1)+
+…+ βk(Xkt-ρXkt-1)+(ut-ρut-1)
or
Y*t= β*1+ β*2X*2t+ β*3X*3t+…+ β*kX*kt+et
Where now the problem of autocorrelation is resolved
because et is no longer autocorrelated.
Applied Econometrics
Resolving Autocorrelation
(when ρ is known)
Note that because from the transformation we lose
one observation, in order to avoid that loss we
generate Y1 and Xi1 as follows:
Y*1=Y1 sqrt(1- ρ2)
X*i1=Xi1 sqrt(1-ρ2)
This transformation is known as the quasi-
differencing or generalised differencing.
Applied Econometrics
Resolving Autocorrelation
(when ρ is unknown))
The Cochrane-Orcutt iterative procedure.
Step 1: Estimate the regression and obtain residuals
Step 2: Estimate ρ from regressing the residuals to its lagged
terms.
Step 3: Transform the original variables as starred variables
using the obtained from step 2.
Step 4: Run the regression again with the transformed
variables and obtain residuals.
Step 5 and on: Continue repeating steps 2 to 4 for several
rounds until (stopping rule) the estimates of from two
successive iterations differ by no more than some
preselected small value, such as 0.001.

Weitere ähnliche Inhalte

Was ist angesagt?

Multicolinearity
MulticolinearityMulticolinearity
MulticolinearityPawan Kawan
 
Autocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresAutocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresShilpa Chaudhary
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
HeteroscedasticityMuhammad Ali
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationADITHYAT1
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelationQatar University
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometricsSwapnaJahan
 
DUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELDUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELArshad Ahmed Saeed
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticityhalimuth
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxPatilDevendra5
 
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066Sajid Ali Khan
 
Overview of econometrics 1
Overview of econometrics 1Overview of econometrics 1
Overview of econometrics 1Emeni Joshua
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testShilpa Chaudhary
 
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...Muhammad Ali
 

Was ist angesagt? (20)

Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
Autocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresAutocorrelation- Remedial Measures
Autocorrelation- Remedial Measures
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Autocorrelation (1)
Autocorrelation (1)Autocorrelation (1)
Autocorrelation (1)
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
 
Dummy variables
Dummy variablesDummy variables
Dummy variables
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
Ols
OlsOls
Ols
 
DUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELDUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODEL
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
Advanced Econometrics by Sajid Ali Khan Rawalakot: 0334-5439066
 
Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
 
Overview of econometrics 1
Overview of econometrics 1Overview of econometrics 1
Overview of econometrics 1
 
Autocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d testAutocorrelation- Detection- part 1- Durbin-Watson d test
Autocorrelation- Detection- part 1- Durbin-Watson d test
 
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
Econometrics notes (Introduction, Simple Linear regression, Multiple linear r...
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 

Ähnlich wie Chapter 07 - Autocorrelation.pptx

Econometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptxEconometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptxIndraYu2
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
Pdca prob solving & decision making
Pdca prob solving & decision makingPdca prob solving & decision making
Pdca prob solving & decision makingIndar Hendarin
 
Ch4_Uncertainty Analysis_1(3).pdf
Ch4_Uncertainty Analysis_1(3).pdfCh4_Uncertainty Analysis_1(3).pdf
Ch4_Uncertainty Analysis_1(3).pdfVamshi962726
 
Ch5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.pptCh5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.pptsadafshahbaz7777
 
Ali, Redescending M-estimator
Ali, Redescending M-estimator Ali, Redescending M-estimator
Ali, Redescending M-estimator Muhammad Ali
 
Turkey financial stress risk index and econometric modeling using garch and m...
Turkey financial stress risk index and econometric modeling using garch and m...Turkey financial stress risk index and econometric modeling using garch and m...
Turkey financial stress risk index and econometric modeling using garch and m...YUNUS EMRE Ozcan
 
Paper id 21201434
Paper id 21201434Paper id 21201434
Paper id 21201434IJRAT
 
Common mistakes in measurement uncertainty calculations
Common mistakes in measurement uncertainty calculationsCommon mistakes in measurement uncertainty calculations
Common mistakes in measurement uncertainty calculationsGH Yeoh
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural NetRatul Alahy
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression MethodsSumon Sdb
 
Econometrics_ch13.ppt
Econometrics_ch13.pptEconometrics_ch13.ppt
Econometrics_ch13.pptABDULAI3
 
Diploma sem 2 applied science physics-unit 1-chap 2 error s
Diploma sem 2 applied science physics-unit 1-chap 2 error sDiploma sem 2 applied science physics-unit 1-chap 2 error s
Diploma sem 2 applied science physics-unit 1-chap 2 error sRai University
 

Ähnlich wie Chapter 07 - Autocorrelation.pptx (20)

Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Econometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptxEconometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptx
 
report
reportreport
report
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Chapter 6.pptx
Chapter 6.pptxChapter 6.pptx
Chapter 6.pptx
 
Pdca prob solving & decision making
Pdca prob solving & decision makingPdca prob solving & decision making
Pdca prob solving & decision making
 
Ch4_Uncertainty Analysis_1(3).pdf
Ch4_Uncertainty Analysis_1(3).pdfCh4_Uncertainty Analysis_1(3).pdf
Ch4_Uncertainty Analysis_1(3).pdf
 
Ch5 slides
Ch5 slidesCh5 slides
Ch5 slides
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
 
Ch5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.pptCh5_slides Qwertr12234543234433444344.ppt
Ch5_slides Qwertr12234543234433444344.ppt
 
Ch5_slides.ppt
Ch5_slides.pptCh5_slides.ppt
Ch5_slides.ppt
 
Ali, Redescending M-estimator
Ali, Redescending M-estimator Ali, Redescending M-estimator
Ali, Redescending M-estimator
 
Turkey financial stress risk index and econometric modeling using garch and m...
Turkey financial stress risk index and econometric modeling using garch and m...Turkey financial stress risk index and econometric modeling using garch and m...
Turkey financial stress risk index and econometric modeling using garch and m...
 
Paper id 21201434
Paper id 21201434Paper id 21201434
Paper id 21201434
 
Common mistakes in measurement uncertainty calculations
Common mistakes in measurement uncertainty calculationsCommon mistakes in measurement uncertainty calculations
Common mistakes in measurement uncertainty calculations
 
146056297 cc-modul
146056297 cc-modul146056297 cc-modul
146056297 cc-modul
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural Net
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression Methods
 
Econometrics_ch13.ppt
Econometrics_ch13.pptEconometrics_ch13.ppt
Econometrics_ch13.ppt
 
Diploma sem 2 applied science physics-unit 1-chap 2 error s
Diploma sem 2 applied science physics-unit 1-chap 2 error sDiploma sem 2 applied science physics-unit 1-chap 2 error s
Diploma sem 2 applied science physics-unit 1-chap 2 error s
 

Kürzlich hochgeladen

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 

Kürzlich hochgeladen (20)

CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 

Chapter 07 - Autocorrelation.pptx

  • 1. Applied Econometrics Applied Econometrics Second edition Dimitrios Asteriou and Stephen G. Hall
  • 2. Applied Econometrics Applied Econometrics: A Modern Approach using Eviews and Microfit © Dr D Asteriou 2 AUTOCORRELATION 1. What is Autocorrelation 2. What Causes Autocorrelation 3. First and Higher Orders 4. Consequences of Autocorrelation 5. Detecting Autocorrelation 6. Resolving Autocorrelation
  • 3. Applied Econometrics Learning Objectives 1. Understand the meaning of autocorrelation in the CLRM. 2. Find out what causes autocorrelation. 3. Distinguish among first and higher orders of autocorrelation. 4. Understand the consequences of autocorrelation on OLS estimates. 5. Detect autocorrelation through graph inspection. 6. Detect autocorrelation through formal econometric tests. 7. Distinguish among the wide range of available tests for detecting autocorrelation. 8. Perform autocorrelation tests using econometric software. 9. Resolve autocorrelation using econometric software.
  • 4. Applied Econometrics What is Autocorrelation Assumption 6 of the CLRM states that the covariances and correlations between different disturbances are all zero: cov(ut, us)=0 for all t≠s This assumption states that the disturbances ut and us are independently distributed, which is called serial independence. What is Autocorrelation
  • 5. Applied Econometrics What is Autocorrelation If this assumption is no longer valid, then the disturbances are not pairwise independent, but pairwise autocorrelated (or Serially Correlated). This means that an error occurring at period t may be carried over to the next period t+1. Autocorrelation is most likely to occur in time series data. In cross-sectional we can change the arrangement of the data without altering the results.
  • 6. Applied Econometrics One factor that can cause autocorrelation is omitted variables. Suppose Yt is related to X2t and X3t, but we wrongfully do not include X3t in our model. The effect of X3t will be captured by the disturbances ut. If X3t like many economic series exhibit a trend over time, then X3t depends on X3t-1, X3t -2 and so on. Similarly then ut depends on ut-1, ut-2 and so on. What Causes Autocorrelation
  • 7. Applied Econometrics Another possible reason is misspecification. Suppose Yt is related to X2t with a quadratic relationship: Yt=β1+β2X2 2t+ut but we wrongfully assume and estimate a straight line: Yt=β1+β2X2t+ut Then the error term obtained from the straight line will depend on X2 2t. What Causes Autocorrelation
  • 8. Applied Econometrics What Causes Autocorrelation A third reason is systematic errors in measure- ment. Suppose a company updates its inventory at a given period in time. If a systematic error occurred then the cumulative inventory stock will exhibit accumulated measurement errors. These errors will show up as an autocorrelated procedure
  • 9. Applied Econometrics First-Order Autocorrelation The simplest and most commonly observed is the first-order autocorrelation. Consider the multiple regression model: Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut in which the current observation of the error term ut is a function of the previous (lagged) observation of the error term: ut=ρut-1+et
  • 10. Applied Econometrics First-Order Autocorrelation The coefficient ρ is called the first-order autocorrelation coefficient and takes values fom -1 to +1. It is obvious that the size of ρ will determine the strength of serial correlation. We can have three different cases.
  • 11. Applied Econometrics First-Order Autocorrelation (a) If ρ is zero, then we have no autocorrelation. (b) If ρ approaches unity, the value of the previous observation of the error becomes more important in determining the value of the current error and therefore high degree of autocorrelation exists. In this case we have positive autocorrelation. (c) If ρ approaches -1, we have high degree of negative autocorrelation.
  • 14. Applied Econometrics Higher-Order Autocorrelation Second-order when: ut=ρ1ut-1+ ρ2ut-2+et Third-order when ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +et p-th order when: ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
  • 15. Applied Econometrics Consequences of Autocorrelation 1. The OLS estimators are still unbiased and consistent. This is because both unbiasedness and consistency do not depend on assumption 6 which is in this case violated. 2. The OLS estimators will be inefficient and therefore no longer BLUE. 3. The estimated variances of the regression coefficients will be biased and inconsistent, and therefore hypothesis testing is no longer valid. In most of the cases, the R2 will be overestimated and the t-statistics will tend to be higher.
  • 16. Applied Econometrics Detecting Autocorrelation There are two ways in general. The first is the informal way which is done through graphs and therefore we call it the graphical method. The second is through formal tests for autocorrelation, like the following ones: 1. The Durbin Watson Test 2. The Breusch-Godfrey Test 3. The Durbin’s h Test (for the presence of lagged dependent variables) 4. The Engle’s ARCH Test
  • 17. Applied Econometrics Detecting Autocorrelation We have the following series (quarterly data from 1985q1 to 1994q2): lcons = the consumer’s expenditure on food ldisp = disposable income lprice = the relative price index of food Typing in Eviews the following command ls lcons c ldisp lprice we get the regression results.
  • 18. Applied Econometrics Detecting Autocorrelation Then we can store the residuals of this regression in a vector by typing the command: genr res01=resid And a plot of the residuals can be obtained by: plot res01 While a scatter of the residuals against their lagged terms can be obtained by: scat res01(-1) res01
  • 21. Applied Econometrics The Durbin Watson Test The following assumptions should be satisfied: 1. The regression model includes a constant 2. Autocorrelation is assumed to be of first- order only 3. The equation does not include a lagged dependent variable as an explanatory variable
  • 22. Applied Econometrics The Durbin Watson Test Step 1: Estimate the model by OLS and obtain the residuals Step 2: Calculate the DW statistic Step 3: Construct the table with the calculated DW statistic and the dU, dL, 4-dU and 4-dL critical values. Step 4: Conclude
  • 23. Applied Econometrics The Durbin Watson Test 0 dL dU 2 4-dU 4-dL 4 +ve autoc -ve autoc Zone of indecision Zone of indecision No autocorrelation
  • 24. Applied Econometrics The Durbin Watson Test Drawbacks of the DW test 1. It may give inconclusive results 2. It is not applicable when a lagged dependent variable is used 3. It can’t take into account higher order of autocorrelation
  • 25. Applied Econometrics The Breusch-Godfrey Test It is a Lagrange Multiplier Test that resolves the drawbacks of the DW test. Consider the model: Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut where: ut=ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
  • 26. Applied Econometrics The Breusch-Godfrey Test Combining those two we get: Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ +ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et The null and the alternative hypotheses are: H0: ρ1= ρ2=…= ρp=0 no autocorrelation Ha: at least one of the ρ’s is not zero, thus, autocorrelation
  • 27. Applied Econometrics The Breusch-Godfrey Test Step 1: Estimate the model and obtain the residuals Step 2: Run the full LM model with the number of lags used being determined by the assumed order of autocorrelation. Step 3: Compute the LM statistic = (n-ρ)R2 from the LM model and compare it with the chi- square critical value. Step 4: Conclude
  • 28. Applied Econometrics The Durbin’s h Test When there are lagged dependent variables (i.e. Yt-1) then the DW test is not applicable. Durbin developed an alternative test statistic, named the h- statistic, which is calculated by: 2 ˆ 1 2 1   n n DW h          Where sigma of gamma hat square is the variance of the estimated coefficient of the lagged dependent variable. This statistic is distributed following the normal distribution The Durbin’s h Test
  • 29. Applied Econometrics The Durbin’s h Test Dependent Variable: LOG(CONS) Included observations: 37 after adjustments Variable Coefficient Std. Error t-Statistic Prob. C 0.834242 0.626564 1.331456 0.1922 LOG(INC) 0.227634 0.188911 1.204981 0.2368 LOG(CPI) -0.259918 0.110072 -2.361344 0.0243 LOG(CONS(-1)) 0.854041 0.089494 9.542982 0.0000 R-squared 0.940878 Mean dependent var 4.582683 Adjusted R-squared 0.935503 S.D. dependent var 0.110256 S.E. of regression 0.028001 Akaike info criterion -4.211360 Sum squared resid 0.025874 Schwarz criterion -4.037207 Log likelihood 81.91016 F-statistic 175.0558 Durbin-Watson stat 1.658128 Prob(F-statistic) 0.000000
  • 30. Applied Econometrics The Durbin’s h Test 2971 . 1 089 . 0 * 37 1 37 2 658 . 1 1 1 2 1 2 2 ˆ                      n n DW h
  • 31. Applied Econometrics Resolving Autocorrelation We have two different cases: (a) When ρ is known (b)When ρ is unknown
  • 32. Applied Econometrics Resolving Autocorrelation (when ρ is known) Consider the model Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut where ut=ρ1ut-1+et
  • 33. Applied Econometrics Resolving Autocorrelation (when ρ is known) Write the model of t-1: Yt-1=β1+β2X2t-1+β3X3t-1+β4X4t-1+…+βkXkt-1+ut-1 Multiply both sides by ρ to get ρYt-1= ρβ1+ ρβ2X2t-1+ ρβ3X3t-1+ ρβ4X4t-1 +…+ ρ βkXkt-1+ ρut-1
  • 34. Applied Econometrics Resolving Autocorrelation (when ρ is known) Subtract those two equations: Yt-ρYt-1= (1-ρ)β1+ β2(X2t-ρX2t-1)+ β3(X3t-ρX3t-1)+ +…+ βk(Xkt-ρXkt-1)+(ut-ρut-1) or Y*t= β*1+ β*2X*2t+ β*3X*3t+…+ β*kX*kt+et Where now the problem of autocorrelation is resolved because et is no longer autocorrelated.
  • 35. Applied Econometrics Resolving Autocorrelation (when ρ is known) Note that because from the transformation we lose one observation, in order to avoid that loss we generate Y1 and Xi1 as follows: Y*1=Y1 sqrt(1- ρ2) X*i1=Xi1 sqrt(1-ρ2) This transformation is known as the quasi- differencing or generalised differencing.
  • 36. Applied Econometrics Resolving Autocorrelation (when ρ is unknown)) The Cochrane-Orcutt iterative procedure. Step 1: Estimate the regression and obtain residuals Step 2: Estimate ρ from regressing the residuals to its lagged terms. Step 3: Transform the original variables as starred variables using the obtained from step 2. Step 4: Run the regression again with the transformed variables and obtain residuals. Step 5 and on: Continue repeating steps 2 to 4 for several rounds until (stopping rule) the estimates of from two successive iterations differ by no more than some preselected small value, such as 0.001.