Cointegration Lecture I: Introduction

Similar documents
ECON 4160, Spring term Lecture 12

Asymptotic theory for cointegration analysis when the cointegration rank is deficient

Multivariate Time Series: Part 4

ECON 4160, Lecture 11 and 12

Estimation and Testing for Common Cycles

Cointegrated VAR s. Eduardo Rossi University of Pavia. November Rossi Cointegrated VAR s Financial Econometrics / 56

Test for Structural Change in Vector Error Correction Models 1

by Søren Johansen Department of Economics, University of Copenhagen and CREATES, Aarhus University

New Introduction to Multiple Time Series Analysis

Y t = ΦD t + Π 1 Y t Π p Y t p + ε t, D t = deterministic terms

UNIVERSITY OF CALIFORNIA, SAN DIEGO DEPARTMENT OF ECONOMICS

Bootstrapping the Grainger Causality Test With Integrated Data

Cointegrated VAR s. Eduardo Rossi University of Pavia. November Rossi Cointegrated VAR s Fin. Econometrics / 31

Explaining Cointegration Analysis: Part II

Vector error correction model, VECM Cointegrated VAR

(Y jz) t (XjZ) 0 t = S yx S yz S 1. S yx:z = T 1. etc. 2. Next solve the eigenvalue problem. js xx:z S xy:z S 1

Residual Autocorrelation Testing for Vector Error Correction Models 1

Numerical Distribution Functions of. Likelihood Ratio Tests for Cointegration. James G. MacKinnon. Alfred A. Haug. Leo Michelis

Introduction to Algorithmic Trading Strategies Lecture 3

Modelling of Economic Time Series and the Method of Cointegration

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

A Bootstrap Test for Causality with Endogenous Lag Length Choice. - theory and application in finance

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8]

Fractional integration and cointegration: The representation theory suggested by S. Johansen

Advanced Econometrics

VAR Models and Cointegration 1

Tests of the Co-integration Rank in VAR Models in the Presence of a Possible Break in Trend at an Unknown Point

The Effects of Ignoring Level Shifts on Systems Cointegration Tests

Lecture 5: Unit Roots, Cointegration and Error Correction Models The Spurious Regression Problem

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

GARCH Models Estimation and Inference

Numerically Stable Cointegration Analysis

A Test of Cointegration Rank Based Title Component Analysis.

Why Segregating Cointegration Test?

Title. Description. var intro Introduction to vector autoregressive models

GARCH Models Estimation and Inference. Eduardo Rossi University of Pavia

Cointegration. Overview and Development

Reliability of inference (1 of 2 lectures)

Darmstadt Discussion Papers in Economics

Economics 536 Lecture 7. Introduction to Specification Testing in Dynamic Econometric Models

Vector autoregressions, VAR

A TIME SERIES PARADOX: UNIT ROOT TESTS PERFORM POORLY WHEN DATA ARE COINTEGRATED

Vector Autoregressive Model. Vector Autoregressions II. Estimation of Vector Autoregressions II. Estimation of Vector Autoregressions I.

SUPPLEMENTARY TABLES FOR: THE LIKELIHOOD RATIO TEST FOR COINTEGRATION RANKS IN THE I(2) MODEL

Statistics and econometrics

Lecture 7: Dynamic panel models 2

A Non-Parametric Approach of Heteroskedasticity Robust Estimation of Vector-Autoregressive (VAR) Models

Vector Auto-Regressive Models

VAR Models and Applications

Market efficiency of the bitcoin exchange rate: applications to. U.S. dollar and Euro

Maximum Likelihood (ML) Estimation

Finite Sample and Optimal Inference in Possibly Nonstationary ARCH Models with Gaussian and Heavy-Tailed Errors

1 Phelix spot and futures returns: descriptive statistics

E 4160 Autumn term Lecture 9: Deterministic trends vs integrated series; Spurious regression; Dickey-Fuller distribution and test

Cointegration, Stationarity and Error Correction Models.

On the robustness of cointegration tests when series are fractionally integrated

Arma-Arch Modeling Of The Returns Of First Bank Of Nigeria

Multivariate Time Series: VAR(p) Processes and Models

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Cointegration. Example 1 Consider the following model: x t + βy t = u t (1) x t + αy t = e t (2) u t = u t 1 + ε 1t (3)

GARCH Models Estimation and Inference

Stationarity and Cointegration analysis. Tinashe Bvirindi

Econometrics II - EXAM Answer each question in separate sheets in three hours

Generalized Reduced Rank Tests using the Singular Value Decomposition

Eksamen på Økonomistudiet 2006-II Econometrics 2 June 9, 2006

Likelihood Ratio Tests of Restrictions on Common Trends Loading Matrices in I(2) VAR Systems

EC821: Time Series Econometrics, Spring 2003 Notes Section 9 Panel Unit Root Tests Avariety of procedures for the analysis of unit roots in a panel

TESTING FOR CO-INTEGRATION

MEI Exam Review. June 7, 2002

EC408 Topics in Applied Econometrics. B Fingleton, Dept of Economics, Strathclyde University

Statistics 910, #5 1. Regression Methods

APPLIED TIME SERIES ECONOMETRICS

Time Series Modeling of Financial Data. Prof. Daniel P. Palomar

Are US Output Expectations Unbiased? A Cointegrated VAR Analysis in Real Time

Økonomisk Kandidateksamen 2004 (II) Econometrics 2 June 14, 2004

Oil price and macroeconomy in Russia. Abstract

Purchasing power parity: A nonlinear multivariate perspective. Abstract

On the Error Correction Model for Functional Time Series with Unit Roots

Empirical Market Microstructure Analysis (EMMA)

Massachusetts Institute of Technology Department of Economics Time Series Lecture 6: Additional Results for VAR s

ASYMPTOTIC NORMALITY OF THE QMLE ESTIMATOR OF ARCH IN THE NONSTATIONARY CASE

Cointegration between Trends and Their Estimators in State Space Models and Cointegrated Vector Autoregressive Models

Formulary Applied Econometrics

Unit roots in vector time series. Scalar autoregression True model: y t 1 y t1 2 y t2 p y tp t Estimated model: y t c y t1 1 y t1 2 y t2

TESTING FOR CO-INTEGRATION PcGive and EViews 1

Econometrics of Panel Data

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

Labor-Supply Shifts and Economic Fluctuations. Technical Appendix

Non-Stationary Time Series and Unit Root Testing

THE TOURIST DEMAND IN THE AREA OF EPIRUS THROUGH COINTEGRATION ANALYSIS

Financial Econometrics

TIME SERIES ANALYSIS. Forecasting and Control. Wiley. Fifth Edition GWILYM M. JENKINS GEORGE E. P. BOX GREGORY C. REINSEL GRETA M.

Department of Agricultural Economics & Agribusiness

THE LONG RUN RELATIONSHIP BETWEEN SAVING AND INVESTMENT IN INDIA

The Size and Power of Four Tests for Detecting Autoregressive Conditional Heteroskedasticity in the Presence of Serial Correlation

Simulating Properties of the Likelihood Ratio Test for a Unit Root in an Explosive Second Order Autoregression

FINANCIAL ECONOMETRICS AND EMPIRICAL FINANCE -MODULE2 Midterm Exam Solutions - March 2015

Properties of estimated characteristic roots

Sample Exam Questions for Econometrics

This chapter reviews properties of regression estimators and test statistics based on

Transcription:

1 Cointegration Lecture I: Introduction Julia Giese Nuffield College julia.giese@economics.ox.ac.uk Hilary Term 2008

2 Outline Introduction Estimation of unrestricted VAR Non-stationarity Deterministic components Appendix: Mis-specification testing

3 Lectures When? Hilary 2008: Week 5-8, Friday 11am - 1pm Where? Seminar Room G What? Four lectures on Cointegration 1. The unrestricted VAR model: Specification and issues with non-stationarity 2. The cointegrated VAR model: Estimation and rank determination 3. The cointegrated VAR model: Identification of long and short run 4. Extensions: I(2), specific to general and general to specific, Global VAR

4 Readings The course will mainly follow Juselius (2006), aiming to provide the theory needed to use the cointegrated VAR model in applied work. More advanced econometric theory is found in Johansen (1996) which is not required except where explicitly referred to. Further readings will be given during the lectures. Hansen, P. and Johansen, S. (1998) Workbook on Cointegration, Oxford: Oxford University Press. Harris, R. (1995) Using Cointegration Analysis in Econometric Modelling. Hemel Hampstead: Prentice Hall. Johansen, S. (1996) Likelihood-based inference in cointegrated vector autoregressive models. Oxford: Oxford University Press. Juselius, K. (2006) The Cointegrated VAR Model - Methodology and Applications. Oxford: Oxford University Press.

5 Other Practicalities Lecture notes: These slides. More detail in Juselius (2006). Office hour: Friday 10-11am, Desk A4, and by arrangement. Exam: One question similar to past years. Many thanks to Bent Nielsen for providing lecture notes on which these are based.

6 Outline Introduction Estimation of unrestricted VAR Non-stationarity Deterministic components Appendix: Mis-specification testing

7 A VAR in levels The unrestricted vector autoregressive (VAR) model of order k with p endogenous variables is given by x t = Π 1 x t 1 +... + Π k x t k + φd t + ε t, t = 1, 2,..., T where x t is a vector of the p variables at time t, Π i are p p matrices of parameters with i = 1,...k, D t a vector of deterministic components with a vector of coefficients φ; and ε t a p 1 vector of errors.

8 Assumptions 1. The VAR(k) model is linear in the parameters. 2. The parameters are constant. 3. The error terms are identically and independently distributed and follow a Gaussian (i.e. Normal) distribution: ε t iid N p (0,Ω), where Ω denotes the variance-covariance matrix of the errors. Need to check these assumptions! Otherwise inference unreliable. See Appendix for details on mis-specification tests.

Maximum likelihood estimation 1 For simplicity, write unrestricted model as x t = B Z t + ε t, where B = (Π 1, Π 2,..., Π k, µ 0 ) and Z t = (x t 1, x t 2,..., x t k, 1), assuming that only have constant, i.e. φd t = 0, and that initial conditions are given. Now consider the log-likelihood function lnl(b, Ω; X) = T p 2 ln(2π) T 1 2 ln Ω 1 2 T (x t B Z t ) Ω 1 (x t B Z t ). t=1 1 See Juselius (2006), Ch. 4.1 9

10 Maximising log-likelihood with respect to B and Ω 1 gives the respective ML estimators: ˆB = T T (Z t Z t) 1 (Z t x t) t=1 = S 1 ZZ S Zx t=1 T ˆΩ = T 1 (x t ˆB Z t )(x t ˆB Z t ) t=1 = S xx S xz S 1 ZZ S Zx where S ZZ = 1 T T t=1 (Z tz t) and S Zx = 1 T T t=1 (Z tx t).

11 Outline Introduction Estimation of unrestricted VAR Non-stationarity Deterministic components Appendix: Mis-specification testing

12 A VECM in differences The VAR(k) model can be expressed as error or vector equilibrium correction model (VECM(k 1)) formulated in differences: x t = Πx t 1 + Γ 1 x t 1 +... + Γ k 1 x t k+1 + φd t + ε t where Π = (I Π 1... Π k ) and Γ i = k j=i+1 Π j. If x t is integrated of order 1 (I(1), i.e. non-stationary), then: x t is stationary; but right hand side contains both stationary and non-stationary processes. Hence Π must have reduced rank: only a stationary linear combination of x t 1 can allow for stationarity of x t. Again, this is testable and we need to look at properties of Π.

The roots of the characteristic polynomial 2 Consider two-dimensional VAR(2): (I Π 1 L Π 2 L 2 )x t = φd t + ε t x t = Π 1 x t 1 + Π 2 x t 2 + φd t + ε t Then, roots of Π(z) = I Π 1 z Π 2 z 2 provide information on stationarity of x t : if the roots of Π(z) are all outside the unit circle, then x t is stationary; if some roots are outside and some on the unit circle, then x t is non-stationary; if any of the roots are inside the unit circle, then x t is explosive. Note that we can also find roots by solving for eigenvalues of companion matrix. These are equal to z 1. 2 See Juselius (2006), Chapters 3.6 and 5.3. 13

Interpreting the Π-matrix 3 unit root Π(1) = 0 Π has reduced rank Since Π is of reduced rank r p, it may be written as: Π = αβ where α and β are p r full-rank matrices. Then: x t = αβ x t 1 + Γ 1 x t 1 +... + Γ k 1 x t k+1 + φd t + ε t (1) β x t 1 is an r 1 vector of stationary cointegrating relations. All variables in (1) are now stationary. α denotes the speed of adjustment to equilibrium. 3 See Juselius (2006), Ch. 5.2. 14

15 Cointegration assumptions Assumptions (A) rank(π) = r p, (B) number of unit roots is p r, (C) remaining r roots are stationary. To see (B) and (C), consider a VAR(1) with no deterministics, and decompose into p r and r space: Ax t = { A ( I p + αβ ) A 1} Ax t 1 + ε t ( ) ( β x t Ip r β β = α ) ( β x t 1 x t 0 I r + β α β x t 1 ) ( β + ε t β ε t ), where β R p (p r) is the orthogonal complement of β such that β β = 0.

16 Now find roots by solving eigenvalue problem using ρi M = 0, where ρ is an eigenvalue of square matrix M: ( 0 = ρi Ip r β p α ) 0 I r + β α = (ρ 1) I p r β α 0 ρi r (I r + β α) = (ρ 1) p r ρi r (I r + β α). Hence there are at least p r unit roots. What about roots of ρi r (I r + β α)? Given assumption B, there are p r unit roots in total, and hence 1 cannot be a root here. This implies β α 0. Given assumption C, there are r stationary roots. Hence the absolute eigenvalues of (I r + β α) are < 1.

Deriving the Granger-Johansen representation 4 Cointegrating relations: Pre-multiply with β : ( β x t ) = β αβ x t 1 + β ε t, then β x t = ( I r + β α ) β x t 1 + β ε t = t 1 ( Ir + β α ) s ( β ) ( ε t s + Ir + β α ) t β x 0 s=0 is approximately stationary if absolute eigenvalues of I r + β α < 1. Common trends: Pre-multiply with α : α x t = ( α α) β x t 1 + α ε t = α ε t and cumulate to see α x t = α 4 See Juselius (2006), Ch. 5.4 t ε s + α x 0 s=1 17

18 Use beautiful identity for Granger-Johansen representation of VAR(1): Theorem x t = (α ( β α ) 1 β + β ( α β ) 1 α )x t α ( β α ) 1 (stationary process) ) ( ) +β α 1 t β (α ε s + α x 0. Given assumptions A,B and C, the Granger-Johansen (or MA) representation of the VAR(k) is given by: x t C s=1 t ε s + C (L)ε t + X 0, s=1 where C = β (α Γβ ) 1 α with Γ = (I Γ 1... Γ k 1 ), β X 0 = 0 and C (L)ε t is a stationary process.

Pulling and pushing forces 5 Figure: The process x t = [b 120 t, b 1 t ] is pushed along the attractor set by the common trends and pulled towards the attractor set by the adjustment coefficients. 5 See Juselius (2006), Ch. 5.5. 19

20 Outline Introduction Estimation of unrestricted VAR Non-stationarity Deterministic components Appendix: Mis-specification testing

Introducing constant and trend 6 Consider the VAR(1) with a trend coefficient µ 1 and constant µ 0 : x t = αβ x t 1 + µ 0 + µ 1 t + ε t. µ 0 and µ 1 may be decomposed into mean and trend of β x t and x t. Using beautiful identity, µ 0 = (α ( β α ) 1 β + β ( α β ) 1 α )µ 0 αβ 0 + γ 0 µ 1 = (α ( β α ) 1 β + β ( α β ) 1 α )µ 1 αβ 1 + γ 1 This gives x t = αβ x t 1 + αβ 0 + αβ 1 t + γ 0 + γ 1 t + ε t = α ( β ) x t 1, β 0, β 1 1 + γ 0 + γ 1 t + ε t t 6 See Juselius (2006), Ch. 6.2 21

Five cases 7 1. µ 1 = µ 0 = 0. No deterministic components in data. 2. µ 1 = γ 0 = 0 but β 0 0. A constant restricted to be in cointegrating relations. 3. µ 1 = 0 but µ 0 is unrestricted. A constant in cointegrating relations, and linear trend in levels. 4. γ 1 = 0 but (γ 0, β 0, β 1 ) 0. A trend restricted to be in cointegrating relations, and unrestricted constant. 5. No restrictions on µ 0 or µ 1. Unrestricted trend and constant. Trend cumulates to quadratic trend in levels. 7 See Juselius (2006), Ch. 6.3. 22

Granger-Johansen representation 8 Inverting the VAR(1) to give the MA form: x t = C = C (ε i + µ 0 + µ 1 i) + C (L)(ε t + µ 0 + µ 1 t) i=1 t ε t + Cµ 0 t + 1 2 Cµ 1t + 1 2 Cµ 1t 2 + C (L)ε t + C (L)µ 0 i=1 +C (L)µ 1 t + X 0 when summing over finite sample 1 to T. But α µ 0t = α αβ 0t + α γ 0t = α γ 0t 1 2 µ 1t = 1 2 (α αβ 1t + α γ 1t) = 1 2 α γ 1t 1 2 µ 1t 2 = 1 2 (α αβ 1t 2 + α γ 1t 2 ) = 1 2 α γ 1t 2 α α 8 See Juselius (2006), Ch. 6.4. 23

24 Then x t = C t ε t + Cγ 0 t + 1 2 Cγ 1t + 1 2 Cγ 1t 2 + C (L)ε t + C (L)µ 0 i=1 +C (L)µ 1 t + X 0 Hence linear trends may originate from three different sources in the VAR model: 1. From the term C (L)µ 1 t of a restricted or unrestricted linear trend µ 1 t. 2. From the term γ 1 t of the unrestricted linear trend µ 1 t. 3. From the term γ 0 t of the unrestricted constant µ 0. More compact the Granger-Johansen is given by: x t = τ 0 + τ 1 t + τ 2 t 2 + C t ε t + C (L)ε t + X 0. i=1

25 Outline Introduction Estimation of unrestricted VAR Non-stationarity Deterministic components Appendix: Mis-specification testing

Test for lag length 9 Fit model of order k + 1 X t = A 1 X t 1 + + A k X t k + A k+1 X t k 1 + ε t Compute likelihood ratio (LR) to test A k+1 = 0: LR(H k H k+1 ) = 2 ln Q(H k /H k+1 ) = T(ln ˆΩ k ln ˆΩ k+1 ), (2) where H k is null hypothesis of k lags, while H k+1 is alternative hypothesis that k + 1 lags are needed. Then LR D χ 2 (p 2 ). 9 See Juselius (2006), Ch. 4.3.2, and Lütkepohl (1991), Nielsen (2001) 26

Test for residual autocorrelation 10 Regress estimated VAR residuals on k lagged variables and j th lagged VAR residual: ˆε t = A 1 X t 1 + + A k X t k + A εˆε t j + ε t. We want ˆε t ε t and use a Lagrange Multiplier (LM) test (calculated as a Wilks ratio test) with a small-sample correction: ( ) LM(j) = (T p(k + 1) 1 2 )ln Ω(j), ˆΩ which is approximately distributed as χ 2 with p 2 degrees of freedom. 10 See Juselius (2006), Ch. 4.3.3. 27

Test for ARCH 11 Compute R 2 from auxiliary regression ˆε 2 i,t = γ 0 + m γ jˆε 2 i,t j + u i,t. j=1 If R 2 = 1 ũ 2 i,t / [ˆε 2 i,t avg t(ˆε 2 i,t )]2 is small, variances are likely not autocorrelated. The m th order ARCH test is calculated as (T + k m) R 2, where T is sample size and k the lag length in VAR, and (T + k m) R 2 D χ 2 (m). Note that Rahbek et al. (2002) have shown that the cointegration rank tests are robust against moderate residual ARCH effects. 11 See Juselius (2006), Ch. 4.3.4, and Engle (1982). 28

Test for normality 12 Fit model of order k, and check third and fourth moments of residuals (no skewness and kurtosis of 3 for normality). Calculate: T T skewness i = T 1 (ˆε i /ˆσ i ) 3 t, and kurtosis i = T 1 (ˆε i /ˆσ i ) 4 t t=1 The test statistic is calculated and asymptotically distributed as t=1 η as i = T 6 (skewness i) 2 + T 24 (kurtosis i 3) 2 a χ 2 (2). If the sample is large, one can use the asymptotic multivariate test: p mηi as = ηi as a χ 2 (2p). i=i But in small samples skewness and kurtosis are neither asymptotically normal nor independent and one needs to use transformations. 12 See Juselius (2006), Ch. 4.3.5, and Doornik and Hansen (1994) 29

30 Exercises Derive log-likelihood function and estimators of unrestricted VAR in matrix notation. Show lnl max = 1 2 Tln ˆΩ + constants. Derive expression for τ 0 in Granger-Johansen representation when k = 1. Exam 2007, Question 6 (i),(ii). Exam 2006, Question 5 (i)-(iii). Exam 2002, Question 7. Exercise 3.8, Johansen (1996). Exercise 4.1, Johansen (1996). Exercise 4.6, Johansen (1996). Exercise 4.12, 1.-3., Johansen (1996). Exercise 5.1, Johansen (1996). Exercise 6.1, 1., 2., Johansen (1996).

31 References Engle, R.F. (1982) Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation. Econometrica 50, 987-1008. Doornik, J.A. and Hansen, H. (1994) An omnibus test for univariate and multivariate normality. Nuffield College economics preprint No. 91. Lütkepohl, H. (1991) Introduction to Multiple Time Series Analysis. Berlin: Springer-Verlag. Nielsen, B. (2001). Order determination in general vector autoregressions. Discussion Paper. (and Exam 2001, 7) Rahbek, A., Hansen, E., and Dennis, J.G. (2002) ARCH innovations and their impact on cointegration rank testing. Preprint no. 12, 1998, Department of Theoretical Statistics. Working paper no. 22, Centre for Analytical Finance.