VAR Models and Cointegration 1

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

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

ECON 4160, Lecture 11 and 12

ECON 4160, Spring term Lecture 12

Vector error correction model, VECM Cointegrated VAR

Multivariate Time Series: Part 4

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

Modelling of Economic Time Series and the Method of Cointegration

Introduction to Algorithmic Trading Strategies Lecture 3

Advanced Econometrics

Multivariate Time Series: VAR(p) Processes and Models

Test for Structural Change in Vector Error Correction Models 1

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

A Test of Cointegration Rank Based Title Component Analysis.

07 Multivariate models: Granger causality, VAR and VECM models. Andrius Buteikis,

Cointegration Introduction. This is page 429 Printer: Opaque this

Cointegration Lecture I: Introduction

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)

Vector Auto-Regressive Models

VAR Models and Applications

The Effects of Ignoring Level Shifts on Systems Cointegration Tests

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

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

TESTING FOR CO-INTEGRATION

Questions and Answers on Unit Roots, Cointegration, VARs and VECMs

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

Lecture 8a: Spurious Regression

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Non-Stationary Time Series and Unit Root Testing

Estimation and Testing for Common Cycles

TESTING FOR CO-INTEGRATION PcGive and EViews 1

Non-Stationary Time Series and Unit Root Testing

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

Multivariate forecasting with VAR models

Moreover, the second term is derived from: 1 T ) 2 1

Numerically Stable Cointegration Analysis

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

If there are multiple cointegrating relationships, there may be multiple

Econometrics II. Seppo Pynnönen. January 14 February 27, Department of Mathematics and Statistics, University of Vaasa, Finland

Modeling Long-Run Relationships

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

Bootstrapping the Grainger Causality Test With Integrated Data

Cointegration and Error-Correction

Non-Stationary Time Series and Unit Root Testing

Lecture 8a: Spurious Regression

(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

Notes on Time Series Modeling

Final Exam November 24, Problem-1: Consider random walk with drift plus a linear time trend: ( t

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

Asymptotic theory for cointegration analysis when the cointegration rank is deficient

Econometrics. Week 11. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Multivariate Time Series

QED. Queen s Economics Department Working Paper No. 1273

Econ 583 Homework 7 Suggested Solutions: Wald, LM and LR based on GMM and MLE

[y i α βx i ] 2 (2) Q = i=1

Testing Error Correction in Panel data

7. Integrated Processes

Stationarity and Cointegration analysis. Tinashe Bvirindi

Econometric Methods for Panel Data

Switching Regime Estimation

7. Integrated Processes

E 4101/5101 Lecture 9: Non-stationarity

Empirical Market Microstructure Analysis (EMMA)

The Number of Bootstrap Replicates in Bootstrap Dickey-Fuller Unit Root Tests

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

Time Series Forecasting Model for Chinese Future Marketing Price of Copper and Aluminum

Stock Prices, News, and Economic Fluctuations: Comment

1 Phelix spot and futures returns: descriptive statistics

Testing for non-stationarity

Oil price and macroeconomy in Russia. Abstract

Lecture 7a: Vector Autoregression (VAR)

Volume 03, Issue 6. Comparison of Panel Cointegration Tests

Recent Advances in Cointegration Analysis

Residual Autocorrelation Testing for Vector Error Correction Models 1

1 Regression with Time Series Variables

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

Consider the trend-cycle decomposition of a time series y t

Discussion Papers in Economics and Econometrics

Further results on weak-exogeneity in vector error correction models

Modelling Electricity Demand in New Zealand

THE LONG-RUN DETERMINANTS OF MONEY DEMAND IN SLOVAKIA MARTIN LUKÁČIK - ADRIANA LUKÁČIKOVÁ - KAROL SZOMOLÁNYI

Cointegration Tests Using Instrumental Variables with an Example of the U.K. Demand for Money

Stationary and nonstationary variables

New Introduction to Multiple Time Series Analysis

Unit Root and Cointegration

Lecture 7a: Vector Autoregression (VAR)

Models of Stationary & Non-Stationary Time Series

Out of Bounds? Testing for Long Run Relationships under Uncertainty Over Univariate Dynamics

A Modified Information Criterion for Cointegration Tests based on a VAR Approximation

QED. Queen s Economics Department Working Paper No Improved Likelihood Ratio Tests for Cointegration Rank in the VAR Model

Title. Description. var intro Introduction to vector autoregressive models

Generalized Reduced Rank Tests using the Singular Value Decomposition

MA Advanced Econometrics: Applying Least Squares to Time Series

The purpose of this section is to derive the asymptotic distribution of the Pearson chi-square statistic. k (n j np j ) 2. np j.

Univariate Nonstationary Time Series 1

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

Statistics 910, #5 1. Regression Methods

Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay Midterm

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

Linear models and their mathematical foundations: Simple linear regression

Transcription:

VAR Models and Cointegration 1 Sebastian Fossati University of Alberta 1 These slides are based on Eric Zivot s time series notes available at: http://faculty.washington.edu/ezivot

The Cointegrated VAR In a series of important papers Soren Johansen firmly roots cointegration and error correction models in a vector autoregression framework. Consider the levels VAR(p) for the (n 1) vector Y t Y t = ΦD t + Π 1 Y t 1 + + Π p Y t p + ε t, t = 1,..., T D t = deterministic terms 2 / 64

The VAR(p) model is stable if det(i n Π 1 z Π p z p ) = 0 has all roots outside the complex unit circle. If there are roots on the unit circle then some or all of the variables in Y t are I (1) and they may also be cointegrated. If Y t is cointegrated then the VAR representation is not the most suitable representation for analysis because the cointegrating relations are not explicitly apparent. 3 / 64

The cointegrating relations become apparent if the levels VAR is transformed to the vector error correction model (VECM) Y t = ΦD t + ΠY t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t Π = Π 1 +... + Π p I n p Γ k = Π j, k = 1,..., p 1 j=k+1 In the VECM, Y t and its lags are I (0). The term ΠY t 1 is the only one which includes potential I (1) variables and for Y t to be I (0) it must be the case that ΠY t 1 is also I (0). Therefore, ΠY t 1 must contain the cointegrating relations if they exist. If the VAR(p) process has unit roots (z = 1) then det(i n Π 1... Π p ) = 0 det(π) = 0 Π is singular 4 / 64

If Π is singular then it has reduced rank; that is rank(π) = r < n. There are two cases to consider: 1. rank(π) = 0. This implies that Π = 0 Y t I (1) and not cointegrated The VECM reduces to a VAR(p 1) in first differences Y t = ΦD t +Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t 5 / 64

2. 0 < rank(π) = r < n. This implies that Y t is I (1) with r linearly independent cointegrating vectors and n r common stochastic trends (unit roots). Since Π has rank r it can be written as the product Π = (n n) α β (n r)(r n) where α and β are (n r) matrices with rank(α) = rank(β) = r. The rows of β form a basis for the r cointegrating vectors and the elements of α distribute the impact of the cointegrating vectors to the evolution of Y t. The VECM becomes Y t = ΦD t + αβ Y t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t, where β Y t 1 I (0) since β is a matrix of cointegrating vectors. 6 / 64

Non-uniqueness It is important to recognize that the factorization Π = αβ is not unique since for any r r nonsingular matrix H we have αβ = αhh 1 β = (ah)(βh 1 ) = a β Hence the factorization Π = αβ only identifies the space spanned by the cointegrating relations. To obtain unique values of α and β requires further restrictions on the model. 7 / 64

Example: A bivariate cointegrated VAR(1) model Consider the bivariate VAR(1) model for Y t = (y 1t, y 2t ) The VECM is Y t = Π 1 Y t 1 + ɛ t Y t = ΠY t 1 + ε t Π = Π 1 I 2 Assuming Y t is cointegrated there exists a 2 1 vector β = (β 1, β 2 ) such that β Y t = β 1 y 1t + β 2 y 2t I (0) Using the normalization β 1 = 1 and β 2 = β the cointegrating relation becomes β Y t = y 1t βy 2t This normalization suggests the stochastic long-run equilibrium relation y 1t = βy 2t + u t 8 / 64

Since Y t is cointegrated with one cointegrating vector, rank(π) = 1 so that ( ) ( ) Π = αβ α ( ) 1 α 1 α 1 β = 1 β = α 2 β α 2 The elements in the vector α are interpreted as speed of adjustment coefficients. The cointegrated VECM for Y t may be rewritten as α 2 Y t = αβ Y t 1 + ε t Writing the VECM equation by equation gives y 1t = α 1 (y 1t 1 βy 2t 1 ) + ε 1t y 2t = α 2 (y 1t 1 βy 2t 1 ) + ε 2t The stability conditions for the bivariate VECM are related to the stability conditions for the disequilibrium error β Y t. 9 / 64

It is straightforward to show that β Y t follows an AR(1) process β Y t = (1 + β α)β Y t 1 + β ε t or u t = φu t 1 + v t, u t = β Y t φ = 1 + β α = 1 + (α 1 βα 2 ) v t = β ε t = u 1t βu 2t The AR(1) model for u t is stable as long as φ = 1 + (α 1 βα 2 ) < 1 For example, suppose β = 1. Then the stability condition is φ = 1 + (α 1 α 2 ) < 1 which is satisfied if α 1 α 2 < 0 and α 1 α 2 > 2. 10 / 64

Johansen s Methodology for Modeling Cointegration The basic steps in Johansen s methodology are: Specify and estimate a VAR(p) model for Y t. Construct likelihood ratio tests for the rank of Π to determine the number of cointegrating vectors. If necessary, impose normalization and identifying restrictions on the cointegrating vectors. Given the normalized cointegrating vectors estimate the resulting cointegrated VECM by maximum likelihood. 11 / 64

LR Tests for the Number of Cointegrating Vectors The unrestricted cointegrated VECM is denoted H(r). The I (1) model H(r) can be formulated as the condition that the rank of Π is less than or equal to r. This creates a nested set of models H(0) H(r) H(n) H(0) = non-cointegrated VAR H(n) = stationary VAR(p) This nested formulation is convenient for developing a sequential procedure to test for the number r of cointegrating relationships. 12 / 64

Remarks: Since the rank of the long-run impact matrix Π gives the number of cointegrating relationships in Y t, Johansen formulates likelihood ratio (LR) statistics for the number of cointegrating relationships as LR statistics for determining the rank of Π. These LR tests are based on the estimated eigenvalues ˆλ 1 > ˆλ 2 > > ˆλ n of the matrix Π. These eigenvalues also happen to equal the squared canonical correlations between Y t and Y t 1 corrected for lagged Y t and D t and so lie between 0 and 1. Recall, the rank of Π is equal to the number of non-zero eigenvalues of Π. 13 / 64

Johansen s Trace Statistic Johansen s LR statistic tests the nested hypotheses H 0 (r) : r = r 0 vs. H 1 (r 0 ) : r > r 0 The LR statistic, called the trace statistic, is given by n LR trace (r 0 ) = T ln(1 ˆλ i ) i=r 0+1 If rank(π) = r 0 then ˆλ r0+1,..., ˆλ n should all be close to zero and LR trace (r 0 ) should be small since ln(1 ˆλ i ) 0 for i > r 0. In contrast, if rank(π) > r 0 then some of ˆλ r0+1,..., ˆλ n will be nonzero (but less than 1) and LR trace (r 0 ) should be large since ln(1 ˆλ i ) << 0 for some i > r 0. 14 / 64

The asymptotic null distribution of LR trace (r 0 ) is not chi-square but instead is a multivariate version of the Dickey-Fuller unit root distribution which depends on the dimension n r 0 and the specification of the deterministic terms. Critical values for this distribution are tabulated in Osterwald-Lenum (1992) for n r 0 = 1,..., 10. 15 / 64

Determining the Number of Cointegrating Vectors A sequential procedure is used to determine the number of cointegrating vectors: 1. First test H 0 (r 0 = 0) against H 1 (r 0 > 0). If this null is not rejected then it is concluded that there are no cointegrating vectors among the n variables in Y t. 2. If H 0 (r 0 = 0) is rejected then it is concluded that there is at least one cointegrating vector and proceed to test H 0 (r 0 = 1) against H 1 (r 0 > 1). If this null is not rejected then it is concluded that there is only one cointegrating vector. 3. If the H 0 (r 0 = 1) is rejected then it is concluded that there is at least two cointegrating vectors. 4. The sequential procedure is continued until the null is not rejected. 16 / 64

Johansen s Maximum Eigenvalue Statistic Johansen also derives a LR statistic for the hypotheses H 0 (r 0 ) : r = r 0 vs. H 1 (r 0 ) : r 0 = r 0 + 1 The LR statistic, called the maximum eigenvalue statistic, is given by LR max (r 0 ) = T ln(1 ˆλ r0+1) As with the trace statistic, the asymptotic null distribution of LR max (r 0 ) is not chi-square but instead is a complicated function of Brownian motion, which depends on the dimension n r 0 and the specification of the deterministic terms. Critical values for this distribution are tabulated in Osterwald-Lenum (1992) for n r 0 = 1,..., 10. 17 / 64

Specification of Deterministic Terms Following Johansen (1995), the deterministic terms in are restricted to the form ΦD t = µ t = µ 0 + µ 1 t If the deterministic terms are unrestricted then the time series in Y t may exhibit quadratic trends and there may be a linear trend term in the cointegrating relationships. Restricted versions of the trend parameters µ 0 and µ 1 limit the trending nature of the series in Y t. The trend behavior of Y t can be classified into five cases: 18 / 64

1. Model H 2 (r): µ t = 0 (no constant): Y t = αβ Y t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t and all the series in Y t are I (1) without drift and the cointegrating relations β Y t have mean zero. 2. Model H 1 (r): µ t = µ 0 = αρ 0 (restricted constant): Y t = α(β Y t 1 + ρ 0 ) + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t the series in Y t are I (1) without drift and the cointegrating relations β Y t have non-zero means ρ 0. 3. Model H 1 (r): µ t = µ 0 (unrestricted constant): Y t = µ 0 + αβ Y t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t the series in Y t are I (1) with drift vector µ 0 and the cointegrating relations β Y t may have a non-zero mean. 19 / 64

4. Model H (r): µ t = µ 0 + αρ 1 t (restricted trend). The restricted VECM is Y t = µ 0 + α(β Y t 1 + ρ 1 t) + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t the series in Y t are I (1) with drift vector µ 0 and the cointegrating relations β Y t have a linear trend term ρ 1 t. 5. Model H(r): µ t = µ 0 + µ 1 t (unrestricted constant and trend). The unrestricted VECM is Y t = µ 0 + µ 1 t + αβ Y t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t the series in Y t are I (1) with a linear trend (quadratic trend in levels) and the cointegrating relations β Y t have a linear trend. 20 / 64

Simulated Y t from Bivariate Cointegrated VECM Case 1: No constant Case 2: Restricted constant 8 4 0 4 5 0 5 10 0 50 100 150 200 Time Case 3: Unrestricted constant 0 50 100 150 200 Time Case 4: Restricted trend 40 80 120 40 80 120 0 50 100 150 200 Time 0 50 100 150 200 Time Case 5: Unrestricted trend 500 2000 0 50 100 150 200 Time 21 / 64

Simulated β Y t from Bivariate Cointegrated VECM Case 1: No constant Case 2: Restricted constant 3 1 1 3 5 7 9 11 0 50 100 150 200 Time Case 3: Unrestricted constant 0 50 100 150 200 Time Case 4: Restricted trend 4 6 8 10 10 20 30 0 50 100 150 200 Time 0 50 100 150 200 Time Case 5: Unrestricted trend 15 5 0 0 50 100 150 200 Time 22 / 64

Johansen s Cointegration Tests in R The package urca includes functions for cointegration analysis based on Johansen s methods. > ca.jo function (x, type = c("eigen", "trace"), ecdet = c("none", "const", "trend"), K = 2, spec = c("longrun", "transitory"),...) Note: This function considers 3 specifications for the deterministic term: none corresponds to case 1, i.e. no constant const corresponds to case 2, i.e. restricted constant trend corresponds to case 4, i.e. restricted trend K is the number of lags for the VAR in levels, so K 1 is the number of lags in the VECM representation 23 / 64

Example 1: Testing for Cointegration Simulated data set 1: y 1t = y 2t + u t, u t = 0.75u t 1 + ε 1t y 2t = y 2t 1 + ε 2t ε it iid N(0, (0.5) 2 ) for i = 1, 2 > # Example (1) bivariate cointegrated system > nobs <- 250 > e <- rmvnorm(n=nobs,sigma=diag(c(.5,.5))) > u.ar1 <- arima.sim(model=list(ar=.75),nobs,innov=e[,1]) > y2 <- cumsum(e[,2]) > y1 <- y2 + u.ar1 > data1 <- cbind(y1,y2) 24 / 64

Example 1: Trace Statistic > # trace statistic > test1 <- ca.jo(data1,ecdet="const",type="trace",k=2,spec="transitory") > summary(test1) Test type: trace statistic, without linear trend and constant in cointeg Eigenvalues (lambda): [1] 8.231476e-02 1.776963e-02-2.951772e-20 Values of teststatistic and critical values of test: test 10pct 5pct 1pct r <= 1 4.45 7.52 9.24 12.97 r = 0 25.75 17.85 19.96 24.60 Test finds 1 cointegrating vector 25 / 64

Example 1: Max Eigenvalue Statistic > # max eigenvalue statistic > test2 <- ca.jo(data1,ecdet="const",type="eigen",k=2,spec="transitory") > summary(test2) Test type: maximal eigenvalue statistic (lambda max), without linear tre Eigenvalues (lambda): [1] 8.231476e-02 1.776963e-02-2.951772e-20 Values of teststatistic and critical values of test: test 10pct 5pct 1pct r <= 1 4.45 7.52 9.24 12.97 r = 0 21.30 13.75 15.67 20.20 Test finds 1 cointegrating vector 26 / 64

Example 2: Testing for Cointegration Simulated data set 2: y t1 = 0.5y 2t + 0.5y 3t + u t, u t = 0.75u t 1 + ε 1t y 2t = y 2t 1 + ε 2t y 3t = y 3t 1 + ε 3t ε it iid N(0, (0.5) 2 ) for i = 1, 2, 3 > # Example (2) trivariate cointegrated system (1 coint vector) > nobs <- 250 > e <- rmvnorm(n=nobs,sigma=diag(c(.5,.5,.5))) > u.ar1 <- arima.sim(model=list(ar=.75),nobs,innov=e[,1]) > y2 <- cumsum(e[,2]) > y3 <- cumsum(e[,3]) > y1 <-.5*y2 +.5*y3 + u.ar1 > data2 <- cbind(y1,y2,y3) 27 / 64

Example 2: Trace Statistic > # trace statistic > test1 <- ca.jo(data2,ecdet="const",type="trace",k=2,spec="transitory") > summary(test1) Test type: trace statistic, without linear trend and constant in cointeg Eigenvalues (lambda): [1] 1.473355e-01 1.784372e-02 1.016651e-02 3.564194e-18 Values of teststatistic and critical values of test: test 10pct 5pct 1pct r <= 2 2.53 7.52 9.24 12.97 r <= 1 7.00 17.85 19.96 24.60 r = 0 46.53 32.00 34.91 41.07 Test finds 1 cointegrating vector 28 / 64

Example 3: Testing for Cointegration Simulated data set 3: y 1t = y 3t + u t, u t = 0.75u t 1 + ε 1t y 2t = y 3t + v t, v t = 0.75v t 1 + ε 2t y 3t = y 3t 1 + ε 3t ε it iid N(0, (0.5) 2 ) for i = 1, 2, 3 > # Example (3) trivariate cointegrated system (2 coint vectors) > nobs <- 250 > e <- rmvnorm(n=nobs,sigma=diag(c(.5,.5,.5))) > u.ar1 <- arima.sim(model=list(ar=.75),nobs,innov=e[,1]) > v.ar1 <- arima.sim(model=list(ar=.75),nobs,innov=e[,2]) > y3 <- cumsum(e[,3]) > y1 <- y3 + u.ar1 > y2 <- y3 + v.ar1 > data3 <- cbind(y1,y2,y3) 29 / 64

Example 3: Trace Statistic > # trace statistic > test1 <- ca.jo(data3,ecdet="const",type="trace",k=2,spec="transitory") > summary(test1) Test type: trace statistic, without linear trend and constant in cointeg Eigenvalues (lambda): [1] 1.271274e-01 8.669117e-02 1.631739e-02-3.400303e-18 Values of teststatistic and critical values of test: test 10pct 5pct 1pct r <= 2 4.08 7.52 9.24 12.97 r <= 1 26.57 17.85 19.96 24.60 r = 0 60.29 32.00 34.91 41.07 Test finds 2 cointegrating vectors 30 / 64

Maximum Likelihood Estimation of the VECM If it is found that rank(π) = r, 0 < r < n, then the cointegrated VECM Y t = ΦD t + αβ Y t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t becomes a reduced rank multivariate regression. Johansen derived the maximum likelihood estimation of the parametes under the reduced rank restriction rank(π) = r (see Hamilton for details). He shows that ˆβ mle = (ˆv 1,..., ˆv r ), where ˆv i are the eigenvectors associated with the eigenvalues ˆλ i The MLEs of the remaining parameters are obtained by least squares estimation of Y t = ΦD t + α ˆβ mley t 1 + Γ 1 Y t 1 +... + Γ p 1 Y t p+1 + ε t 31 / 64

Normalized Estimates of α and β The factorization ˆΠ mle = ˆα mle ˆβ mle is not unique. The columns of ˆβ mle may be interpreted as linear combinations of the underlying cointegrating relations. For interpretations, it is often convenient to normalize or identify the cointegrating vectors by choosing a specific coordinate system in which to express the variables. 32 / 64

Johansen s normalized MLE An arbitrary normalization, suggested by Johansen, is to solve for the triangular representation of the cointegrated system. The resulting normalized cointegrating vector is denoted ˆβ c,mle. The normalization of the MLE for β to ˆβ c,mle will affect the MLE of α but not the MLEs of the other parameters in the VECM. Let ˆβ c,mle denote the MLE of the normalized cointegrating matrix β c. Johansen (1995) showed that T (vec( ˆβ c,mle ) vec(β c )) is asymptotically (mixed) normally distributed. ˆβ c,mle is super consistent. 33 / 64

Testing Linear Restrictions on β The Johansen MLE procedure only produces an estimate of the basis for the space of cointegrating vectors. It is often of interest to test if some hypothesized cointegrating vector lies in the space spanned by the estimated basis: H 0 : β = (r n) ( β 0 φ β 0 = s n matrix of hypothesized cv s ) φ = (r s) n matrix of remaining unspecified cv s Result: Johansen (1995) showed that a likelihood ratio statistic can be computed, which is asymptotically distributed as a χ 2 with s(n r) degrees of freedom. 34 / 64

Example 1 continued... The test statistics found 1 cointegrating vector, i.e. r = 1. The function cajorls (urca package) estimates the restricted VECM. > # estimate restricted VECM > model1 <- cajorls(test1,r=1) > print(model1) $rlm $beta ect1 y1.l1 1.0000000 y2.l1-1.0034079 constant -0.1291761 Note that the β coefficients closely match those in the DGP 35 / 64

Restricted VECM Response y1.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1-0.21032 0.05790-3.632 0.000342 *** y1.dl1-0.13811 0.08981-1.538 0.125395 y2.dl1 0.17801 0.12538 1.420 0.156953 Residual standard error: 0.9916 on 245 degrees of freedom Multiple R-squared: 0.08232, Adjusted R-squared: 0.07108 F-statistic: 7.326 on 3 and 245 DF, p-value: 0.0001008 Note that y 1t depends on the cointegrating vector 36 / 64

Restricted VECM Response y2.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1-0.01956 0.04247-0.461 0.645 y1.dl1-0.06557 0.06588-0.995 0.321 y2.dl1 0.06573 0.09197 0.715 0.475 Residual standard error: 0.7274 on 245 degrees of freedom Multiple R-squared: 0.006811, Adjusted R-squared: -0.005351 F-statistic: 0.56 on 3 and 245 DF, p-value: 0.6419 Note that y 2t does not depend on the cointegrating vector 37 / 64

Testing Restrictions on β Hypotheses on the long-run coefficients β can be formulated in terms of linear restrictions on β: H 0 : R β = 0 or β = BΨ where Ψ are the unknown parameters in the cointegrating vectors β, B = R and R is the orthogonal complement of R such that R R = 0. 38 / 64

Testing Restrictions on β Suppose we want to test whether the cointegrating vector is β = (1, 1) without imposing any restrictions on the intercept. With the notation β = (β, β 3 ) = (β 1, β 2, β 3 ) the hypothesis becomes β 1 = β 2. Note that the vector β is typically normalized such that β 1 = 1. In terms of the parameterization β = BΨ, the matrix B is given by B = 1 0 1 0 0 1 and Ψ = (ψ 1, ψ 2 ) such that BΨ = (ψ 1, ψ 1, ψ 2 ). In terms of the parameterization R β = 0, the matrix R is given by R = (1, 1, 0) which implies β 1 + β 2 = 0 and β 3 unrestricted. Note that R B = 0. 39 / 64

Testing Restrictions on β > B1 <- matrix(c(1,-1,0,0,0,1),nrow=3) > B1 [,1] [,2] [1,] 1 0 [2,] -1 0 [3,] 0 1 > R <- Null(B1) > R [,1] [1,] -0.7071068 [2,] -0.7071068 [3,] 0.0000000 The test can be performed by passing the matrix B to the test function 40 / 64

Testing Restrictions on β > # test restrictions on beta > test3 <- blrtest(z=test1,h=b1,r=1) > summary(test3) Estimation and testing under linear restrictions on beta Eigenvalues of restricted VAR (lambda): [1] 0.0823 0.0022 The value of the likelihood ratio test statistic: 0 distributed as chi square with 1 df. The p-value of the test statistic is: 0.96 The restrictions are not rejected 41 / 64

Estimate VECM with Restrictions on β > # estimate VECM with beta restrictions > model2 <- cajorls(test3,r=1) > print(model2) $rlm $beta ect1 y1.l1 1.0000000 y2.l1-1.0000000 constant -0.1040501 The estimated cointegrating vector now satisfies the imposed restriction: β 1 + β 2 = 0 while the intercept remains unrestricted 42 / 64

Testing Restrictions on β Suppose we want to test whether the cointegrating vector is β = (1, 1) with no intercept, i.e we want R β = 0 such that β 1 + β 2 = 0 and β 3 = 0. > B2 <- matrix(c(1,-1,0),nrow=3) > B2 [,1] [1,] 1 [2,] -1 [3,] 0 > R <- Null(B2) > R [,1] [,2] [1,] 0.7071068 0 [2,] 0.7071068 0 [3,] 0.0000000 1 43 / 64

Testing Restrictions on β > # test restrictions on beta > test4 <- blrtest(z=test1,h=b2,r=1) > summary(test4) Estimation and testing under linear restrictions on beta Eigenvalues of restricted VAR (lambda): [1] 0.0816 The value of the likelihood ratio test statistic: 0.2 distributed as chi square with 2 df. The p-value of the test statistic is: 0.91 The restrictions are not rejected 44 / 64

Estimate VECM with Restrictions on β > # estimate VECM with beta restrictions > model3 <- cajorls(test4,r=1) > print(model3) $rlm $beta ect1 y1.l1 1 y2.l1-1 constant 0 The estimated cointegrating vector now satisfies the imposed restrictions: β 1 + β 2 = 0 and β 3 = 0 45 / 64

Testing Restrictions on α Suppose we want to test whether α 2 = 0 without imposing any restrictions on α 1, i.e. we want to test for weak exogeneity of y 2t. This hypothesis can be represented as a linear restriction on α: H 0 : R α = 0 or α = AΨ The matrix R is given by R = (0, 1) which implies α 2 = 0 and α 1 unrestricted. > A1 <- matrix(c(1,0),nrow=2) > R <- Null(A1) > R [,1] [1,] 0 [2,] 1 The test can be performed by passing the matrix A to the test function 46 / 64

Testing Restrictions on α > # test weak exogeneity > test5 <- alrtest(z=test1,a=a1,r=1) > summary(test5) The value of the likelihood ratio test statistic: 0.17 distributed as chi square with 1 df. The p-value of the test statistic is: 0.68 Weights W of the restricted VAR: [,1] [1,] -0.1917 [2,] 0.0000 The restrictions are not rejected 47 / 64

Testing Restrictions on α and β We can test the restrictions on α and β jointly. > # test restriction on beta and weak exogeneity > test6 <- ablrtest(z=test1,a=a1,h=b2,r=1) > summary(test6) Estimation and testing under linear restrictions on alpha and beta Eigenvalues of restricted VAR (lambda): [1] 0.0804 The value of the likelihood ratio test statistic: 0.51 distributed as chi square with 2 df. The p-value of the test statistic is: 0.78 The restrictions are not rejected 48 / 64

Testing Restrictions on α and β Eigenvectors, normalised to first column of the restricted VAR: [,1] [1,] 1 [2,] -1 [3,] 0 Weights W of the restricted VAR: [,1] [1,] -0.1891 [2,] 0.0000 The estimated vectors now satisfy the imposed restrictions: β 1 + β 2 = 0, β 3 = 0, and α 2 = 0 49 / 64

Example 3 continued... The test statistics found 2 cointegrating vectors, i.e. r = 2. The function cajorls (urca package) estimates the restricted VECM. > # estimate restricted VECM > model1 <- cajorls(test1,r=2) > print(model1) $rlm $beta ect1 ect2 y1.l1 1.000000e+00 0.0000000 y2.l1-2.775558e-17 1.0000000 y3.l1-9.585393e-01-1.0742611 constant 4.111800e-01-0.4397609 Note that the β coefficients closely match those in the DGP 50 / 64

Restricted VECM Response y1.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1-0.285491 0.064924-4.397 1.64e-05 *** ect2 0.042028 0.059752 0.703 0.482 y1.dl1-0.003464 0.091613-0.038 0.970 y2.dl1-0.061869 0.092450-0.669 0.504 y3.dl1-0.043577 0.153542-0.284 0.777 Residual standard error: 0.9713 on 243 degrees of freedom Multiple R-squared: 0.09305, Adjusted R-squared: 0.07439 F-statistic: 4.986 on 5 and 243 DF, p-value: 0.0002292 Note that y 1t only depends on the first cointegrating vector 51 / 64

Restricted VECM Response y2.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1-0.023165 0.065564-0.353 0.7242 ect2-0.142426 0.060340-2.360 0.0190 * y1.dl1-0.206148 0.092516-2.228 0.0268 * y2.dl1-0.005361 0.093361-0.057 0.9543 y3.dl1 0.105134 0.155054 0.678 0.4984 Residual standard error: 0.9809 on 243 degrees of freedom Multiple R-squared: 0.05615, Adjusted R-squared: 0.03672 F-statistic: 2.891 on 5 and 243 DF, p-value: 0.01482 Note that y 2t only depends on the second cointegrating vector 52 / 64

Restricted VECM Response y3.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1-0.02320 0.04787-0.485 0.628 ect2 0.05180 0.04405 1.176 0.241 y1.dl1-0.07472 0.06754-1.106 0.270 y2.dl1 0.04176 0.06816 0.613 0.541 y3.dl1-0.07061 0.11320-0.624 0.533 Residual standard error: 0.7161 on 243 degrees of freedom Multiple R-squared: 0.02835, Adjusted R-squared: 0.008357 F-statistic: 1.418 on 5 and 243 DF, p-value: 0.2183 Note that y 3t does not depend on any of the cointegrating vectors 53 / 64

Testing Restrictions on β Suppose we want to test β 11 + β 13 = 0 and β 22 + β 23 = 0 without imposing any restrictions on the intercept. In terms of the parameterization R β = 0, the matrix R is given by R = (1, 1, 1, 0) which implies β 11 + β 13 = 0 and β 22 + β 23 = 0, with β 14 and β 24 unrestricted. Note that the matrix β is typically normalized such that β 11 = β 22 = 1 and β 12 = β 21 = 0. > B1 <- matrix(c(1,0,-1,0,0,1,-1,0,0,0,0,1),nrow=4) > R <- Null(B1) > R [,1] [1,] -0.5773503 [2,] -0.5773503 [3,] -0.5773503 [4,] 0.0000000 54 / 64

Testing Restrictions on β > # test restrictions on beta > test3 <- blrtest(z=test1,h=b1,r=2) > summary(test3) Estimation and testing under linear restrictions on beta Eigenvalues of restricted VAR (lambda): [1] 0.1248 0.0850 0.0012 The value of the likelihood ratio test statistic: 1.14 distributed as chi square with 2 df. The p-value of the test statistic is: 0.57 The restrictions are not rejected 55 / 64

Estimate VECM with Restrictions on β > # estimate VECM with beta restrictions > model2 <- cajorls(test3,r=2) > print(model2) $rlm $beta ect1 ect2 y1.l1 1.000000 0.0000000 y2.l1 0.000000 1.0000000 y3.l1-1.000000-1.0000000 constant 0.261947-0.1691561 The estimated cointegrating vectors now satisfy the imposed restrictions: β 11 + β 13 = 0 and β 22 + β 23 = 0 while the intercepts remain unrestricted 56 / 64

Testing Restrictions on α > # test weak exogeneity of y3t > A1 <- matrix(c(1,0,0,0,1,0),nrow=3) > test4 <- alrtest(z=test1,a=a1,r=2) > summary(test4) The value of the likelihood ratio test statistic: 1.53 distributed as chi square with 2 df. The p-value of the test statistic is: 0.47 Weights W of the restricted VAR: [,1] [,2] [1,] -0.2514-0.0116 [2,] 0.0518-0.0514 [3,] 0.0000 0.0000 The restrictions are not rejected 57 / 64

Testing Restrictions on α and β We can test the restrictions on α and β jointly. > # test restriction on beta and weak exogeneity > test5 <- ablrtest(z=test1,a=a1,h=b1,r=2) > summary(test5) Estimation and testing under linear restrictions on alpha and beta Eigenvalues of restricted VAR (lambda): [1] 0.1239 0.0829 0.0000 The value of the likelihood ratio test statistic: 1.96 distributed as chi square with 2 df. The p-value of the test statistic is: 0.38 The restrictions are not rejected 58 / 64

Zivot (2000) continued... > # trace test > data <- cbind(st,ft) > test1 <- ca.jo(data,ecdet="const",type="trace",k=2,spec="transitory") > summary(test1) Test type: trace statistic, without linear trend and constant in cointeg Eigenvalues (lambda): [1] 5.922276e-02 2.205465e-02-6.938894e-18 Values of teststatistic and critical values of test: test 10pct 5pct 1pct r <= 1 5.42 7.52 9.24 12.97 r = 0 20.25 17.85 19.96 24.60 The test finds 1 cointegrating vector 59 / 64

Estimate Restricted VECM The test statistics found 1 cointegrating vectors, i.e. r = 1. The function cajorls (urca package) estimates the restricted VECM. > # estimate restricted model > model1 <- cajorls(test1,r=1) > print(model1) $rlm $beta ect1 st.l1 1.000000000 ft.l1-1.000860977 constant -0.001915953 60 / 64

Restricted VECM Response st.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1 1.65502 0.82642 2.003 0.0463 * st.dl1 0.03872 1.89308 0.020 0.9837 ft.dl1 0.03062 1.89125 0.016 0.9871 Residual standard error: 0.03401 on 240 degrees of freedom Multiple R-squared: 0.02481, Adjusted R-squared: 0.01262 F-statistic: 2.035 on 3 and 240 DF, p-value: 0.1096 Note that s t only depends on the cointegrating vector 61 / 64

Restricted VECM Response ft.d : Coefficients: Estimate Std. Error t value Pr(> t ) ect1 1.745423 0.825300 2.115 0.0355 * st.dl1 0.004534 1.890527 0.002 0.9981 ft.dl1 0.067139 1.888691 0.036 0.9717 Residual standard error: 0.03396 on 240 degrees of freedom Multiple R-squared: 0.02726, Adjusted R-squared: 0.0151 F-statistic: 2.242 on 3 and 240 DF, p-value: 0.08405 Note that f t only depends on the cointegrating vector 62 / 64

Testing Restrictions on β We can test whether the cointegrating vector is β = (1, 1) with no intercept, i.e we want R β = 0 such that β 1 + β 2 = 0 and β 3 = 0. > # test restrictions on beta > B1 <- matrix(c(1,-1,0),nrow=3) > test3 <- blrtest(z=test1,h=b1,r=1) > summary(test3) Eigenvalues of restricted VAR (lambda): [1] 0.0329 The value of the likelihood ratio test statistic: 6.71 distributed as chi square with 2 df. The p-value of the test statistic is: 0.03 The restrictions are not rejected at 1% level 63 / 64

Estimate VECM with Restrictions on β > # estimate restricted model > model2 <- cajorls(test3,r=1) > print(model2) $rlm $beta ect1 st.l1 1 ft.l1-1 constant 0 The estimated cointegrating vector now satisfies the imposed restrictions: β 1 + β 2 = 0 and β 3 = 0 64 / 64