An Introduction to Error Correction Models (ECMs)

Slides:



Advertisements
Similar presentations
Cointegration and Error Correction Models
Advertisements

Nonstationary Time Series Data and Cointegration
Structural modelling: Causality, exogeneity and unit roots Andrew P. Blake CCBS/HKMA May 2004.
Long run models in economics Professor Bill Mitchell Director, Centre of Full Employment and Equity School of Economics University of Newcastle Australia.
Using SAS for Time Series Data
Use of Business Tendency Survey Results for Forecasting Industry Production in Slovakia Use of Business Tendency Survey Results for Forecasting Industry.
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
COINTEGRATION 1 The next topic is cointegration. Suppose that you have two nonstationary series X and Y and you hypothesize that Y is a linear function.
1 MF-852 Financial Econometrics Lecture 11 Distributed Lags and Unit Roots Roy J. Epstein Fall 2003.
Financial Econometrics
Regression with Time-Series Data: Nonstationary Variables
Introduction to Algorithmic Trading Strategies Lecture 3 Pairs Trading by Cointegration Haksun Li
Vector Error Correction and Vector Autoregressive Models
10 Further Time Series OLS Issues Chapter 10 covered OLS properties for finite (small) sample time series data -If our Chapter 10 assumptions fail, we.
STAT 497 APPLIED TIME SERIES ANALYSIS
Empirical study of causality between Real GDP and Monetary variables. Presented by : Hanane Ayad.
Psychology 202b Advanced Psychological Statistics, II February 10, 2011.
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Unit Root and Cointegration
14 Vector Autoregressions, Unit Roots, and Cointegration.
Youngho Chang Division of Economics Nanyang Technological University
CH5 Overview 1. Agenda 1.History 2.Motivation 3.Cointegration 4.Applying the model 5.A trading strategy 6.Road map for strategy design 2.
Pairs Trading Ch6 Pairs Selection in Equity Markets 郭孟鑫.
Nominal and Real Convergence of Slovak Republic and Poland to Eurozone Rudolf Gavliak, Vladimír Úradníček, Emília Zimková The 5 th Chorzow Conference of.
Oil and the Macroeconomy of Kazakhstan Prepared for the 30 th USAEE North American Conference, Washington DC By Ferhat Bilgin, Ph.D. Student and Fred Joutz.
CH7 Testing For Tradability 1. Agenda 1.Introduction 2.The linear relationship 3.Estimating the linear relationship: The multifactor approach 4.Estimating.
Infrastructure and Long Run Economic Growth David Canning Infrastructure and Growth: Theory, Empirical Evidence and policy Lessons Cape Town May.
Should the CNB Devaluate the Exchange Rate? 23/06/2010 Dubrovnik Marina Tkalec - Maruška Vizek 16 th Young Economists’ Seminar Should the Croatian National.
Academy of Economic Studies Doctoral School of Finance and Banking DISSERTATION PAPER BUDGET DEFICIT AND INFLATION MSc. Student : Marius Serban Supervisor.
Taking the theory to the data: A proposal Romer: Advanced Macroeconomics, Chapter 9: Inflation and Monetary Policy ‘Specific to General’ versus ‘General.
Centre of Full Employment and Equity Slide 2 Short-run models and Error Correction Mechanisms Professor Bill Mitchell Director, Centre of Full Employment.
Cointegration in Single Equations: Lecture 6 Statistical Tests for Cointegration Thomas 15.2 Testing for cointegration between two variables Cointegration.
EC208 – Introductory Econometrics. Topic: Spurious/Nonsense Regressions (as part of chapter on Dynamic Models)
Previously Definition of a stationary process (A) Constant mean (B) Constant variance (C) Constant covariance White Noise Process:Example of Stationary.
Byron Gangnes Econ 427 lecture 23 slides Intro to Cointegration and Error Correction Models.
Cointegration in Single Equations: Lecture 5
Components of Time Series Su, Chapter 2, section II.
Univariate Time series - 2 Methods of Economic Investigation Lecture 19.
Modeling Client Rate and Volumes of Non-maturing Savings Accounts Conference OR 2011, Zürich Florentina Paraschiv.
Econometric methods of analysis and forecasting of financial markets Lecture 4. Cointegration.
Lecture 5 Stephen G. Hall COINTEGRATION. WE HAVE SEEN THE POTENTIAL PROBLEMS OF USING NON-STATIONARY DATA, BUT THERE ARE ALSO GREAT ADVANTAGES. CONSIDER.
1 Lecture Plan : Statistical trading models for energy futures.: Stochastic Processes and Market Efficiency Trading Models Long/Short one.
Maize Price Differences and Evidence of Spatial Integration in Malawi: The Case of Selected Markets BY LOVEMORE NYONGO ICAS VI: RIO DE JANEIRO, BRAZIL.
MONEY SUPPLY AND ECONOMIC GROWTH IN SRI LANKA (An Empirical Re - Examination of Monetarist Concept)
E NTE PER LE N UOVE TECNOLOGIE L’ E NERGIA E L’ A MBIENTE The causality between energy consumption and economic growth: A multi-sectoral analysis using.
The simple linear regression model and parameter estimation
Financial Econometrics Lecture Notes 4
ECO 400 Vector Error Correction Models (VECM)
Monetary Policy and Inventory Investment
Nonstationary Time Series Data and Cointegration
Spurious Regression and Simple Cointegration
An Introduction to Macroeconometrics: VEC and VAR Models
VAR models and cointegration
Ch8 Time Series Modeling
Monetary Policy Transmission Mechanism in Zambia
CHAPTER 16 ECONOMIC FORECASTING Damodar Gujarati
Stock prices and the effective exchange rate of the dollar
COINTEGRATION AND ERROR CORRECTION MODELS
J.-F. Pâris University of Houston
FORECASTING THE LONG TERM AND
Unit Roots 31/12/2018.
Chapter 14 Wiener Processes and Itô’s Lemma
Spurious Regression and Simple Cointegration
Spurious Regression and Simple Cointegration
Unit Root & Augmented Dickey-Fuller (ADF) Test
Introduction to Time Series
Introductory Econometrics for Finance
Tutorial 10 SEG7550.
Lecturer Dr. Veronika Alhanaqtah
Presentation transcript:

An Introduction to Error Correction Models (ECMs)

Outline What is an ECM Stationary and non-stationary data Estimating ECMs ECMs and price transmission analysis

Motivation The ECM is a type of time series model with which we can estimate the speed at which two or more time series return to their common equilibrium following a shock that disturbs this equilibrium The ECM can directly estimate both long-run and short-run effects of one time series on another Thus, ECMs introduce an element of theory to time series analysis, which is often criticized as being theory-free

The basic form of the ECM ∆ 𝑌 𝑡 = 𝛿+𝛾∆ 𝑋 𝑡−1 + 𝛼𝐸𝐶 𝑇 𝑡−1 + 𝜀 𝑡 where ECT is the so-called „error correction term“ which measures deviations from the long-run equilibrium between Y and X ECMs can be estimated with OLS, although other, more sophisticated methods have been developed (e.g. Johansen‘s Maximum Likelihood approach)

Stationary and non-stationary data ECMs are most often estimated using non-stationary time series A stationary time series has a finite mean and variance that do not vary with time* 𝑌 𝑡 = 𝜌 𝑌 𝑡−1 + 𝜀 𝑡 If 0< 𝜌 <1, Y is stationary, otherwise not If 𝜌 >1, then Y „explodes“ – not very plausible in economic settings But what if 𝜌=1? * This is the definition of weak stationarity. Strong stationarity requires that higher order moments also be constant.

The case of 0< 𝜌 <1 𝑌 𝑡 = 𝜌 𝑌 𝑡−1 + 𝜀 𝑡 𝑌 1 = 𝜌 𝑌 0 + 𝜀 1 𝑌 2 = 𝜌 𝑌 1 + 𝜀 2 Therefore 𝑌 2 = 𝜌 (𝜌𝑌 0 + 𝜀 1 )+ 𝜀 2 = 𝜌 2 𝑌 0 + 𝜌 𝜀 1 + 𝜀 2 𝑌 3 = 𝜌 𝑌 2 + 𝜀 2 𝑌 3 = 𝜌(𝜌 (𝜌𝑌 0 + 𝜀 1 )+ 𝜀 2 )+ 𝜀 3 = 𝜌 3 𝑌 0 + 𝜌 2 𝜀 1 + 𝜌 𝜀 2 + 𝜀 3 Ultimately 𝑌 𝑡 = 𝜌 𝑡 𝑌 0 + 𝜌 𝑡−1 𝜀 1 + 𝜌 𝑡−2 𝜀 2 + …+ 𝜌 𝑡−𝑡+1 𝜀 𝑡−1 + 𝜌 𝑡−𝑡 𝜀 𝑡 𝑌 𝑡 = 𝜌 𝑡 𝑌 0 + 𝑖=1 𝑡 𝜌 𝑡−𝑖 𝜀 𝑖

The case of ρ=1 𝑌 𝑡 = 𝑌 𝑡−1 + 𝜀 𝑡 𝑌 1 = 𝑌 0 + 𝜀 1 𝑌 2 = 𝑌 1 + 𝜀 2 Therefore 𝑌 2 = (𝑌 0 + 𝜀 1 )+ 𝜀 2 = 𝑌 0 + 𝜀 1 + 𝜀 2 𝑌 3 = 𝑌 2 + 𝜀 2 𝑌 3 = ( 𝑌 0 + 𝜀 1 + 𝜀 2 )+ 𝜀 3 = 𝑌 0 + 𝜀 1 + 𝜀 2 + 𝜀 3 Ultimately 𝑌 𝑡 = 𝑌 0 + 𝜀 1 + 𝜀 2 + …+ 𝜀 𝑡−1 + 𝜀 𝑡 𝑌 𝑡 = 𝑌 0 + 𝑖=1 𝑡 𝜀 𝑖

Integrated time series When ρ=1 we refer to the series as „integrated“ Recall: 𝑌 𝑡 = 𝑌 0 + 𝑖=1 𝑡 𝜀 𝑖 As the time interval t becomes very short (i.e. we approach continuous time), this approaches an integral – therefore „integrated“ An integrated time series is one type of non-stationary time series A time series is integrated of order d – referred to as I(d) – if it becomes stationary after being differenced d times If 𝑌 𝑡 = 𝑌 0 + 𝑖=1 𝑡 𝜀 𝑖 , then ∆𝑌 𝑡 = (𝑌 𝑡 − 𝑌 𝑡−1 )= 𝜀 𝑡 , which is stationary So the time series 𝑌 𝑡 = 𝜌 𝑌 𝑡−1 + 𝜀 𝑡 with ρ=1 is I(1)

Example with GRETL Generate a random normal series RanY Generate a random normal series RanX Look at graphs of RanY and RanX, what do you see? Now generate the following cumulative sums using the „cum“ command (i.e. with 𝜌=1) 𝑌 𝑡 = 𝑌 𝑡−1 + 𝑅𝑎𝑛𝑌 𝑡 𝑋 𝑡 = 𝑋 𝑡−1 + 𝑅𝑎𝑛𝑋 𝑡 Look at graphs of Y and X , what do you see?

Why does this matter? (I) There are several important differences between I(0) (stationary) and I(1) (integrated) time series I(0) series „forget“ – they have finite memory, the effect of a shock is transitory Recall: 𝑌 𝑡 = 𝜌 𝑡 𝑌 0 + 𝑖=1 𝑡 𝜌 𝑡−𝑖 𝜀 𝑖 Only the most recent shocks affect 𝑌 𝑡 , earlier shocks fade with increasing exponents on 𝜌 I(1) series never forget – they have infinite memory, the effect of a shock is permanent Recall: 𝑌 𝑡 = 𝑌 0 + 𝑖=1 𝑡 𝜀 𝑖 𝑌 𝑡 therefore equals its initial value, plus the sum of all shocks that have occurred since t=0.

Why does this matter? (II) Furthermore, many of the time series that we work with in empirical economic research (for example, many prices) behave as if they were I(1) Go back to the data you generated with GRETL and see for yourself

Why does this matter? (III) Although the theory was not developed until the 1970s and 1980s, it has long been recognized that regression with non-stationary data can lead to „spurious regression“ – i.e. nonsense results Go back to GRETL: Run the regression 𝑅𝑎𝑛𝑌 𝑡 = 𝛽 0 + 𝛽 1 𝑅𝑎𝑛𝑋 𝑡 – what do you expect, what do you get? Run the regression 𝑌 𝑡 = 𝛽 0 + 𝛽 1 𝑋 𝑡 – what do you expect, what do you get? Surprised? With I(1) data, the likelihood of making a Type-II error (rejecting the true null hypothesis that there is no relationship between Y and X ) increases dramatically

Integration and cointegration What we need is a means of distinguishing between spurious regression and a true relationship One formerly popular solution was to analyze I(1) time series in differenced form: ∆𝑌 𝑡 = 𝛽 0 + 𝛽 1 ∆𝑋 𝑡 However, this assumes that X only has short-run effects on Y, and ignores the possibility that they share a long-run relationship If they do share a long-run relationship, estimating an equation in first differences is inefficient When two integrated variables share a long-run equilibrium relationship, they are referred to as cointegrated

Integration, cointegration and random walks (I) Imagine a drunk staggering out of a pub. Each step is a random draw, and is position after t such steps is the sum of these random draws: 𝑌 𝑡 = 𝑖=1 𝑡 𝜀 𝑖 This is sometimes referred to as a random walk – a random walk is an example of an I(1) or integrated, non-stationary time series Imagine a second drunk who leaves the pub at the same time: 𝑋 𝑡 = 𝑖=1 𝑡 𝜀 𝑖 If we regress Y on X (or X on Y) we run the danger of spurious regression. The paths taken by the two drunks are random and independent, but there is a high probability that we will reject that null hypothesis

Integration, cointegration and random walks (II) Now imagine that the first drunk is accompanied by his dog on a leash The leash establishes a „long-run equilibrium” between the drunk and his dog The dog’s path is also a random walk, but it is not independent of the first drunk’s path The drunk and his dog can become more or less separated temporarily But these deviations will be „corrected“ by the leash When we regress the position of the dog (call it Z ) on the position of the drunk, the result will not be spurious

Integration, cointegration and random walks (III) Q: How do we distinguish between the two cases? A: Using the concept of cointegration. We say that two time series are cointegrated if: they are both integrated of the same order, for example if both are I(1) there is a linear combination of the two series that is I(0), i.e. stationary Cointegrated series are non-stationary, but they share a common non-stationarity because they are linked by a long-run relationship that does not permit them to drift too far apart The Granger Representation Theorem states that if two variables are cointegrated, then they must be linked by an ECM

Deriving the ECM (I)

Deriving the ECM (II)

Deriving the ECM (III) ∆ 𝑌 𝑡 = 𝛿+𝛾∆ 𝑋 𝑡−1 + 𝛼𝐸𝐶 𝑇 𝑡−1 + 𝜀 𝑡 ∆ 𝑌 𝑡 = 𝛿+𝛾∆ 𝑋 𝑡−1 + 𝛼𝐸𝐶 𝑇 𝑡−1 + 𝜀 𝑡 where 𝐸𝐶 𝑇 𝑡−1 = 𝑌 𝑡−1 − 𝛽 0 − 𝛽 1 𝑋 𝑡−1 , the deviation from the long-run equilibrium relationship in the previous period Note that the ECM is balanced in the sense that all variables in it are I(0) Therefore, no danger of spurious regression However, all variables in the ECM are I(0) only if Y and X are cointegrated, so that the linear combination 𝐸𝐶𝑇=𝑌− 𝛽 0 − 𝛽 1 𝑋 is I(0) This is essentially the Granger Representation Theorem again: if Y and X are cointegrated, there must be a valid ECM that describes their behavior  if there is a valid ECM for Y and X , they must be cointegrated

The vector error correction model (VECM) What if the drunk’s dog is big and also determines their joint path? In other words, why just one equation for Y as a function of X ? Solution: the VECM 𝛥 𝑌 𝑡 𝛥 𝑋 𝑡 = 𝜑 1 𝜑 2 + 𝛼 1 𝛼 2 𝑌 𝑡−1 − 𝛽 0 − 𝛽 1 𝑋 𝑡−1 + 𝑖=1 𝑘 𝛿 1𝑗 𝜌 1𝑗 𝛿 2𝑗 𝜌 2𝑗 𝛥 𝑌 𝑡−𝑖 𝛥 𝑋 𝑡−𝑖 + 𝜀 1𝑡 𝜀 2𝑡 Or, in price transmission analysis 𝛥 𝑝 𝑡 𝐴 𝛥 𝑝 𝑡 𝐵 = 𝜑 1 𝜑 2 + 𝛼 1 𝛼 2 𝑝 𝑡−1 𝐴 − 𝛽 0 − 𝛽 1 𝑝 𝑡−1 𝐵 + 𝑖=1 𝑘 𝛿 1𝑗 𝜌 1𝑗 𝛿 2𝑗 𝜌 2𝑗 𝛥 𝑝 𝑡−𝑖 𝐴 𝛥 𝑝 𝑡−𝑖 𝐵 + 𝜀 1𝑡 𝜀 2𝑡 Adjustment parameters Coefficient of long-run price transmission

Visualising cointegration in a VECM (I) 𝛥 𝑝 𝑡 𝐴 𝛥 𝑝 𝑡 𝐵 = 𝜑 1 𝜑 2 + 𝛼 1 𝛼 2 𝑝 𝑡−1 𝐴 − 𝛽 0 − 𝛽 1 𝑝 𝑡−1 𝐵 + 𝑖=1 𝑘 𝛿 1𝑗 𝜌 1𝑗 𝛿 2𝑗 𝜌 2𝑗 𝛥 𝑝 𝑡−𝑖 𝐴 𝛥 𝑝 𝑡−𝑖 𝐵 + 𝜀 1𝑡 𝜀 2𝑡 Example, pA is the world market price, pB is the domestic price in a large exporting country pA, pB 0 >0 pB = -0 + pA 0 t0 t1 t2 t3 time

Visualising cointegration in a VECM (I) 𝛥 𝑝 𝑡 𝐴 𝛥 𝑝 𝑡 𝐵 = 𝜑 1 𝜑 2 + 𝛼 1 𝛼 2 𝑝 𝑡−1 𝐴 − 𝛽 0 − 𝛽 1 𝑝 𝑡−1 𝐵 + 𝑖=1 𝑘 𝛿 1𝑗 𝜌 1𝑗 𝛿 2𝑗 𝜌 2𝑗 𝛥 𝑝 𝑡−𝑖 𝐴 𝛥 𝑝 𝑡−𝑖 𝐵 + 𝜀 1𝑡 𝜀 2𝑡 Example, pA is the world market price, pB is the domestic price in a small exporting country pA, pB 0 >0 pB = -0 + pA 0 t0 t1 t2 t3 time

Interpretation 𝛥 𝑝 𝑡 𝐴 𝛥 𝑝 𝑡 𝐵 = 𝜑 1 𝜑 2 + 𝛼 1 𝛼 2 𝑝 𝑡−1 𝐴 − 𝛽 0 − 𝛽 1 𝑝 𝑡−1 𝐵 + 𝑖=1 𝑘 𝛿 1𝑗 𝜌 1𝑗 𝛿 2𝑗 𝜌 2𝑗 𝛥 𝑝 𝑡−𝑖 𝐴 𝛥 𝑝 𝑡−𝑖 𝐵 + 𝜀 1𝑡 𝜀 2𝑡 In most cases we expect 1 to be negative and 2 to be positive to ensure error correction Together, 1 + 2 measure the speed of error correction (always relative to the frequency of the data) Generally we expect 1, 2, and 1 + 2 to be greater than zero and less than one (in price transmission applications)