SlideShare a Scribd company logo
1 of 43
PANDIT JAWAHARLAL NEHRU COLLEGE OF AGRICULTURE AND RESEARCH INSTITUTE
DEPARTMENT OF AGRICULTURAL ECONOMICS AND EXTENTION
AEC 507 ECONOMETRICS (2+1)
COURSE TEACHER: Dr. L.UMAMAHESWARI
TOPIC: AUTOCORRELATION
PRESENTED BY
T.PRIYADHARSHAN
22PGA103
AUTOCORRELATION
 The term autocorrelation may be defined as “correlation
between members of series of observations ordered in time [as
in time series data]”.
 In the regression context, the classical linear regression model
assumes that such autocorrelation does not exist in the
disturbances ui. Symbolically,
E(ui, uj ) = 0, i ≠ j (or)
Cov(ui, uj / xi, xj) = 0, means the disturbance ui and uj are
uncorrelated.
AUTOCORRELATION
 The term autocorrelation or serial correlation means the error
term in one time period is positively or negatively
correlated with the error term in any other time period.
This is common in time-series analysis.
The possible patterns
 Inertia
 A salient feature of most economic time series is inertia or sluggishness.
 Time series data such as GNP, price index, production, employment and
unemployment exhibit cycles.
 Therefore in regressions involving time-series data, successive observations are
likely to be interdependent.
Cause for serial correlation
Specification bias
a) Excluded variable case
When residuals exhibit a pattern as in figures a to d, is
case of excluded variable specification bias and the
inclusion such variables removes the correlation patterns
observed among the variables.
(1)
where, Y= Quantity of beef demanded
X2= Price of beef
X3= Consumer income
X4= Price of pork
t= time
Suppose we estimate the regression
(2)
(3)
As X4 affects consumption of beef, v will reflect a systematic pattern,
thus creating autocorrelation.
b) Incorrect functional form
Suppose instead of the correct model
(4)
we fit the model
(5)
SPECIFICATION BIAS: INCORRECT
FUNCTIONAL FORM
 Between points A and B, linear marginal cost curve
will overestimate the true MC and beyond these points
it will underestimate the true MC. Here vi reflects
autocorrelation because of incorrect functional form.
 Exclusion of lagged variables
In the time-series regression of consumption expenditure on
income, consumption expenditure in the current period depend
among other things on consumption of previous period.
If the lagged term is deleted, the resulting error will reflect a
systematic pattern due to the influence of lagged consumption on
current consumption.
OLS Estimators and their Variance
in the presence of autocorrelation
 The OLS consequences are still unbiased and consistent and
asymptotically normally distributed.
 The OLS estimators will be inefficient and therefore no longer
BLUE.
 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.
DETECTING AUTOCORRELATION
 The Graphical Test
 The Runs Test
 The Durbin Watson Test
 The Breusch-Godfrey Test
1) GRAPHICAL METHOD
Current residuals vs lagged residuals
 In this graph, u^ is plotted against u^
t-1, that is, plot the
residuals at time t against their value at time (t-1), (i.e),
current residuals VS lagged residuals. As this figure
reveals, most of the residuals are bunched in the second
(northeast) and the fourth (southwest) quadrants,
suggesting a strong positive correlation in the residuals.
Standardized residuals VS time
 Standardized residuals versus time, which is u^
t /√σ^2,
(i.e), u^
t is divided by the residuals SE of estimate.
 As it is a random sequence without any pattern,
autocorrelation is not present in the data.
 The graphical method we have just discussed, although
powerful and suggestive, is subjective or qualitative in
nature. But there are several quantitative tests that can be
used to supplement the purely qualitative approach.
2) THE RUNS TEST
 The runs test is also called as Geary test.
 It is a non- parametric test.
 A run is defined as an uninterrupted sequence of one
symbol or attribute, such as positive or negative.
 Note down the signs (positive or negative) of the
residuals.
 Length of the run is the number of elements in the run.
 If there are two many runs, it means that ut’s change
sign frequently indicating negative autocorrelation.
 Similarly, if there are too few runs, they may suggest
positive autocorrelation.
 Now let,
N = Total no of observation N1+N2
N1= No of + symbols(i.e., + residuals)
N2= No of - symbols(i.e., - residuals)
R = No of runs
 Then under the null hypothesis that the successive
outcomes (here, residuals) are independent, and
assuming that N1> 10 and N2> 10, the number of runs is
(asymptotically) normally distributed with
 Note: N = N₁ + N₂. If the null hypothesis of randomness
is sustainable, following the proper ties of the normal
distribution, we should expect that
 That is, the probability is 95 percent that the preceding
interval will include R.
 Decision Rule:
Do not reject the null hypothesis of randomness with
95% confidence if R, the number of runs, lies in the
preceding confidence interval.
Reject the null hypothesis if the estimated R lies
outside these limits.
3) Durbin-Watson d test
 It is a popular method and Durbin-Watson d statistic
is given
(1)
 Thus ‘d’ is simply the ratio of the sum of squared
difference in successive residuals to the RSS.
Applying (a+b)2 formula gives,
( 2 (2)
 Since ∑u^2
t and ∑u^2
t-1 differ in only one observation,
they are approximately equal. Therefore, setting
 d may be written as
(3)
(4)
d ≈ 2(1 − ρˆ) (5)
As −1 ≤ ρ ≤ 1, in equation (5) implies that
0 ≤ d ≤ 4 (6)
from equation (5), if ρ^ = 0, d = 2, there is no autocorrelation
ρ^ = +1, d = 0, there is positive autocorrelation in the residuals
ρ^ = -1, d = 4, there is negative autocorrelation in the residuals
Therefore, closer d to 0, greater the evidence of positive serial correlation
d to 4, greater the evidence of negative serial correlation
d to 2, there is no first order autocorrelation, either positive or negative.
Durbin-Watson ‘d’ statistic
 H0 : No positive autocorrelation
 H0* : No negative autocorrelation
Durbin-Watson ‘d’ test: Decision rules
D-W d test:
 Run OLS regression & obtain residuals ut
 Compute ‘d’
 For the given sample size & explanatory variables, find
out the critical dL and du values.
 Follow the decision rule
Limitation of d test
If ‘d’ falls in the indecisive zone (or) region of ignorance,
one cannot conclude whether autocorrelation does (or)
does not exist.
4) The Breusch-Godfrey (BG) Test
 It is also called as Lagrange Multiplier test (LM Test).
 To avoid some of the drawbacks of the Durbin–Watson d test of
autocorrelation, statisticians Breusch and Godfrey have developed a
test of autocorrelation that allows for lagged values of the regressand
and higher-order autoregressive schemes, such as AR(1), AR(2), etc.
The BG Test:
Consider a two- variable regression model:
let (1)
Assume error term ut follows the pth order autoregressive scheme
AR(p) as follows:
(2)
Where, εt is a white noise error term
(3)
(i.e), there is no serial correlation of any order.
The BG test involves the following steps:
1. Estimate by OLS and obtain the residuals u^
t.
2. Regress u^t on original xt and u^
t-1 , u^
t-2 ………. u^
t-p (which
are the lagged values of the estimated residuals in step 1). Thus
if p=4, we will introduce four lagged values of the residuals as
additional regressors in the model.
Run the regression,
(4)
and obtain R2 from this auxiliary regression.
3. If the sample size is large, BG have shown that
(5)
 That is, asymptotically, n-p times the R2 value obtained
from the auxiliary regression (2) follows the chi-square
distribution with p.d.f. if (n-p) R2 exceeds the critical chi-
square value at the chosen level of significance, we reject
the null hypothesis, and there is autocorrelation in the data.
 If in equation (2) ρ=1, meaning first-order autoregression,
then the BG test is known as Durbin’s M Test.
(1) Generalized Least Squares method
Let us assume that ut follows the first order autoregressive
scheme (AR1),
(1)
ρ is called first order coefficient of autocorrelation (or) coefficient
of autocorrelation of lag 1 (or) coefficient of autocorrelation.
(2)
 When ρ is known
if eq (2) holds true at time t, it also holds true at t-1
so, (3)
REMEDIAL MEASURES WHEN AUTOCORRELATION IS FOUND
Multiplying by ρ on both sides, we obtain
(4)
eq (2) - (4) gives,
(5)
Eqtn (5) is the generalized difference equation & can be written as
(6)
where
To avoid the loss of one observation, the first observation on Y and X is
transformed as follows:
Y1√ 1- ρ2 and X1 √1-ρ2. This transformation is known as the Prais-
Winsten transformation.
 As error term satisfied OLS assumptions, we can apply
OLS to the transformed variables Y* and X* and obtain
estimators with optimum properties, i.e. BLUE
 GLS is nothing but OLS applied to the transformed
model that satisfies the classical assumptions.
 When ρ is not known
As ρ is rarely known in practice, generalized
difference regression is difficult to run and therefore
alternative methods are discussed below:
(a) The first difference method
If ρ = +1, the generalized difference equation (5) reduces the
first difference equation as
(7)
An important feature of the first difference model is that
there is no intercept term in it. Hence to run (7), the
regression through the origin model have to be used.
 If ρ = -1, the generalized difference equation becomes
 Yt + Yt-1 = 2 β1 + β2(Xt+Xt-1) + εt
 Yt + Yt-1 / 2 = β1 + β2(Xt+Xt-1) /2 + εt /2
 This model is known as Moving Average Regression
Model as we are regressing the value of one moving
average on another
(3) Based on Durbin- Watson d statistics
If we cannot use the first difference transformation because ρ
is not sufficiently close to unity, we have an easy method of
estimating it from the relationship between d and ρ established, from
which we can estimate ρ as follows:
 d = 2(1- ρˆ)
 (1- ρˆ) = d/2
 ρˆ = 1- d/2
(4) Durbin’s two step procedure of estimating ρ:
1. Estimate Yt on Xt, Xt-1 and Yt-1
Yt = β1 (1-ρ) + β2 Xt - ρ β2 Xt-1 + ρ Yt-1 + ԑt
and treat the estimated value of the regression coefficient of Yt-1 as an
estimate of ρ.
2. Having obtained ρ^ , transform the variables as
Yt* = (Yt - ρ^Y t-1) and Xt* = (Xt - ρ^Xt-1) and run the OLS
regression on transformed variables to obtain estimate of parameters.
REFERENCE:
 Basic Econometrics- Sixth edition- Damodar N
Gujarathi, Dawn C Porter, Manorajan Pal
THANK YOU

More Related Content

Similar to autocorrelation.pptx

ders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxErgin Akalpler
 
Standard Charted PLC
Standard Charted PLCStandard Charted PLC
Standard Charted PLCThomas Cox
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920Karl Rudeen
 
Identification of Outliersin Time Series Data via Simulation Study
Identification of Outliersin Time Series Data via Simulation StudyIdentification of Outliersin Time Series Data via Simulation Study
Identification of Outliersin Time Series Data via Simulation Studyiosrjce
 
3010l8.pdf
3010l8.pdf3010l8.pdf
3010l8.pdfdawitg2
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationAkram Ali
 
Regression analysis
Regression analysisRegression analysis
Regression analysisSrikant001p
 
Empirical Finance, Jordan Stone- Linkedin
Empirical Finance, Jordan Stone- LinkedinEmpirical Finance, Jordan Stone- Linkedin
Empirical Finance, Jordan Stone- LinkedinJordan Stone
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsDerek Kane
 
M1 unit vi-jntuworld
M1 unit vi-jntuworldM1 unit vi-jntuworld
M1 unit vi-jntuworldmrecedu
 
An alternative scheme for approximating a periodic function
An alternative scheme for approximating a periodic functionAn alternative scheme for approximating a periodic function
An alternative scheme for approximating a periodic functionijscmcj
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examplesGaurav Kamboj
 
Forecasting With An Adaptive Control Algorithm
Forecasting With An Adaptive Control AlgorithmForecasting With An Adaptive Control Algorithm
Forecasting With An Adaptive Control Algorithmshwetakarsh
 

Similar to autocorrelation.pptx (20)

ders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptx
 
Quantitative Methods - Level II - CFA Program
Quantitative Methods - Level II - CFA ProgramQuantitative Methods - Level II - CFA Program
Quantitative Methods - Level II - CFA Program
 
Standard Charted PLC
Standard Charted PLCStandard Charted PLC
Standard Charted PLC
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
 
Project Paper
Project PaperProject Paper
Project Paper
 
Identification of Outliersin Time Series Data via Simulation Study
Identification of Outliersin Time Series Data via Simulation StudyIdentification of Outliersin Time Series Data via Simulation Study
Identification of Outliersin Time Series Data via Simulation Study
 
3010l8.pdf
3010l8.pdf3010l8.pdf
3010l8.pdf
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Simple Regression.pptx
Simple Regression.pptxSimple Regression.pptx
Simple Regression.pptx
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression for class teaching
Regression for class teachingRegression for class teaching
Regression for class teaching
 
Empirical Finance, Jordan Stone- Linkedin
Empirical Finance, Jordan Stone- LinkedinEmpirical Finance, Jordan Stone- Linkedin
Empirical Finance, Jordan Stone- Linkedin
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
M1 unit vi-jntuworld
M1 unit vi-jntuworldM1 unit vi-jntuworld
M1 unit vi-jntuworld
 
An alternative scheme for approximating a periodic function
An alternative scheme for approximating a periodic functionAn alternative scheme for approximating a periodic function
An alternative scheme for approximating a periodic function
 
Research Assignment INAR(1)
Research Assignment INAR(1)Research Assignment INAR(1)
Research Assignment INAR(1)
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
 
Forecasting With An Adaptive Control Algorithm
Forecasting With An Adaptive Control AlgorithmForecasting With An Adaptive Control Algorithm
Forecasting With An Adaptive Control Algorithm
 
gls
glsgls
gls
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 

More from PriyadharshanBobby (13)

com.pptx
com.pptxcom.pptx
com.pptx
 
BUDJET 23.pptx
BUDJET 23.pptxBUDJET 23.pptx
BUDJET 23.pptx
 
AEC502-1.
AEC502-1.AEC502-1.
AEC502-1.
 
ENGLISH.pptx
ENGLISH.pptxENGLISH.pptx
ENGLISH.pptx
 
Ethics.pptx
Ethics.pptxEthics.pptx
Ethics.pptx
 
Ethics.pptx
Ethics.pptxEthics.pptx
Ethics.pptx
 
Presentation-WPS Office-1.pptx
Presentation-WPS Office-1.pptxPresentation-WPS Office-1.pptx
Presentation-WPS Office-1.pptx
 
arrowsimpossibilitytheorem-220603081823-4733ec7f (1).pptx
arrowsimpossibilitytheorem-220603081823-4733ec7f (1).pptxarrowsimpossibilitytheorem-220603081823-4733ec7f (1).pptx
arrowsimpossibilitytheorem-220603081823-4733ec7f (1).pptx
 
IPR-Patent.pptx
IPR-Patent.pptxIPR-Patent.pptx
IPR-Patent.pptx
 
NR forestry.pptx
NR forestry.pptxNR forestry.pptx
NR forestry.pptx
 
NR kurznets curve.pptx
NR kurznets curve.pptxNR kurznets curve.pptx
NR kurznets curve.pptx
 
R studio.pptx
R studio.pptxR studio.pptx
R studio.pptx
 
MARKETING value chain.pptx
MARKETING value chain.pptxMARKETING value chain.pptx
MARKETING value chain.pptx
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

autocorrelation.pptx

  • 1. PANDIT JAWAHARLAL NEHRU COLLEGE OF AGRICULTURE AND RESEARCH INSTITUTE DEPARTMENT OF AGRICULTURAL ECONOMICS AND EXTENTION AEC 507 ECONOMETRICS (2+1) COURSE TEACHER: Dr. L.UMAMAHESWARI TOPIC: AUTOCORRELATION PRESENTED BY T.PRIYADHARSHAN 22PGA103
  • 2. AUTOCORRELATION  The term autocorrelation may be defined as “correlation between members of series of observations ordered in time [as in time series data]”.  In the regression context, the classical linear regression model assumes that such autocorrelation does not exist in the disturbances ui. Symbolically, E(ui, uj ) = 0, i ≠ j (or) Cov(ui, uj / xi, xj) = 0, means the disturbance ui and uj are uncorrelated.
  • 3. AUTOCORRELATION  The term autocorrelation or serial correlation means the error term in one time period is positively or negatively correlated with the error term in any other time period. This is common in time-series analysis.
  • 5.
  • 6.  Inertia  A salient feature of most economic time series is inertia or sluggishness.  Time series data such as GNP, price index, production, employment and unemployment exhibit cycles.  Therefore in regressions involving time-series data, successive observations are likely to be interdependent. Cause for serial correlation
  • 7. Specification bias a) Excluded variable case When residuals exhibit a pattern as in figures a to d, is case of excluded variable specification bias and the inclusion such variables removes the correlation patterns observed among the variables.
  • 8. (1) where, Y= Quantity of beef demanded X2= Price of beef X3= Consumer income X4= Price of pork t= time Suppose we estimate the regression (2) (3) As X4 affects consumption of beef, v will reflect a systematic pattern, thus creating autocorrelation.
  • 9. b) Incorrect functional form Suppose instead of the correct model (4) we fit the model (5)
  • 11.  Between points A and B, linear marginal cost curve will overestimate the true MC and beyond these points it will underestimate the true MC. Here vi reflects autocorrelation because of incorrect functional form.
  • 12.  Exclusion of lagged variables In the time-series regression of consumption expenditure on income, consumption expenditure in the current period depend among other things on consumption of previous period. If the lagged term is deleted, the resulting error will reflect a systematic pattern due to the influence of lagged consumption on current consumption.
  • 13. OLS Estimators and their Variance in the presence of autocorrelation  The OLS consequences are still unbiased and consistent and asymptotically normally distributed.  The OLS estimators will be inefficient and therefore no longer BLUE.  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.
  • 14. DETECTING AUTOCORRELATION  The Graphical Test  The Runs Test  The Durbin Watson Test  The Breusch-Godfrey Test
  • 15. 1) GRAPHICAL METHOD Current residuals vs lagged residuals
  • 16.  In this graph, u^ is plotted against u^ t-1, that is, plot the residuals at time t against their value at time (t-1), (i.e), current residuals VS lagged residuals. As this figure reveals, most of the residuals are bunched in the second (northeast) and the fourth (southwest) quadrants, suggesting a strong positive correlation in the residuals.
  • 18.  Standardized residuals versus time, which is u^ t /√σ^2, (i.e), u^ t is divided by the residuals SE of estimate.  As it is a random sequence without any pattern, autocorrelation is not present in the data.  The graphical method we have just discussed, although powerful and suggestive, is subjective or qualitative in nature. But there are several quantitative tests that can be used to supplement the purely qualitative approach.
  • 19. 2) THE RUNS TEST  The runs test is also called as Geary test.  It is a non- parametric test.  A run is defined as an uninterrupted sequence of one symbol or attribute, such as positive or negative.  Note down the signs (positive or negative) of the residuals.
  • 20.  Length of the run is the number of elements in the run.  If there are two many runs, it means that ut’s change sign frequently indicating negative autocorrelation.  Similarly, if there are too few runs, they may suggest positive autocorrelation.
  • 21.  Now let, N = Total no of observation N1+N2 N1= No of + symbols(i.e., + residuals) N2= No of - symbols(i.e., - residuals) R = No of runs
  • 22.  Then under the null hypothesis that the successive outcomes (here, residuals) are independent, and assuming that N1> 10 and N2> 10, the number of runs is (asymptotically) normally distributed with
  • 23.  Note: N = N₁ + N₂. If the null hypothesis of randomness is sustainable, following the proper ties of the normal distribution, we should expect that  That is, the probability is 95 percent that the preceding interval will include R.
  • 24.  Decision Rule: Do not reject the null hypothesis of randomness with 95% confidence if R, the number of runs, lies in the preceding confidence interval. Reject the null hypothesis if the estimated R lies outside these limits.
  • 25. 3) Durbin-Watson d test  It is a popular method and Durbin-Watson d statistic is given (1)  Thus ‘d’ is simply the ratio of the sum of squared difference in successive residuals to the RSS. Applying (a+b)2 formula gives, ( 2 (2)
  • 26.  Since ∑u^2 t and ∑u^2 t-1 differ in only one observation, they are approximately equal. Therefore, setting  d may be written as (3)
  • 27. (4) d ≈ 2(1 − ρˆ) (5) As −1 ≤ ρ ≤ 1, in equation (5) implies that 0 ≤ d ≤ 4 (6) from equation (5), if ρ^ = 0, d = 2, there is no autocorrelation ρ^ = +1, d = 0, there is positive autocorrelation in the residuals ρ^ = -1, d = 4, there is negative autocorrelation in the residuals Therefore, closer d to 0, greater the evidence of positive serial correlation d to 4, greater the evidence of negative serial correlation d to 2, there is no first order autocorrelation, either positive or negative.
  • 29.  H0 : No positive autocorrelation  H0* : No negative autocorrelation Durbin-Watson ‘d’ test: Decision rules
  • 30. D-W d test:  Run OLS regression & obtain residuals ut  Compute ‘d’  For the given sample size & explanatory variables, find out the critical dL and du values.  Follow the decision rule Limitation of d test If ‘d’ falls in the indecisive zone (or) region of ignorance, one cannot conclude whether autocorrelation does (or) does not exist.
  • 31. 4) The Breusch-Godfrey (BG) Test  It is also called as Lagrange Multiplier test (LM Test).  To avoid some of the drawbacks of the Durbin–Watson d test of autocorrelation, statisticians Breusch and Godfrey have developed a test of autocorrelation that allows for lagged values of the regressand and higher-order autoregressive schemes, such as AR(1), AR(2), etc.
  • 32. The BG Test: Consider a two- variable regression model: let (1) Assume error term ut follows the pth order autoregressive scheme AR(p) as follows: (2) Where, εt is a white noise error term (3) (i.e), there is no serial correlation of any order.
  • 33. The BG test involves the following steps: 1. Estimate by OLS and obtain the residuals u^ t. 2. Regress u^t on original xt and u^ t-1 , u^ t-2 ………. u^ t-p (which are the lagged values of the estimated residuals in step 1). Thus if p=4, we will introduce four lagged values of the residuals as additional regressors in the model. Run the regression, (4) and obtain R2 from this auxiliary regression. 3. If the sample size is large, BG have shown that (5)
  • 34.  That is, asymptotically, n-p times the R2 value obtained from the auxiliary regression (2) follows the chi-square distribution with p.d.f. if (n-p) R2 exceeds the critical chi- square value at the chosen level of significance, we reject the null hypothesis, and there is autocorrelation in the data.  If in equation (2) ρ=1, meaning first-order autoregression, then the BG test is known as Durbin’s M Test.
  • 35. (1) Generalized Least Squares method Let us assume that ut follows the first order autoregressive scheme (AR1), (1) ρ is called first order coefficient of autocorrelation (or) coefficient of autocorrelation of lag 1 (or) coefficient of autocorrelation. (2)  When ρ is known if eq (2) holds true at time t, it also holds true at t-1 so, (3) REMEDIAL MEASURES WHEN AUTOCORRELATION IS FOUND
  • 36. Multiplying by ρ on both sides, we obtain (4) eq (2) - (4) gives, (5) Eqtn (5) is the generalized difference equation & can be written as (6) where To avoid the loss of one observation, the first observation on Y and X is transformed as follows: Y1√ 1- ρ2 and X1 √1-ρ2. This transformation is known as the Prais- Winsten transformation.
  • 37.  As error term satisfied OLS assumptions, we can apply OLS to the transformed variables Y* and X* and obtain estimators with optimum properties, i.e. BLUE  GLS is nothing but OLS applied to the transformed model that satisfies the classical assumptions.
  • 38.  When ρ is not known As ρ is rarely known in practice, generalized difference regression is difficult to run and therefore alternative methods are discussed below: (a) The first difference method If ρ = +1, the generalized difference equation (5) reduces the first difference equation as (7) An important feature of the first difference model is that there is no intercept term in it. Hence to run (7), the regression through the origin model have to be used.
  • 39.  If ρ = -1, the generalized difference equation becomes  Yt + Yt-1 = 2 β1 + β2(Xt+Xt-1) + εt  Yt + Yt-1 / 2 = β1 + β2(Xt+Xt-1) /2 + εt /2  This model is known as Moving Average Regression Model as we are regressing the value of one moving average on another
  • 40. (3) Based on Durbin- Watson d statistics If we cannot use the first difference transformation because ρ is not sufficiently close to unity, we have an easy method of estimating it from the relationship between d and ρ established, from which we can estimate ρ as follows:  d = 2(1- ρˆ)  (1- ρˆ) = d/2  ρˆ = 1- d/2
  • 41. (4) Durbin’s two step procedure of estimating ρ: 1. Estimate Yt on Xt, Xt-1 and Yt-1 Yt = β1 (1-ρ) + β2 Xt - ρ β2 Xt-1 + ρ Yt-1 + ԑt and treat the estimated value of the regression coefficient of Yt-1 as an estimate of ρ. 2. Having obtained ρ^ , transform the variables as Yt* = (Yt - ρ^Y t-1) and Xt* = (Xt - ρ^Xt-1) and run the OLS regression on transformed variables to obtain estimate of parameters.
  • 42. REFERENCE:  Basic Econometrics- Sixth edition- Damodar N Gujarathi, Dawn C Porter, Manorajan Pal