Bayesian VAR Modeling
Consider the VAR(p) model

or

When the parameter vector
has a prior multivariate normal
distribution with known mean
and covariance matrix
,
the prior density is written as
![f({\beta})=(\frac{1}{2\pi})^{k^2p/2}| V_{\beta}|^{-1/2} \exp[-\frac{1}2({\beta}-{\beta}^{*}) V_{\beta}^{-1}({\beta}-{\beta}^{*})].](images/vareq272.gif)
The likelihood function for the Gaussian process becomes
![\ell({\beta}|{y}) &=& (\frac{1}{2\pi})^{kT/2}| I_T\otimes\Sigma|^{-1/2}x \ &... ...}2(y-(X\otimes I_k){\beta})' (I_T\otimes\Sigma^{-1})(y-(X\otimes I_k){\beta})].](images/vareq273.gif)
Therefore, the posterior density is derived as
![f({\beta}|{y}) \propto \exp[-\frac{1}2({\beta}-\bar{{\beta}})' \bar{\Sigma}_{\beta}^{-1}({\beta}-\bar{{\beta}})]](images/vareq274.gif)
where the posterior mean is
![\bar{{\beta}}=[V_{\beta}^{-1}+(X'X\otimes \Sigma^{-1} )]^{-1} [V_{\beta}^{-1}{\beta}^{*}+( X'\otimes \Sigma^{-1})y]](images/vareq275.gif)
and the posterior covariance matrix is
![\bar{\Sigma}_{\beta}=[V_{\beta}^{-1} +(X'X\otimes \Sigma^{-1})]^{-1}.](images/vareq276.gif)
In practice, the prior mean
and
the prior variance
need
to be specified. If all the parameters are considered to shrink
toward zero,
the null prior mean should be specified. According to Litterman (1986), the
prior variance can be given by

where vij(l) is the prior variance of the (i,j)th element
of
,
is the prior standard deviation of the diagonal elements of
,
is a constant in
the interval (0,1), and
is the ith diagonal element of
. The deterministic terms have diffused prior variance.
In practice, you replace the
by the diagonal
element of the ML estimator of
in the nonconstrained model.
For example, for a bivariate BVAR(2) model,

with the prior covariance matrix

For the Bayesian Estimation of integrated systems, the prior mean
is set to
the first lag of each variable equal to one in its own equation and
all other coefficients at zero.
For example, for a bivariate BVAR(2) model,

Forecasting of BVAR Modeling
The bootstrap procedure is used to estimate standard errors of
the forecast
(Litterman 1986). NREP=B simulations are performed.
In each simulation the following steps are taken:
- The procedure generates the available number of observations,
T, and
uniform random integers It, where t = 1, ... T.
- A new observation,
, is obtained as a sum of
the forecast based on the estimates coefficients plus the
vector of residuals from the It; that is,

- A new BVAR model is estimated by using the most recent
observations,
and a prediction value is made of the most recent observations.
The MSE measure of the l-step-ahead forecast is

where
.
Copyright © 2000 by SAS Institute Inc., Cary, NC, USA. All rights reserved.