SlideShare a Scribd company logo
1 of 35
BS Statistics
6th
Semester
Regular
University of Sargodha
Session 2011-2015
 Introduction
 Causes of Autocorrelation
 OLS Estimation
 BLUE Estimator
 Consequences of using OLS
 Detecting Autocorrelation
1. Introduction
Autocorrelation occurs in time-series studies
when the errors associated with a given time
period carry over into future time periods.
For example, if we are predicting the growth of
stock dividends, an overestimate in one year is
likely to lead to overestimates in succeeding
years.
1. Introduction
Times series data follow a natural
ordering over time.
It is likely that such data exhibit
intercorrelation, especially if the time
interval between successive observations
is short, such as weeks or days.
1. Introduction
We expect stock market prices to move or
move down for several days in succession.
In situation like this, the assumption of no auto
or serial correlation in the error term that
underlies the CLRM will be violated.
We experience autocorrelation when
0)( ≠jiuuE
1. Introduction
Sometimes the term autocorrelation is used
interchangeably.
However, some authors prefer to distinguish between
them.
For example, Tintner defines autocorrelation as ‘lag
correlation of a given series within itself, lagged by a
number of times units’ whereas serial correlation is the
‘lag correlation between two different series’.
We will use both term simultaneously in this lecture.
1. Introduction
There are different types of serial correlation.
With first-order serial correlation, errors in
one time period are correlated directly with
errors in the ensuing time period.
With positive serial correlation, errors in one
time period are positively correlated with errors
in the next time period.
2. Causes of Autocorrelation
 Inertia - Macroeconomics data experience
cycles/business cycles.
 Specification Bias- Excluded variable
Appropriate equation:
Estimated equation
Estimating the second equation implies
ttttt uXXXY ++++= 4433221 ββββ
tttt vXXY +++= 33221 βββ
ttt uXv += 44β
2. Causes of Autocorrelation
 Specification Bias- Incorrect Functional
Form
tttt vXXY +++= 2
23221 βββ
ttt uXY ++= 221 ββ
ttt vXu += 2
23β
2. Causes of Autocorrelation
 Cobweb Phenomenon
In agricultural market, the supply reacts to
price with a lag of one time period because
supply decisions take time to implement. This
is known as the cobweb phenomenon.
Thus, at the beginning of this year’s planting
of crops, farmers are influenced by the price
prevailing last year.
2. Causes of Autocorrelation
 Lags
The above equation is known as auto
regression because one of the explanatory
variables is the lagged value of the dependent
variable.
If you neglect the lagged the resulting error
term will reflect a systematic pattern due to the
influence of lagged consumption on current
consumption.
ttt unConsumptionConsumptio ++= −121 ββ
2. Causes of Autocorrelation
 Data Manipulation
This equation is known as the first difference form
and dynamic regression model. The previous
equation is known as the level form.
Note that the error term in the first equation is not
auto correlated but it can be shown that the error
term in the first difference form is auto correlated.
ttt uXY ++= 21 ββ 11211 −−−
++= ttt uXY ββ
ttt vXY +∆=∆ 2β
2. Causes of Autocorrelation
 Nonstationarity
When dealing with time series data, we
should check whether the given time series is
stationary.
A time series is stationary if its characteristics
(e.g. mean, variance and covariance) are time
variant; that is, they do not change over time.
If that is not the case, we have a non
stationary time series.
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 -2and so on. Similarly then ut depends
on ut-1, ut-2 and so on.
Suppose Yt is related to X2t with a quadratic
relationship:
Yt=β1+β2X22t+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 X22t.
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 auto correlated
procedure.
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
The coefficient ρis called the first-order
autocorrelation coefficient and takes values from
-1 to +1.
It is obvious that the size of ρ will determine
the strength of serial correlation.
We can have three different cases
If ρ is zero, then we have no autocorrelation.
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.
If ρ approaches -1, we have high degree of
negative 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
 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.
 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.
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:
 The Durbin Watson Test
 The Breusch-Godfrey Test
 Run test
The following assumptions should be
satisfied:
 The regression model includes a constant
 Autocorrelation is assumed to be of first-order
only
 The equation does not include a lagged
dependent variable as an explanatory variable
 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
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
 Combining those two we get:
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+
+ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et
Topic NineTopic NineSerial CorrelationSerial Correlation
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
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
Topic NineTopic NineSerial CorrelationSerial Correlation
We have two different cases:
 When ρ is known
 When ρ is unknown
Consider the model
Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut
where
ut=ρ1ut-1+et
Topic NineTopic NineSerial CorrelationSerial Correlation
 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
 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
Topic NineTopic NineSerial CorrelationSerial Correlation
Where now the problem of autocorrelation is
resolved because et is no longer autocorrelated.
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.
 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.
MUHAMMAD IRFAN HUSSIAN(39)
DR ANWAR UL HAQ ( 28)
AMMER UMER (MPA) (30)
CH AAMAR LASHARI (45)
ThankThank
YouYou
ThankThank
YouYou

More Related Content

What's hot

Dummy variable
Dummy variableDummy variable
Dummy variable
Akram Ali
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
halimuth
 

What's hot (20)

Multicollinearity
MulticollinearityMulticollinearity
Multicollinearity
 
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
 
Dummy variable
Dummy variableDummy variable
Dummy variable
 
Dummy variables
Dummy variablesDummy variables
Dummy variables
 
Properties of estimators (blue)
Properties of estimators (blue)Properties of estimators (blue)
Properties of estimators (blue)
 
Chapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxChapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptx
 
Autocorrelation- Remedial Measures
Autocorrelation- Remedial MeasuresAutocorrelation- Remedial Measures
Autocorrelation- Remedial Measures
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Basic econometrics lectues_1
Basic econometrics lectues_1Basic econometrics lectues_1
Basic econometrics lectues_1
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 
Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Introduction to time series.pptx
Introduction to time series.pptxIntroduction to time series.pptx
Introduction to time series.pptx
 
Methodology of Econometrics / Hypothesis Testing
Methodology of Econometrics / Hypothesis Testing  Methodology of Econometrics / Hypothesis Testing
Methodology of Econometrics / Hypothesis Testing
 
Econometrics ch13
Econometrics ch13Econometrics ch13
Econometrics ch13
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
 
Overview of econometrics 1
Overview of econometrics 1Overview of econometrics 1
Overview of econometrics 1
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
 

Viewers also liked

Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
Akram Ali
 
03 The Chi Squared Test
03 The Chi Squared Test03 The Chi Squared Test
03 The Chi Squared Test
Jaya Kumar
 
Agribusiness status in india dell
Agribusiness status in india  dellAgribusiness status in india  dell
Agribusiness status in india dell
donadelze
 
Agribusiness in india a overview
Agribusiness in india a overviewAgribusiness in india a overview
Agribusiness in india a overview
Abdul Ali
 

Viewers also liked (20)

Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
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...
 
Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)
 
Lec1.regression
Lec1.regressionLec1.regression
Lec1.regression
 
03 The Chi Squared Test
03 The Chi Squared Test03 The Chi Squared Test
03 The Chi Squared Test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Autocorrelation and the rose diagram for analyzing structure and anisotropy i...
Autocorrelation and the rose diagram for analyzing structure and anisotropy i...Autocorrelation and the rose diagram for analyzing structure and anisotropy i...
Autocorrelation and the rose diagram for analyzing structure and anisotropy i...
 
Spatial Autocorrelation
Spatial AutocorrelationSpatial Autocorrelation
Spatial Autocorrelation
 
Serial correlation
Serial correlationSerial correlation
Serial correlation
 
Econ304 2 - Index Number
Econ304 2 - Index NumberEcon304 2 - Index Number
Econ304 2 - Index Number
 
Indian agribusiness
Indian agribusinessIndian agribusiness
Indian agribusiness
 
Agribusiness status in india dell
Agribusiness status in india  dellAgribusiness status in india  dell
Agribusiness status in india dell
 
Chi Squared Test
Chi Squared TestChi Squared Test
Chi Squared Test
 
Chapter3 econometrics
Chapter3 econometricsChapter3 econometrics
Chapter3 econometrics
 
Econometrics chapter 8
Econometrics chapter 8Econometrics chapter 8
Econometrics chapter 8
 
Agribusiness in india a overview
Agribusiness in india a overviewAgribusiness in india a overview
Agribusiness in india a overview
 
Econometrics project final edited
Econometrics project final editedEconometrics project final edited
Econometrics project final edited
 
DUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODELDUMMY VARIABLE REGRESSION MODEL
DUMMY VARIABLE REGRESSION MODEL
 

Similar to Auto Correlation Presentation

MSc Finance_EF_0853352_Kartik Malla
MSc Finance_EF_0853352_Kartik MallaMSc Finance_EF_0853352_Kartik Malla
MSc Finance_EF_0853352_Kartik Malla
Kartik Malla
 
Andrew_Hair_Assignment_3
Andrew_Hair_Assignment_3Andrew_Hair_Assignment_3
Andrew_Hair_Assignment_3
Andrew Hair
 
Varun Balupuri - Thesis
Varun Balupuri - ThesisVarun Balupuri - Thesis
Varun Balupuri - Thesis
Varun Balupuri
 
Vasicek Model Project
Vasicek Model ProjectVasicek Model Project
Vasicek Model Project
Cedric Melhy
 
Standard Charted PLC
Standard Charted PLCStandard Charted PLC
Standard Charted PLC
Thomas Cox
 

Similar to Auto Correlation Presentation (20)

Chapter 07 - Autocorrelation.pptx
Chapter 07 - Autocorrelation.pptxChapter 07 - Autocorrelation.pptx
Chapter 07 - Autocorrelation.pptx
 
Econometrics_ch13.ppt
Econometrics_ch13.pptEconometrics_ch13.ppt
Econometrics_ch13.ppt
 
auto correlation.pdf
auto correlation.pdfauto correlation.pdf
auto correlation.pdf
 
MSc Finance_EF_0853352_Kartik Malla
MSc Finance_EF_0853352_Kartik MallaMSc Finance_EF_0853352_Kartik Malla
MSc Finance_EF_0853352_Kartik Malla
 
Econometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptxEconometric (Indonesia's Economy).pptx
Econometric (Indonesia's Economy).pptx
 
report
reportreport
report
 
Andrew_Hair_Assignment_3
Andrew_Hair_Assignment_3Andrew_Hair_Assignment_3
Andrew_Hair_Assignment_3
 
Time series analysis- Part 2
Time series analysis- Part 2Time series analysis- Part 2
Time series analysis- Part 2
 
Varun Balupuri - Thesis
Varun Balupuri - ThesisVarun Balupuri - Thesis
Varun Balupuri - Thesis
 
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
 
Vasicek Model Project
Vasicek Model ProjectVasicek Model Project
Vasicek Model Project
 
Master_Thesis_Harihara_Subramanyam_Sreenivasan
Master_Thesis_Harihara_Subramanyam_SreenivasanMaster_Thesis_Harihara_Subramanyam_Sreenivasan
Master_Thesis_Harihara_Subramanyam_Sreenivasan
 
Asian basket options
Asian basket optionsAsian basket options
Asian basket options
 
Stock price prediction regression nn
Stock price prediction   regression nnStock price prediction   regression nn
Stock price prediction regression nn
 
Distributed lag model koyck
Distributed lag model koyckDistributed lag model koyck
Distributed lag model koyck
 
Stochastic Vol Forecasting
Stochastic Vol ForecastingStochastic Vol Forecasting
Stochastic Vol Forecasting
 
Ch4 slides
Ch4 slidesCh4 slides
Ch4 slides
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
 
Lecture Notes in Econometrics Arsen Palestini.pdf
Lecture Notes in Econometrics Arsen Palestini.pdfLecture Notes in Econometrics Arsen Palestini.pdf
Lecture Notes in Econometrics Arsen Palestini.pdf
 
Standard Charted PLC
Standard Charted PLCStandard Charted PLC
Standard Charted PLC
 

More from Irfan Hussain

35 live stoke of pakistan ,retirement age ,rural population in pakistan
35 live stoke of pakistan ,retirement age ,rural population in pakistan35 live stoke of pakistan ,retirement age ,rural population in pakistan
35 live stoke of pakistan ,retirement age ,rural population in pakistan
Irfan Hussain
 
30 unclean drinking water and its affects, transport system
30 unclean drinking water and its affects, transport system30 unclean drinking water and its affects, transport system
30 unclean drinking water and its affects, transport system
Irfan Hussain
 
14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology
Irfan Hussain
 

More from Irfan Hussain (20)

43 fb,price index, diabeties
43 fb,price index, diabeties43 fb,price index, diabeties
43 fb,price index, diabeties
 
40 child labour,employment system,dollar rate
40 child labour,employment system,dollar rate40 child labour,employment system,dollar rate
40 child labour,employment system,dollar rate
 
39 onlineshopping,flood,adr
39 onlineshopping,flood,adr39 onlineshopping,flood,adr
39 onlineshopping,flood,adr
 
35 live stoke of pakistan ,retirement age ,rural population in pakistan
35 live stoke of pakistan ,retirement age ,rural population in pakistan35 live stoke of pakistan ,retirement age ,rural population in pakistan
35 live stoke of pakistan ,retirement age ,rural population in pakistan
 
30 unclean drinking water and its affects, transport system
30 unclean drinking water and its affects, transport system30 unclean drinking water and its affects, transport system
30 unclean drinking water and its affects, transport system
 
29 popltn sutrctre,labour employmnt,personal saving
29 popltn sutrctre,labour employmnt,personal saving29 popltn sutrctre,labour employmnt,personal saving
29 popltn sutrctre,labour employmnt,personal saving
 
28 racism,manufacturing activity,alcohol addictn
28 racism,manufacturing activity,alcohol addictn28 racism,manufacturing activity,alcohol addictn
28 racism,manufacturing activity,alcohol addictn
 
27 educatn budgt,selfie,mp
27 educatn budgt,selfie,mp27 educatn budgt,selfie,mp
27 educatn budgt,selfie,mp
 
26 age structure, twitter, joint family system
26 age structure, twitter, joint family system26 age structure, twitter, joint family system
26 age structure, twitter, joint family system
 
25 retail trade,dovorce causes,crude death rate
25 retail trade,dovorce causes,crude death rate25 retail trade,dovorce causes,crude death rate
25 retail trade,dovorce causes,crude death rate
 
24 utility stores, functions, load shading, transport
24 utility stores, functions, load shading, transport24 utility stores, functions, load shading, transport
24 utility stores, functions, load shading, transport
 
23 stock market
23 stock market23 stock market
23 stock market
 
21 production of electricity,deforestion,sex ratio
21 production of electricity,deforestion,sex ratio21 production of electricity,deforestion,sex ratio
21 production of electricity,deforestion,sex ratio
 
20 agricultre,gold,insurance policy
20 agricultre,gold,insurance policy20 agricultre,gold,insurance policy
20 agricultre,gold,insurance policy
 
19 urbanization,import and export,culture of pakistan
19 urbanization,import and export,culture of pakistan19 urbanization,import and export,culture of pakistan
19 urbanization,import and export,culture of pakistan
 
18(10) birth and death rate,house rent,income and wages
18(10) birth and death rate,house rent,income and wages18(10) birth and death rate,house rent,income and wages
18(10) birth and death rate,house rent,income and wages
 
18 currency strength,fertility rate,whatsapp
18 currency strength,fertility rate,whatsapp18 currency strength,fertility rate,whatsapp
18 currency strength,fertility rate,whatsapp
 
17 public revenue, tax,gov spndng
17 public revenue, tax,gov spndng17 public revenue, tax,gov spndng
17 public revenue, tax,gov spndng
 
16 migrtion,tax revenue,total revenue
16 migrtion,tax revenue,total revenue16 migrtion,tax revenue,total revenue
16 migrtion,tax revenue,total revenue
 
14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology
 

Recently uploaded

Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 

Auto Correlation Presentation

  • 1.
  • 3.  Introduction  Causes of Autocorrelation  OLS Estimation  BLUE Estimator  Consequences of using OLS  Detecting Autocorrelation
  • 4. 1. Introduction Autocorrelation occurs in time-series studies when the errors associated with a given time period carry over into future time periods. For example, if we are predicting the growth of stock dividends, an overestimate in one year is likely to lead to overestimates in succeeding years.
  • 5. 1. Introduction Times series data follow a natural ordering over time. It is likely that such data exhibit intercorrelation, especially if the time interval between successive observations is short, such as weeks or days.
  • 6. 1. Introduction We expect stock market prices to move or move down for several days in succession. In situation like this, the assumption of no auto or serial correlation in the error term that underlies the CLRM will be violated. We experience autocorrelation when 0)( ≠jiuuE
  • 7. 1. Introduction Sometimes the term autocorrelation is used interchangeably. However, some authors prefer to distinguish between them. For example, Tintner defines autocorrelation as ‘lag correlation of a given series within itself, lagged by a number of times units’ whereas serial correlation is the ‘lag correlation between two different series’. We will use both term simultaneously in this lecture.
  • 8. 1. Introduction There are different types of serial correlation. With first-order serial correlation, errors in one time period are correlated directly with errors in the ensuing time period. With positive serial correlation, errors in one time period are positively correlated with errors in the next time period.
  • 9. 2. Causes of Autocorrelation  Inertia - Macroeconomics data experience cycles/business cycles.  Specification Bias- Excluded variable Appropriate equation: Estimated equation Estimating the second equation implies ttttt uXXXY ++++= 4433221 ββββ tttt vXXY +++= 33221 βββ ttt uXv += 44β
  • 10. 2. Causes of Autocorrelation  Specification Bias- Incorrect Functional Form tttt vXXY +++= 2 23221 βββ ttt uXY ++= 221 ββ ttt vXu += 2 23β
  • 11. 2. Causes of Autocorrelation  Cobweb Phenomenon In agricultural market, the supply reacts to price with a lag of one time period because supply decisions take time to implement. This is known as the cobweb phenomenon. Thus, at the beginning of this year’s planting of crops, farmers are influenced by the price prevailing last year.
  • 12. 2. Causes of Autocorrelation  Lags The above equation is known as auto regression because one of the explanatory variables is the lagged value of the dependent variable. If you neglect the lagged the resulting error term will reflect a systematic pattern due to the influence of lagged consumption on current consumption. ttt unConsumptionConsumptio ++= −121 ββ
  • 13. 2. Causes of Autocorrelation  Data Manipulation This equation is known as the first difference form and dynamic regression model. The previous equation is known as the level form. Note that the error term in the first equation is not auto correlated but it can be shown that the error term in the first difference form is auto correlated. ttt uXY ++= 21 ββ 11211 −−− ++= ttt uXY ββ ttt vXY +∆=∆ 2β
  • 14. 2. Causes of Autocorrelation  Nonstationarity When dealing with time series data, we should check whether the given time series is stationary. A time series is stationary if its characteristics (e.g. mean, variance and covariance) are time variant; that is, they do not change over time. If that is not the case, we have a non stationary time series.
  • 15. 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 -2and so on. Similarly then ut depends on ut-1, ut-2 and so on.
  • 16. Suppose Yt is related to X2t with a quadratic relationship: Yt=β1+β2X22t+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 X22t.
  • 17. 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 auto correlated procedure.
  • 18. 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
  • 19. The coefficient ρis called the first-order autocorrelation coefficient and takes values from -1 to +1. It is obvious that the size of ρ will determine the strength of serial correlation. We can have three different cases
  • 20. If ρ is zero, then we have no autocorrelation. 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. If ρ approaches -1, we have high degree of negative autocorrelation.
  • 21.
  • 22. 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
  • 23.  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.  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.
  • 24. 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:  The Durbin Watson Test  The Breusch-Godfrey Test  Run test
  • 25. The following assumptions should be satisfied:  The regression model includes a constant  Autocorrelation is assumed to be of first-order only  The equation does not include a lagged dependent variable as an explanatory variable
  • 26.  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
  • 27. 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  Combining those two we get: Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ +ρ1ut-1+ ρ2ut-2+ρ3ut-3 +…+ ρput-p +et Topic NineTopic NineSerial CorrelationSerial Correlation
  • 28. 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 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 Topic NineTopic NineSerial CorrelationSerial Correlation
  • 29. We have two different cases:  When ρ is known  When ρ is unknown Consider the model Yt=β1+β2X2t+β3X3t+β4X4t+…+βkXkt+ut where ut=ρ1ut-1+et Topic NineTopic NineSerial CorrelationSerial Correlation
  • 30.  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  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 Topic NineTopic NineSerial CorrelationSerial Correlation
  • 31. Where now the problem of autocorrelation is resolved because et is no longer autocorrelated. 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.
  • 32.  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.
  • 33. 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.
  • 34. MUHAMMAD IRFAN HUSSIAN(39) DR ANWAR UL HAQ ( 28) AMMER UMER (MPA) (30) CH AAMAR LASHARI (45)