SlideShare a Scribd company logo
Data Analysis & Forecasting                                    Faculty of Development Economics



                           TIME SERIES ANALYSIS
       COINTEGRATION & ERROR CORRECTION VERSION OF
                GRANGER CAUSALITY (ECM)



According to Mehrara (2007), the most popular method for Granger causality tests, is based
on ECM, avoiding spurious regression problems. In this procedure, we first investigate
whether the two non-stationary series are cointegrated, ie. whether a linear combination of
the two series is stationary. Cointegration implies that causality exists between the two
series, but it does not indicate the direction of the causal relationship. To test for
cointegration between the two series, we use the Johansen test/Johansen approach
(Johansen 1988; Johansen and Juselius 1990) based on the maximum eigenvalue and trace
statistics, as well as ADF cointegration tests/Engle-Granger (EG) approach developed by
Engle-Granger (1987).

1. THE MODEL
The Cointegration & Error Correction Version of Granger Causality (or Dynamic Granger
Causality or ECM) test for the of two stationary variables ∆Yt and ∆Xt, given that Yt and
Xt are cointegrated, involves as a first step the estimation of the following VAR model:
                                                         n             m
                             ∆Yt = α + π y ECTt −1 + ∑ β i ∆Yt −i + ∑ γ j ∆X t − j + u yt     (1)
                                                        i =1           j=1

                                                         n              m
                             ∆X t = α + π x ECTt −1 + ∑ θ i ∆X t −i + ∑ δ j ∆Yt − j + u xt    (2)
                                                        i =1            j=1

where ECTs are defined as follows:
                             ECTyt-1 = u yt −1 = Yt −1 − B1 − B 2 X t −1 (for equation (1))
                                       ˆ                 ˆ    ˆ                               (a)
                             ECTxt-1 = u xt −1 = X t −1 − B1 − B 2 Yt =1 (for equation (2))
                                       ˆ                  ˆ    ˆ                              (b)
Important note is the same as the Standard Granger Causality.


2. TEST PROCEDURE
Suppose we have Yt and Xt are nonstationary.
THE DYNAMIC GRANGER CAUSALITY is performed as follows:
Step 1: Testing for the unit root of Yt and Xt
        (using either DF, ADF, or PP tests)
Suppose the test results indicate that both Yt and Xt are I(1).
Step 2: Testing for cointegration between Yt and Xt


Phung Thanh Binh (2010)                                                                           1
Data Analysis & Forecasting                                       Faculty of Development Economics

        (usually use EG or Johansen approach)
If Yt and Xt are cointegrated, we can apply either Standard or ECM Version of Granger
Causality, depending on our research objectives. However, it’d better to use the later one. In
this case, we should obtain the residuals from cointegrating equations (i.e., equations (a)
and (b)), and then name these terms as ECTy and ECTx.
Step 3: Taking the first differences of Yt and Xt (i.e., Yt and Xt)
Step 4: Determining the optimal lag length of Yt and Xt
   a) Automatically determine the optimal lag length of ∆Yt and ∆Xt in their AR models
      (using AIC or SIC, see Section 8 of my lecture).
                                                                      n
                                       ∆Yt = α + π y ECTyt −1 + ∑ β i ∆Yt −i + u yt             (3)
                                                                     i =1

       Then estimate (3) by OLS, and obtain the RSS of this regression (which is the
       restricted one) and label it as RSSRY.
                                                                      n'
                                       ∆X t = α + π x ECTxt −1 + ∑ θ i ∆X t −i + u xt           (4)
                                                                     i =1

       Then estimate (4) by OLS, and obtain the RSS of this regression (which is the
       restricted one) and label it as RSSRX.
   b) Manually determine the optimal lag length of ∆Xt (m in equation (1)) and ∆Yt (m in
      equation (2)), (using AIC or SIC, depending on which one you use in step 4a, see
      Section 8 of my lecture).
                                                            n               m
                            ∆Yt = α + π y ECTyt −1 + ∑ β i ∆Yt −i + ∑ γ j ∆X t − j + u yt       (5)
                                                           i =1             j=1

       Then estimate (5) by OLS, and obtain the RSS of this regression (which is the
       unrestricted one) and label it as RSSUY.
                                                            n'               m'
                            ∆X t = α + π x ECTxt −1 + ∑ θ i ∆X t −i + ∑ δ j ∆Yt − j + u xt      (6)
                                                           i =1              j=1

       Then estimate (6) by OLS, and obtain the RSS of this regression (which is the
       unrestricted one) and label it as RSSUX.
Step 5: Set the null and alternative hypotheses
      Short-run Granger causality/Weak Granger causality (F-statistic)
   a) For equation (3) and (5), we set:
                                   m
                            H0 :   ∑γ
                                   j=1
                                          j   = 0 or X t does not cause Yt

                                   m
                            H1 :   ∑γ
                                   j=1
                                         j    ≠ 0 or X t causes Yt

   b) For equation (4) and (6), we set:
                                   m'
                            H0 :   ∑δ
                                   j=1
                                          j   = 0 or Yt does not cause X t


Phung Thanh Binh (2010)                                                                              2
Data Analysis & Forecasting                                     Faculty of Development Economics
                                     m'
                            H1 :    ∑δ
                                    j=1
                                          j   ≠ 0 or Yt causes X t

      Long-run Granger causality (t statistic)

   a) For equation (5), we set:
                            H 0 : π y = 0 or Granger non - causality in the long - run
                            H 1 : π y ≠ 0 or Granger causality in the long - run
   b) For equation (6), we set:
                            H 0 : π x = 0 or Granger non - causality in the long - run
                            H 1 : π x ≠ 0 or Granger causality in the long - run
      Strong Granger causality (F-statistic)
   a) For equation (5), we set:
                                              m
                            H 0 : π y = ∑ γ j = 0 or X t does not cause Yt
                                              j=1

                                                     m
                            H 1 : π y ≠ 0 and ∑ γ j ≠ 0 or X t strongly causes Yt
                                                    j=1

   b) For equation (6), we set:
                                              m'
                            H 0 : π x = ∑ δ j = 0 or Yt does not causes X t
                                              j=1

                                                    m'
                            H 1 : π x ≠ 0 and ∑ δ j ≠ 0 or Yt strongly causes X t
                                                    j=1

Step 6: Calculate the F statistic for the normal Wald test

   a) For equation (3) and (5), we set:
                                   (RSS RY − RSS UY ) / m
                            F=
                                     RSS UY /( N − k )
   b) For equation (4) and (6), we set:
                                   (RSS RX − RSS UX ) / m'
                            F=
                                     RSS UX /( N − k )
If the computed F value exceeds the critical F value, reject the null hypothesis and conclude
that Xt weakly causes Yt, or Yt weakly causes Xt.


Questions:
  1. How to calculate the F statistics for strong Granger causality tests?
   2. How to explain the test results?


Phung Thanh Binh (2010)                                                                            3

More Related Content

What's hot

Ols
OlsOls
Time series analysis in Stata
Time series analysis in StataTime series analysis in Stata
Time series analysis in Stata
shahisec1
 
Cointegration and error correction model
Cointegration and error correction modelCointegration and error correction model
Cointegration and error correction model
Aditya KS
 
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h testAutocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
Shilpa Chaudhary
 
Identification problem in simultaneous equations model
Identification problem in simultaneous equations modelIdentification problem in simultaneous equations model
Identification problem in simultaneous equations model
GarimaGupta229
 
Introduction to modern time series analysis
Introduction to modern time series analysisIntroduction to modern time series analysis
Introduction to modern time series analysis
Springer
 
Panel data analysis
Panel data analysisPanel data analysis
Panel data analysis
Sana Hassan Afridi
 
Differences-in-Differences
Differences-in-DifferencesDifferences-in-Differences
Differences-in-Differences
Jaehyun Song
 
Panel Data Models
Panel Data ModelsPanel Data Models
Panel Data Models
Economic Research Forum
 
Chapter3 econometrics
Chapter3 econometricsChapter3 econometrics
Chapter3 econometrics
Vu Vo
 
Panel data
Panel dataPanel data
Introduction to time series.pptx
Introduction to time series.pptxIntroduction to time series.pptx
Introduction to time series.pptx
HamidUllah50
 
Copule slides
Copule slidesCopule slides
Copule slides
Giovanni Della Lunga
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
Manu Antony
 
Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...
Edward Thomas Jones
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
Ratul Basak
 
Granger Causality
Granger CausalityGranger Causality
Granger Causality
Gaetan Lion
 
Granger causality testing
Granger causality testingGranger causality testing
Granger causality testing
ThomasReader
 
Co-integration
Co-integration Co-integration
Co-integration
Suniya Sheikh
 
Issues in time series econometrics
Issues in time series econometricsIssues in time series econometrics
Issues in time series econometrics
Babu Tyagu
 

What's hot (20)

Ols
OlsOls
Ols
 
Time series analysis in Stata
Time series analysis in StataTime series analysis in Stata
Time series analysis in Stata
 
Cointegration and error correction model
Cointegration and error correction modelCointegration and error correction model
Cointegration and error correction model
 
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h testAutocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
Autocorrelation- Detection- part 2- Breusch-Godfrey Test and Durbin's h test
 
Identification problem in simultaneous equations model
Identification problem in simultaneous equations modelIdentification problem in simultaneous equations model
Identification problem in simultaneous equations model
 
Introduction to modern time series analysis
Introduction to modern time series analysisIntroduction to modern time series analysis
Introduction to modern time series analysis
 
Panel data analysis
Panel data analysisPanel data analysis
Panel data analysis
 
Differences-in-Differences
Differences-in-DifferencesDifferences-in-Differences
Differences-in-Differences
 
Panel Data Models
Panel Data ModelsPanel Data Models
Panel Data Models
 
Chapter3 econometrics
Chapter3 econometricsChapter3 econometrics
Chapter3 econometrics
 
Panel data
Panel dataPanel data
Panel data
 
Introduction to time series.pptx
Introduction to time series.pptxIntroduction to time series.pptx
Introduction to time series.pptx
 
Copule slides
Copule slidesCopule slides
Copule slides
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
 
Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
 
Granger Causality
Granger CausalityGranger Causality
Granger Causality
 
Granger causality testing
Granger causality testingGranger causality testing
Granger causality testing
 
Co-integration
Co-integration Co-integration
Co-integration
 
Issues in time series econometrics
Issues in time series econometricsIssues in time series econometrics
Issues in time series econometrics
 

Viewers also liked

Causality models
Causality modelsCausality models
Causality models
Quang Hoang
 
1. df tests
1. df tests1. df tests
1. df tests
Quang Hoang
 
4. standard granger causality
4. standard granger causality4. standard granger causality
4. standard granger causality
Quang Hoang
 
Granger causality test
Granger causality testGranger causality test
Granger causality test
Suniya Sheikh
 
Granger Causality Test: A Useful Descriptive Tool for Time Series Data
Granger Causality Test: A Useful Descriptive Tool for Time  Series DataGranger Causality Test: A Useful Descriptive Tool for Time  Series Data
Granger Causality Test: A Useful Descriptive Tool for Time Series Data
IJMER
 
Gioi thieu thi truong
Gioi thieu thi truongGioi thieu thi truong
Gioi thieu thi truongQuang Hoang
 
Phan tich thong tin
Phan tich thong tinPhan tich thong tin
Phan tich thong tinQuang Hoang
 
IGU_2012_CoIntegration
IGU_2012_CoIntegrationIGU_2012_CoIntegration
IGU_2012_CoIntegration
jpawan33
 
Lecture notes on Johansen cointegration
Lecture notes on Johansen cointegrationLecture notes on Johansen cointegration
Lecture notes on Johansen cointegration
Moses sichei
 
ppt on data collection , processing , analysis of data & report writing
ppt on data collection , processing , analysis of data & report writingppt on data collection , processing , analysis of data & report writing
ppt on data collection , processing , analysis of data & report writing
IVRI
 

Viewers also liked (10)

Causality models
Causality modelsCausality models
Causality models
 
1. df tests
1. df tests1. df tests
1. df tests
 
4. standard granger causality
4. standard granger causality4. standard granger causality
4. standard granger causality
 
Granger causality test
Granger causality testGranger causality test
Granger causality test
 
Granger Causality Test: A Useful Descriptive Tool for Time Series Data
Granger Causality Test: A Useful Descriptive Tool for Time  Series DataGranger Causality Test: A Useful Descriptive Tool for Time  Series Data
Granger Causality Test: A Useful Descriptive Tool for Time Series Data
 
Gioi thieu thi truong
Gioi thieu thi truongGioi thieu thi truong
Gioi thieu thi truong
 
Phan tich thong tin
Phan tich thong tinPhan tich thong tin
Phan tich thong tin
 
IGU_2012_CoIntegration
IGU_2012_CoIntegrationIGU_2012_CoIntegration
IGU_2012_CoIntegration
 
Lecture notes on Johansen cointegration
Lecture notes on Johansen cointegrationLecture notes on Johansen cointegration
Lecture notes on Johansen cointegration
 
ppt on data collection , processing , analysis of data & report writing
ppt on data collection , processing , analysis of data & report writingppt on data collection , processing , analysis of data & report writing
ppt on data collection , processing , analysis of data & report writing
 

Similar to 5. cem granger causality ecm

Bayesian inference for mixed-effects models driven by SDEs and other stochast...
Bayesian inference for mixed-effects models driven by SDEs and other stochast...Bayesian inference for mixed-effects models driven by SDEs and other stochast...
Bayesian inference for mixed-effects models driven by SDEs and other stochast...
Umberto Picchini
 
On estimating the integrated co volatility using
On estimating the integrated co volatility usingOn estimating the integrated co volatility using
On estimating the integrated co volatility using
kkislas
 
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Chiheb Ben Hammouda
 
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMSSOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
Tahia ZERIZER
 
Symmetrical2
Symmetrical2Symmetrical2
Symmetrical2
Senthil Kumar
 
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climate
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climateMartin Roth: A spatial peaks-over-threshold model in a nonstationary climate
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climate
Jiří Šmída
 
Holographic Cotton Tensor
Holographic Cotton TensorHolographic Cotton Tensor
Holographic Cotton Tensor
Sebastian De Haro
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
The Statistical and Applied Mathematical Sciences Institute
 
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
Chiheb Ben Hammouda
 
Nokton theory-en
Nokton theory-enNokton theory-en
Nokton theory-en
saidanilassaad
 
Slides erasmus
Slides erasmusSlides erasmus
Slides erasmus
Arthur Charpentier
 
Recent developments on unbiased MCMC
Recent developments on unbiased MCMCRecent developments on unbiased MCMC
Recent developments on unbiased MCMC
Pierre Jacob
 
Slides ACTINFO 2016
Slides ACTINFO 2016Slides ACTINFO 2016
Slides ACTINFO 2016
Arthur Charpentier
 
Ada boost brown boost performance with noisy data
Ada boost brown boost performance with noisy dataAda boost brown boost performance with noisy data
Ada boost brown boost performance with noisy data
Shadhin Rahman
 
Sequential experimentation in clinical trials
Sequential experimentation in clinical trialsSequential experimentation in clinical trials
Sequential experimentation in clinical trials
Springer
 
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
The Statistical and Applied Mathematical Sciences Institute
 
lec2_CS540_handouts.pdf
lec2_CS540_handouts.pdflec2_CS540_handouts.pdf
lec2_CS540_handouts.pdf
ZineddineALICHE1
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
Frank Nielsen
 
Ma2002 1.23 rm
Ma2002 1.23 rmMa2002 1.23 rm
Ma2002 1.23 rm
Ramakrishna Paduchuri
 
Ichimura 1993: Semiparametric Least Squares (non-technical)
Ichimura 1993: Semiparametric Least Squares (non-technical)Ichimura 1993: Semiparametric Least Squares (non-technical)
Ichimura 1993: Semiparametric Least Squares (non-technical)
The University of Texas at Austin
 

Similar to 5. cem granger causality ecm (20)

Bayesian inference for mixed-effects models driven by SDEs and other stochast...
Bayesian inference for mixed-effects models driven by SDEs and other stochast...Bayesian inference for mixed-effects models driven by SDEs and other stochast...
Bayesian inference for mixed-effects models driven by SDEs and other stochast...
 
On estimating the integrated co volatility using
On estimating the integrated co volatility usingOn estimating the integrated co volatility using
On estimating the integrated co volatility using
 
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
 
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMSSOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
SOLVING BVPs OF SINGULARLY PERTURBED DISCRETE SYSTEMS
 
Symmetrical2
Symmetrical2Symmetrical2
Symmetrical2
 
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climate
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climateMartin Roth: A spatial peaks-over-threshold model in a nonstationary climate
Martin Roth: A spatial peaks-over-threshold model in a nonstationary climate
 
Holographic Cotton Tensor
Holographic Cotton TensorHolographic Cotton Tensor
Holographic Cotton Tensor
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
 
Nokton theory-en
Nokton theory-enNokton theory-en
Nokton theory-en
 
Slides erasmus
Slides erasmusSlides erasmus
Slides erasmus
 
Recent developments on unbiased MCMC
Recent developments on unbiased MCMCRecent developments on unbiased MCMC
Recent developments on unbiased MCMC
 
Slides ACTINFO 2016
Slides ACTINFO 2016Slides ACTINFO 2016
Slides ACTINFO 2016
 
Ada boost brown boost performance with noisy data
Ada boost brown boost performance with noisy dataAda boost brown boost performance with noisy data
Ada boost brown boost performance with noisy data
 
Sequential experimentation in clinical trials
Sequential experimentation in clinical trialsSequential experimentation in clinical trials
Sequential experimentation in clinical trials
 
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
Deep Learning Opening Workshop - Statistical and Computational Guarantees of ...
 
lec2_CS540_handouts.pdf
lec2_CS540_handouts.pdflec2_CS540_handouts.pdf
lec2_CS540_handouts.pdf
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
 
Ma2002 1.23 rm
Ma2002 1.23 rmMa2002 1.23 rm
Ma2002 1.23 rm
 
Ichimura 1993: Semiparametric Least Squares (non-technical)
Ichimura 1993: Semiparametric Least Squares (non-technical)Ichimura 1993: Semiparametric Least Squares (non-technical)
Ichimura 1993: Semiparametric Least Squares (non-technical)
 

5. cem granger causality ecm

  • 1. Data Analysis & Forecasting Faculty of Development Economics TIME SERIES ANALYSIS COINTEGRATION & ERROR CORRECTION VERSION OF GRANGER CAUSALITY (ECM) According to Mehrara (2007), the most popular method for Granger causality tests, is based on ECM, avoiding spurious regression problems. In this procedure, we first investigate whether the two non-stationary series are cointegrated, ie. whether a linear combination of the two series is stationary. Cointegration implies that causality exists between the two series, but it does not indicate the direction of the causal relationship. To test for cointegration between the two series, we use the Johansen test/Johansen approach (Johansen 1988; Johansen and Juselius 1990) based on the maximum eigenvalue and trace statistics, as well as ADF cointegration tests/Engle-Granger (EG) approach developed by Engle-Granger (1987). 1. THE MODEL The Cointegration & Error Correction Version of Granger Causality (or Dynamic Granger Causality or ECM) test for the of two stationary variables ∆Yt and ∆Xt, given that Yt and Xt are cointegrated, involves as a first step the estimation of the following VAR model: n m ∆Yt = α + π y ECTt −1 + ∑ β i ∆Yt −i + ∑ γ j ∆X t − j + u yt (1) i =1 j=1 n m ∆X t = α + π x ECTt −1 + ∑ θ i ∆X t −i + ∑ δ j ∆Yt − j + u xt (2) i =1 j=1 where ECTs are defined as follows: ECTyt-1 = u yt −1 = Yt −1 − B1 − B 2 X t −1 (for equation (1)) ˆ ˆ ˆ (a) ECTxt-1 = u xt −1 = X t −1 − B1 − B 2 Yt =1 (for equation (2)) ˆ ˆ ˆ (b) Important note is the same as the Standard Granger Causality. 2. TEST PROCEDURE Suppose we have Yt and Xt are nonstationary. THE DYNAMIC GRANGER CAUSALITY is performed as follows: Step 1: Testing for the unit root of Yt and Xt (using either DF, ADF, or PP tests) Suppose the test results indicate that both Yt and Xt are I(1). Step 2: Testing for cointegration between Yt and Xt Phung Thanh Binh (2010) 1
  • 2. Data Analysis & Forecasting Faculty of Development Economics (usually use EG or Johansen approach) If Yt and Xt are cointegrated, we can apply either Standard or ECM Version of Granger Causality, depending on our research objectives. However, it’d better to use the later one. In this case, we should obtain the residuals from cointegrating equations (i.e., equations (a) and (b)), and then name these terms as ECTy and ECTx. Step 3: Taking the first differences of Yt and Xt (i.e., Yt and Xt) Step 4: Determining the optimal lag length of Yt and Xt a) Automatically determine the optimal lag length of ∆Yt and ∆Xt in their AR models (using AIC or SIC, see Section 8 of my lecture). n ∆Yt = α + π y ECTyt −1 + ∑ β i ∆Yt −i + u yt (3) i =1 Then estimate (3) by OLS, and obtain the RSS of this regression (which is the restricted one) and label it as RSSRY. n' ∆X t = α + π x ECTxt −1 + ∑ θ i ∆X t −i + u xt (4) i =1 Then estimate (4) by OLS, and obtain the RSS of this regression (which is the restricted one) and label it as RSSRX. b) Manually determine the optimal lag length of ∆Xt (m in equation (1)) and ∆Yt (m in equation (2)), (using AIC or SIC, depending on which one you use in step 4a, see Section 8 of my lecture). n m ∆Yt = α + π y ECTyt −1 + ∑ β i ∆Yt −i + ∑ γ j ∆X t − j + u yt (5) i =1 j=1 Then estimate (5) by OLS, and obtain the RSS of this regression (which is the unrestricted one) and label it as RSSUY. n' m' ∆X t = α + π x ECTxt −1 + ∑ θ i ∆X t −i + ∑ δ j ∆Yt − j + u xt (6) i =1 j=1 Then estimate (6) by OLS, and obtain the RSS of this regression (which is the unrestricted one) and label it as RSSUX. Step 5: Set the null and alternative hypotheses Short-run Granger causality/Weak Granger causality (F-statistic) a) For equation (3) and (5), we set: m H0 : ∑γ j=1 j = 0 or X t does not cause Yt m H1 : ∑γ j=1 j ≠ 0 or X t causes Yt b) For equation (4) and (6), we set: m' H0 : ∑δ j=1 j = 0 or Yt does not cause X t Phung Thanh Binh (2010) 2
  • 3. Data Analysis & Forecasting Faculty of Development Economics m' H1 : ∑δ j=1 j ≠ 0 or Yt causes X t Long-run Granger causality (t statistic) a) For equation (5), we set: H 0 : π y = 0 or Granger non - causality in the long - run H 1 : π y ≠ 0 or Granger causality in the long - run b) For equation (6), we set: H 0 : π x = 0 or Granger non - causality in the long - run H 1 : π x ≠ 0 or Granger causality in the long - run Strong Granger causality (F-statistic) a) For equation (5), we set: m H 0 : π y = ∑ γ j = 0 or X t does not cause Yt j=1 m H 1 : π y ≠ 0 and ∑ γ j ≠ 0 or X t strongly causes Yt j=1 b) For equation (6), we set: m' H 0 : π x = ∑ δ j = 0 or Yt does not causes X t j=1 m' H 1 : π x ≠ 0 and ∑ δ j ≠ 0 or Yt strongly causes X t j=1 Step 6: Calculate the F statistic for the normal Wald test a) For equation (3) and (5), we set: (RSS RY − RSS UY ) / m F= RSS UY /( N − k ) b) For equation (4) and (6), we set: (RSS RX − RSS UX ) / m' F= RSS UX /( N − k ) If the computed F value exceeds the critical F value, reject the null hypothesis and conclude that Xt weakly causes Yt, or Yt weakly causes Xt. Questions: 1. How to calculate the F statistics for strong Granger causality tests? 2. How to explain the test results? Phung Thanh Binh (2010) 3