General matrix notation of a VAR(p)

From HandWiki


This page shows the details for different matrix notations of a vector autoregression process with k variables.

Var(p)

yt=c+A1yt−1+A2yt−2+⋯+Apyt−p+et,

where each yi is a vector of length k and each Ai is a k × k matrix.

What are the assumptions on the noise?

Large matrix notation

[y1,ty2,t⋮yk,t]=[c1c2⋮ck]+[a1,11a1,21⋯a1,k1a2,11a2,21⋯a2,k1⋮⋮⋱⋮ak,11ak,21⋯ak,k1][y1,t−1y2,t−1⋮yk,t−1]+⋯+[a1,1pa1,2p⋯a1,kpa2,1pa2,2p⋯a2,kp⋮⋮⋱⋮ak,1pak,2p⋯ak,kp][y1,t−py2,t−p⋮yk,t−p]+[e1,te2,t⋮ek,t]

Equation by regression notation

Rewriting the y variables one to one gives:

y1,t=c1+a1,11y1,t−1+a1,21y2,t−1+⋯+a1,k1yk,t−1+⋯+a1,1py1,t−p+a1,2py2,t−p+⋯+a1,kpyk,t−p+e1,t

y2,t=c2+a2,11y1,t−1+a2,21y2,t−1+⋯+a2,k1yk,t−1+⋯+a2,1py1,t−p+a2,2py2,t−p+⋯+a2,kpyk,t−p+e2,t

⋮

yk,t=ck+ak,11y1,t−1+ak,21y2,t−1+⋯+ak,k1yk,t−1+⋯+ak,1py1,t−p+ak,2py2,t−p+⋯+ak,kpyk,t−p+ek,t

Concise matrix notation

One can rewrite a VAR(p) with k variables in a general way which includes T+1 observations yp through yT

Y=BZ+U

where:

Y=[ypyp+1⋯yT]=[y1,py1,p+1⋯y1,Ty2,py2,p+1⋯y2,T⋮⋮⋮⋮yk,pyk,p+1⋯yk,T]
B=[cA1A2⋯Ap]=[c1a1,11a1,21⋯a1,k1⋯a1,1pa1,2p⋯a1,kpc2a2,11a2,21⋯a2,k1⋯a2,1pa2,2p⋯a2,kp⋮⋮⋮⋱⋮⋯⋮⋮⋱⋮ckak,11ak,21⋯ak,k1⋯ak,1pak,2p⋯ak,kp]
Z=[11⋯1yp−1yp⋯yT−1yp−2yp−1⋯yT−2⋮⋮⋱⋮y0y1⋯yT−p]=[11⋯1y1,p−1y1,p⋯y1,T−1y2,p−1y2,p⋯y2,T−1⋮⋮⋱⋮yk,p−1yk,p⋯yk,T−1y1,p−2y1,p−1⋯y1,T−2y2,p−2y2,p−1⋯y2,T−2⋮⋮⋱⋮yk,p−2yk,p−1⋯yk,T−2⋮⋮⋱⋮y1,0y1,1⋯y1,T−py2,0y2,1⋯y2,T−p⋮⋮⋱⋮yk,0yk,1⋯yk,T−p]

and

U=[epep+1⋯eT]=[e1,pe1,p+1⋯e1,Te2,pe2,p+1⋯e2,T⋮⋮⋱⋮ek,pek,p+1⋯ek,T].

One can then solve for the coefficient matrix B (e.g. using an ordinary least squares estimation of Y≈BZ).

References

  • Lütkepohl, Helmut (2005). New Introduction to Multiple Time Series Analysis. Berlin: Springer. ISBN 3540401725.