library(tsDyn)
library(vars)
set.seed(0)
= sapply(1:1000, function(i) {
bhat # this is a VAR with unit root
= matrix(c(0.7, 0.1, 0.3, 0.9), 2)
B # simulate the VAR process
<- VAR.sim(B, n = 300, include = "none")
sim = VAR(sim); b = coef(mod)
mod # extract the coefficients
c(B11 = b$y1['y1.l1', 'Estimate'],
B12 = b$y1['y2.l1', 'Estimate'],
B21 = b$y2['y1.l1', 'Estimate'],
B22 = b$y2['y2.l1', 'Estimate'])
|> t()
}) # plot the distribution of the coefficients
{par(mfrow=c(2,2), mar=c(2,2,2,2))
hist(bhat[,'B11'], freq=F, main="B11")
hist(bhat[,'B12'], freq=F, main="B12")
hist(bhat[,'B21'], freq=F, main="B21")
hist(bhat[,'B22'], freq=F, main="B22")
}
32 Unit Roots in VAR
So far we have only considered stationary VARs. Now we discuss what happens if a VAR contains unit roots. Recall that a VAR(\(p\)) process
\[ y_t = \Phi_1y_{t-1} + \Phi_2y_{t-2} + \dots + \Phi_py_{t-p} + \epsilon_t \]
contains at least one unit root iff
\[ |I_n - \Phi_1 - \Phi_2 -\dots-\Phi_p|=0. \]
Suppose some or all components of \(y_t\) are \(I(1)\), others are \(I(0)\). Rewrite the equation as follows:
\[ \begin{array}{rrrrr} y_t = &\Phi_1y_{t-1} + \dots + &\Phi_{p-2}y_{t-p+2} + &\Phi_{p-1}y_{t-p+1} + &\Phi_{p}y_{t-p} \\ = &\Phi_1y_{t-1} + \dots + &\Phi_{p-2}y_{t-p+2} - &(\Phi_{p-1}+\Phi_p)y_{t-p+1} - &\Phi_{p}\Delta y_{t-p+1} \\ = &\Phi_1y_{t-1} + \dots - &(\Phi_{p-2}+\Phi_{p-1}+\Phi_p)y_{t-p+2} - &(\Phi_{p-1}+\Phi_p)\Delta y_{t-p+2} - &\Phi_{p}\Delta y_{t-p+1} \\ \vdots \\ \end{array} \]
Therefore, the VAR process can be rewritten as
\[ y_t = \rho y_{t-1} + \zeta_1\Delta y_{t-1} + \cdots + \zeta_{p-2}\Delta y_{t-p+2} + \zeta_{p-1}\Delta y_{t-p+1} + \epsilon_t \]
where
\[ \begin{array}{rrrrrr} \rho = &\Phi_1 + &\Phi_2 + &\dots + &\Phi_{p-1} + &\Phi_p \\ -\zeta_1 = & &\Phi_2 + &\dots + &\Phi_{p-1} + &\Phi_p \\ \vdots \\ -\zeta_{p-2} = & & & &\Phi_{p-1} + &\Phi_p \\ -\zeta_{p-1} = & & & & &\Phi_p \\ \end{array} \]
Thus, \(\Phi_1=\rho+\zeta_1\), \(\Phi_s=\zeta_s-\zeta_{s-1}\), \(\Phi_p=-\zeta_{p-1}\). So the coefficients of the original VAR \(\{\Phi_s\}\) can be written as linearly combinations of coefficients on stationary regressors \(\{\zeta_s\}\). According to the theorem in Chapter 24, the asymptomatic distribution of \(\Phi_s\) would be dominated by slower converging \(\zeta_s\). It follows that \(\sqrt{T}(\hat\Phi_s-\Phi_s)\) is asymptotically Gaussian for \(s=1,2,\dots,p\). The usual OLS \(t\)-test and \(F\)-test are asymptotically valid. However, tests for Granger-causality based on VAR with unit roots do not have the usual \(\chi^2\) distribution, hence would not be valid.
32.1 Monte Carlo
Below is a Monte Carlo simulation of a 2-dimensional VAR process with unit root, which verifies the Gaussian distribution of its coefficients.
32.2 Conclusions
Economic time series usually comes in seasonally-adjusted (log) levels, which often involve unit roots. Researchers have to make the choice whether to difference the data to stationary or leave it as it is when modelling. There is no single principle to rule them all. It depends on the purpose of the research. It might feel safe to work with stationary time series only. Though stationarity is not necessary for VARs to work properly. Here are the tips from Walter Enders: