Professional Documents
Culture Documents
Sebastian Fossati
University of Alberta
1 These
slides are based on Eric Zivots time series notes available at:
http://faculty.washington.edu/ezivot
Dt
D t + 1 Y t1 + + p Y tp + t ,
t = 1, . . . , T
deterministic terms
2 / 64
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.
3 / 64
= D t + Y t1 + 1 Y t1 + . . . + p1 Y tp+1 + t
= 1 + . . . + p I n
p
X
=
j , k = 1, . . . , p 1
j=k+1
The term Y t1 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 t1 is also I (0).
Therefore, Y t1 must contain the cointegrating relations if they exist.
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 t1 + . . . + p1 Y tp+1 + t
5 / 64
(nr )(r n)
6 / 64
Non-uniqueness
10
) = a 0
7 / 64
= 1 (y1t1 y2t1 ) + 1t
y2t
= 2 (y1t1 y2t1 ) + 2t
The stability conditions for the bivariate VECM are related to the stability
conditions for the disequilibrium error 0 Y t .
9 / 64
0 Y t = (1 + 0 ) Y t1 + 0 t
or
ut
= ut1 + vt , ut = 0 Y t
= 1 + 0 = 1 + (1 2 )
vt
= 0 t = u1t u2t
11 / 64
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)
12 / 64
Remarks:
I
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 .
13 / 64
n
X
i )
ln(1
i=r0 +1
r +1 , . . . ,
n should all be close to zero and
If rank() = r0 then
0
i ) 0 for i > r0 .
LRtrace (r0 ) should be small since ln(1
r +1 , . . . ,
n will be nonzero
In contrast, if rank() > r0 then some of
0
i ) << 0
(but less than 1) and LRtrace (r0 ) should be large since ln(1
for some i > r0 .
14 / 64
15 / 64
16 / 64
17 / 64
18 / 64
Y t = ( Y t1 + 0 ) + 1 Y t1 + . . . + p1 Y tp+1 + t
the series in Y t are I (1) without drift and the cointegrating relations
0 Y t have non-zero means 0 .
3. Model H1 (r ): t = 0 (unrestricted constant):
Y t = 0 + 0 Y t1 + 1 Y t1 + . . . + p1 Y tp+1 + t
the series in Y t are I (1) with drift vector 0 and the cointegrating
relations 0 Y t may have a non-zero mean.
19 / 64
= 0 + ( Y t1 + 1 t)
+ 1 Y t1 + . . . + p1 Y tp+1 + t
the series in Y t are I (1) with drift vector 0 and the cointegrating
relations 0 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 + 0 Y t1
+ 1 Y t1 + . . . + p1 Y tp+1 + t
the series in Y t are I (1) with a linear trend (quadratic trend in levels)
and the cointegrating relations 0 Y t have a linear trend.
20 / 64
10
Case 1: No constant
50
100
150
200
50
100
150
Time
Time
200
40
40
80
80
120
120
50
100
150
200
Time
50
100
150
200
Time
500
2000
50
100
Time
150
200
21 / 64
9
5
11
Case 1: No constant
50
100
150
200
50
100
150
Time
Time
200
10
20
30
10
50
100
150
200
Time
50
100
150
200
Time
15
50
100
Time
150
200
22 / 64
Note:
I
23 / 64
>
>
>
>
>
>
>
ut = 0.75ut1 + 1t
y1t
y2t + ut ,
y2t
y2t1 + 2t
it
24 / 64
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
I
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
I
>
>
>
>
>
>
>
>
yt1
0.5y2t + 0.5y3t + ut ,
ut = 0.75ut1 + 1t
y2t
y2t1 + 2t
y3t
y3t1 + 3t
it
27 / 64
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
I
>
>
>
>
>
>
>
>
>
y1t
y3t + ut ,
ut = 0.75ut1 + 1t
y2t
y3t + vt ,
vt = 0.75vt1 + 2t
y3t
y3t1 + 3t
it
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
mle = (
v 1 , . . . , vr ), where vi are the eigenvectors associated with the
i
eigenvalues
31 / 64
The factorization
0
mle =
mle mle
is not unique.
I
32 / 64
33 / 64
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
I
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
I
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
I
37 / 64
Testing Restrictions on
or
= B
38 / 64
Testing Restrictions on
Suppose we want to test whether the cointegrating vector is 0 = (1, 1)
without imposing any restrictions on the intercept.
With the notation = ( 0 , 3 )0 = (1 , 2 , 3 )0 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
1 0
B = 1 0
0 1
and = (1 , 2 )0 such that B = (1 , 1 , 2 )0 .
In terms of the parameterization R 0 = 0, the matrix R 0 is given by
R 0 = (1, 1, 0) which implies 1 + 2 = 0 and 3 unrestricted. Note that
R 0 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
I
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
I
41 / 64
42 / 64
Testing Restrictions on
Suppose we want to test whether the cointegrating vector is 0 = (1, 1)
with no intercept, i.e we want R 0 = 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
I
44 / 64
ect1
1
-1
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 y2t . This hypothesis can
be represented as a linear restriction on :
H0 : R 0 = 0
or
= A
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
I
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
I
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
I
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
I
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
I
Note that y3t 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 = 0, the matrix R 0 is given by
R 0 = (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
I
55 / 64
Testing Restrictions on
>
>
>
>
# 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
I
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
I
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
I
62 / 64
Testing Restrictions on
We can test whether the cointegrating vector is 0 = (1, 1) with no
intercept, i.e we want R 0 = 0 such that 1 + 2 = 0 and 3 = 0.
>
>
>
>
ect1
1
-1
0
64 / 64