General matrix notation of a VAR(p)

This page just shows the details for different matrix notations of a VAR(p) process with k variables.

Var(p)

yt = c + A1yt − 1 + A2yt − 2 + ⋯ + Apyt − p + et, Where y is a k x 1 vector of variables of length T and A is a k x p matrix.

Large matrix notation

$$\begin{bmatrix}y_{1,t} \\ y_{2,t}\\ \vdots \\ y_{k,t}\end{bmatrix}=\begin{bmatrix}c_{1} \\ c_{2}\\ \vdots \\ c_{k}\end{bmatrix}+ \begin{bmatrix} a_{1,1}^1&a_{1,2}^1 & \cdots & a_{1,k}^1\\ a_{1,1}^1&a_{1,2}^1 & \cdots & a_{1,k}^1\\ \vdots& \vdots& \ddots& \vdots\\ a_{1,1}^1&a_{1,2}^1 & \cdots & a_{1,k}^1 \end{bmatrix} \begin{bmatrix}y_{1,t-1} \\ y_{2,t-1}\\ \vdots \\ y_{k,t-1}\end{bmatrix} + \cdots + \begin{bmatrix} a_{1,1}^p&a_{1,2}^p & \cdots & a_{1,k}^p\\ a_{1,1}^p&a_{1,2}^p & \cdots & a_{1,k}^p\\ \vdots& \vdots& \ddots& \vdots\\ a_{1,1}^p&a_{1,2}^p & \cdots & a_{1,k}^p \end{bmatrix} \begin{bmatrix}y_{1,t-p} \\ y_{2,t-p}\\ \vdots \\ y_{k,t-p}\end{bmatrix} + \begin{bmatrix}e_{1,t} \\ e_{2,t}\\ \vdots \\ e_{k,t}\end{bmatrix}$$

Equation by equation notation

Rewriting the y variables one to one gives:

y1, t = c1 + a1, 11y1, t − 1 + a1, 21y2, t − 1 + ⋯ + a1, k1yk, t − 1 + ⋯ + ap, 11y1, t − p + ap, 21y2, t − p + ⋯ + ap, k1yk, t − p + e1, t y2, t = c2 + a1, 12y1, t − 1 + a1, 22y2, t − 1 + ⋯ + a1, k2yk, t − 1 + ⋯ + ap, 12y1, t − p + ap, 22y2, t − p + ⋯ + ap, k2yk, t − p + e1, t  ⋮  =   ⋮ yk, t = ck + a1, 1ky1, t − 1 + a1, 2ky2, t − 1 + ⋯ + a1, kkyk, t − 1 + ⋯ + ap, 1ky1, t − p + ap, 2ky2, t − p + ⋯ + ap, kkyk, t − p + e1, t

Concise matrix notation

One can rewrite a VAR(p) with k variables in a general way

Y = BZ + U

Where:

$$Y= \begin{bmatrix}y_{1,1} &y_{1,2} & \cdots & y_{1,T} \\ y_{2,1} &y_{2,2} & \cdots & y_{2,T}\\ \vdots& \vdots &\vdots &\vdots \\ y_{k,1} &y_{k,2} & \cdots & y_{k,T}\end{bmatrix}$$

$$=\begin{bmatrix} c_{1} & A_{1,1}^{p=1}&A_{1,2}^{p=1}&\cdots &A_{1,k}^{p=1}&\cdots & A_{1,1}^{p=p}&A_{1,2}^{p=p}&\cdots &A_{1,k}^{p=p}\\ c_{2} & A_{2,1}^{p=1}&A_{2,2}^{p=1}&\cdots &A_{2,k}^{p=1}&\cdots & A_{2,1}^{p=p}&A_{2,2}^{p=p}&\cdots &A_{2,k}^{p=p}\\ \vdots& \vdots &\vdots &\ddots &\vdots& \ddots& \vdots &\vdots &\ddots &\vdots\\ c_{k} & A_{k,1}^{p=1}&A_{k,2}^{p=1}&\cdots &A_{k,k}^{p=1} &\cdots & A_{k,1}^{p=p}&A_{k,2}^{p=p}&\cdots &A_{k,k}^{p=p} \end{bmatrix} \begin{bmatrix} 1&1&\cdots&1\\ y_{1,1}&y_{1,2}&\cdots&y_{1,T-1}\\ y_{2,1}&y_{2,2}&\cdots&y_{2,T-1}\\ \vdots & \vdots & \vdots&y\vdots\\ y_{k,1}&y_{k,2}&\cdots&y_{k,T-1}\\ \vdots & \vdots & \vdots&\vdots\\ \vdots & \vdots & \vdots&\vdots\\ y_{1,1-p}&y_{1,2-p}&\cdots&y_{1,T-p}\\ y_{2,1-p}&y_{2,2-p}&\cdots&y_{1,T-p}\\ \vdots & \vdots & \vdots&\vdots\\ y_{k,1-p}&y_{k,2-p}&\cdots& y_{k,T-p} \end{bmatrix}$$

$$+ U= \begin{bmatrix} u_{1,1}&u_{1,2}&\cdots&u_{1,T}\\ u_{2,1}&u_{2,2}&\cdots&u_{1,T}\\ \vdots&\vdots&\ddots&\vdots\\ u_{k,1}&u_{k,2}&\cdots&u_{k,T} \end{bmatrix}$$

References

  • Helmut Lütkepohl. New Introduction to Multiple Time Series Analysis. Springer. 2005.