For the VAR (p) of form
.
This can be changed to a VAR(1) structure by writing it in companion form (see general matrix notation of a VAR(p))
where
,
,
and 
where
,
and
are
dimensional column vectors,
is
by
dimensional matrix and
,
and
are
dimensional column vectors.
The mean squared error of the h-step forecast of variable
is
![{\displaystyle \mathbf {MSE} [y_{j,t}(h)]=\sum _{i=0}^{h-1}\sum _{l=1}^{k}(e_{j}'\Theta _{i}e_{l})^{2}={\bigg (}\sum _{i=0}^{h-1}\Theta _{i}\Theta _{i}'{\bigg )}_{jj}={\bigg (}\sum _{i=0}^{h-1}\Phi _{i}\Sigma _{u}\Phi _{i}'{\bigg )}_{jj},}](//wikimedia.org/api/rest_v1/media/math/render/svg/83a54977393cc426642c00435eb061c072deeccb)
and where
is the jth column of
and the subscript
refers to that element of the matrix
where
is a lower triangular matrix obtained by a Cholesky decomposition of
such that
, where
is the covariance matrix of the errors 
where
so that
is a
by
dimensional matrix.
The amount of forecast error variance of variable
accounted for by exogenous shocks to variable
is given by 
![{\displaystyle \omega _{jl,h}=\sum _{i=0}^{h-1}(e_{j}'\Theta _{i}e_{l})^{2}/MSE[y_{j,t}(h)].}](//wikimedia.org/api/rest_v1/media/math/render/svg/344f3c3885ba18e7782aaaa3068724d6db1143fe)