Bayesian Vector Error Correction Model (Bayesian VECM)

Econometrics
Introduced by
Kleibergen & Paap; Villani
Year
2002–2005
Type
Bayesian multivariate time series model
Family
Econometrics / time series

What does it do?

The Bayesian VECM applies Bayesian inference to the Vector Error Correction Model, which describes short-run dynamics and long-run cointegrating relationships among non-stationary multivariate time series.

Prior distributions are placed on the cointegrating rank and the coefficient matrices, so the posterior reflects both the data and prior information, including economic theory where it is available. This allows uncertainty about the number of cointegrating relations to be reported directly rather than conditioned on a single rank choice.

The intuition behind the method

A classical VECM forces variables back toward a long-run equilibrium whenever they drift apart — think of interest rates in different countries that cannot diverge forever. A Bayesian VECM does the same, but instead of treating the speed-of-adjustment coefficients and cointegrating vectors as fixed unknown constants, it treats them as random quantities described by probability distributions. The result is a full posterior distribution over all parameters, including the cointegrating rank itself, so researchers can express genuine uncertainty about how many long-run relationships exist rather than committing to a point estimate from a single hypothesis test.

History

Kleibergen and Paap (2002) examined priors, posteriors and Bayes factors for a Bayesian analysis of cointegration. Villani (2005) gave a Bayesian reference analysis of the cointegrated vector autoregression, with a prior that places uniform mass over cointegration spaces of a given rank and is invariant to the choice of normalising variables, together with an efficient Gibbs sampling approach in which all inferences come from one posterior sample. The rank-uncertainty and reference-prior framework described on this page follows Villani's analysis.

When to use it

Use a Bayesian VECM when you have two or more I(1), non-stationary multivariate time series that are theoretically expected to share long-run equilibrium relationships, and you want to model both the cointegrating structure and the short-run adjustment dynamics. It is most useful when the sample is small or medium and classical Johansen-based rank selection is unreliable, when prior economic knowledge such as a known long-run ratio should enter the model, or when uncertainty about the cointegrating rank must be carried into the results. Do not use it when the variables are stationary, since a Bayesian VAR in levels is the appropriate model there. Do not use it when the cross-sectional dimension dominates the time dimension (a panel VECM is the better fit), or when computation time is prohibitive and a classical VECM is adequate for the question.

Limitations and considerations

  • MCMC sampling becomes slow as the number of variables and lags grows, and chains must be checked for convergence before the draws are used.
  • Posterior results depend on the prior; with a short sample, the choice of prior on the loadings and cointegrating vectors can shift the conclusions materially.
  • The cointegrating vectors are locally non-identified, as Villani's analysis discusses, so identifying restrictions on beta are needed before the long-run relationships can be interpreted economically.
  • There is no single standard software implementation for Bayesian VECM models, so the chosen tool must be checked for the cointegrating-rank prior and identification scheme required.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The cointegrating rank is treated as an unknown with a prior, so the posterior over the number of cointegrating relations is reported directly, rather than the rank being fixed after a sequence of tests.
  • Priors on the cointegrating vectors and loadings can encode a theoretical long-run restriction, such as a known ratio between variables, which can help when the sample is short.
  • Impulse responses computed from posterior draws summarise parameter uncertainty directly, instead of from a single point estimate.
  • Villani's reference prior puts uniform mass over cointegration spaces of a given rank and is invariant to the choice of normalising variable for the cointegrating vectors, so the prior does not depend on which variable is normalised.

Applications

  • Macroeconomic modelling of money demand, where theory suggests a long-run relationship between money, income and interest rates that can be encoded in the priors.
  • Tests of long-run parity relations such as purchasing power parity in small samples, where classical rank tests may be less reliable.
  • Energy economics: modelling cointegration among oil prices, energy consumption and output, with posterior uncertainty about the number of equilibrium relationships.
  • Long-run linkages between equity or bond markets across countries, with credible intervals on the adjustment speeds.
  • Monetary policy analysis: estimating how quickly inflation and output return to equilibrium after a policy shock, with full posterior uncertainty.

How it works

How it works

1

The long-run impact matrix Pi is factored as alpha times beta-transpose. Beta contains the cointegrating vectors (the long-run equilibrium relationships) and alpha contains the adjustment speeds governing how fast each variable returns to equilibrium after a shock.

Formula
\Pi = \alpha \beta^{\top}
2

The VECM re-parameterises a VAR(p) in differences: the change in y at time t depends on the error-correction term (Pi times y at t-1), p-1 lags of past changes (capturing short-run dynamics), and a white-noise disturbance epsilon. The expression as written has no deterministic terms (constant or trend), so these must be specified separately in any application.

Formula
\Delta y_t = \alpha \beta^{\top} y_{t-1} + \sum_{k=1}^{p-1} \Gamma_k \Delta y_{t-k} + \varepsilon_t
3

Priors are placed over the cointegrating rank r, the loading matrix alpha, the cointegrating vectors beta, and the short-run coefficient matrices Gamma. Villani (2005) proposes a reference prior that places uniform mass over the cointegration spaces of a given rank; informative priors derived from economic theory are the alternative. The prior on rank may be chosen as a discrete-uniform distribution over the candidate ranks, or may reflect theoretical beliefs.

4

The joint posterior over all parameters is obtained via Bayes' theorem: the likelihood of the data under the VECM is combined with the priors to yield a posterior that reflects both information sources. Because this posterior is not available in closed form, Markov Chain Monte Carlo (MCMC) sampling, typically Gibbs or Metropolis-Hastings, is used to draw from it.

5

Posterior summaries (means, credible intervals) replace classical point estimates and confidence intervals. The posterior distribution of the number of cointegrating relations is computed with methods proposed by Villani (2005), including an efficient Gibbs sampler in which all inferences are drawn from one and the same posterior sample. This distribution is read as a probability assigned to each candidate rank: a high posterior probability on a given number of relations indicates that the data and prior together favour that many long-run relationships, while probability spread across several ranks reports the ambiguity directly rather than resolving it through a single test. The distribution of the model parameters for a given number of relations is obtained within the same framework. Impulse responses are computed from posterior draws to carry parameter uncertainty into the dynamic analysis. The standard likelihood assumes Gaussian errors, and the deterministic terms must be specified separately as noted above.

Common pitfalls

  • Choosing priors without checking that the resulting posterior is proper, which can leave MCMC draws unreliable. As a practitioner recommendation, check posterior propriety before reading MCMC output, particularly when a flat or improper prior is considered.
  • Neglecting MCMC convergence diagnostics (for example Gelman-Rubin R-hat and trace plots) and treating poorly mixed chains as valid posterior samples.
  • Treating the posterior mode of the cointegrating rank as certain and discarding rank uncertainty in the impulse-response analysis.
  • Failing to impose identifying restrictions on the cointegrating vectors beta, so the estimated long-run relationships cannot be interpreted.
  • Confusing a Bayesian VECM with a Bayesian VAR in levels: the error-correction parameterisation is valid only when the variables are genuinely cointegrated.

Frequently asked questions

How does a Bayesian VECM differ from the classical Johansen approach?

The classical Johansen approach tests for cointegrating rank via sequential likelihood-ratio tests and then conditions all subsequent inference on the selected rank. The Bayesian VECM treats rank as an unknown parameter with a prior distribution, so the posterior reflects rank uncertainty rather than committing to a single value, which gives uncertainty quantification that reflects rank ambiguity directly.

Do I need to pre-test for unit roots before fitting a Bayesian VECM?

Yes, in practice. The VECM parameterisation assumes the variables are I(1) and cointegrated, and the rank prior operates within that structure. Unit-root tests such as ADF or PP are commonly used to check integration order first, because mixing I(0) and I(1) variables in the error-correction term gives a misspecified model whatever inferential approach is used.

How do I choose priors for the cointegrating vectors?

Villani's (2005) reference prior is a natural default when no strong prior knowledge is available, since it places uniform mass over cointegration spaces of a given rank. When economic theory implies specific long-run ratios, such as a unit homogeneity restriction in a money-demand model, informative priors centred on those values can help when the sample is short.

What software can I use to estimate a Bayesian VECM?

There is no single standard software implementation for Bayesian VECM estimation, so applied work often uses custom MCMC code or adapts Bayesian VAR code. Before relying on any tool, confirm that it implements the cointegrating-rank prior, the normalisation and the identifying restrictions you need.

How do I report impulse responses from a Bayesian VECM?

Draw impulse responses from each MCMC posterior sample and summarise the resulting distribution: report the posterior median as the point estimate and the 16th–84th or 5th–95th percentile bands as credible intervals. This carries the parameter uncertainty from the sampler into the dynamic analysis.

Related methods

Sources

  1. Kleibergen, F., & Paap, R. (2002). Priors, posteriors and Bayes factors for a Bayesian analysis of cointegration. Journal of Econometrics, 111(2), 223–249.

    Open DOI reference
  2. Villani, M. (2005). Bayesian reference analysis of cointegration. Econometric Theory, 21(2), 326–357.

    Open DOI reference