Below is a practical, step-by-step checklist that empirical macroeconomists typically follow when they want to specify a prior for a Bayesian Vector Autoregression (BVAR). The list is written for a generic reduced-form BVAR(p) with Gaussian errors, but the same logic carries over to structural BVARs, time-varying parameter BVARs, or large BVARs (e.g., BVAR with Minnesota prior, hierarchical Minnesota, or stochastic-search variable-selection priors).
────────────────────────────────────────
-
Define the research question and the data
• Decide what variables must enter the system (yₜ).
• Choose the frequency (monthly, quarterly, …).
• Collect a balanced panel of T observations on n variables.
• Clean the data (seasonal adjustment, log-levels, growth rates, etc.).
-
Decide on the baseline VAR specification
• Lag length p: start with the usual information criteria (AIC, BIC, HQ) on an unrestricted OLS VAR.
• Deterministic terms: constant, trend, seasonal dummies, exogenous variables.
• Check for stationarity; if variables are I(1) and cointegration is not the focus, work in first differences or growth rates.
-
Translate the VAR into “regression form”
Y = XΦ + E,
where Y is T×n, X is T×k with k = 1 + n·p (+ deterministic terms), Φ is k×n, and vec(E) ~ N(0, Σ⊗I_T).
Vectorise: y = (I_n ⊗ X)φ + e, φ = vec(Φ), e ~ N(0, Σ⊗I_T).
-
Choose a prior family
• Conjugate Normal–Inverse-Wishart (NIW) is the workhorse:
φ|Σ ~ N(φ₀, Σ⊗Ω₀), Σ ~ IW(Ψ₀, ν₀).
• Special cases:
– Minnesota prior (Doan, Litterman, Sims 1984) = NIW with specific Ω₀.
– Independent Normal-Wishart (Koop & Korobilis) if you want to separate φ and Σ.
– Hierarchical Minnesota (Giannone, Lenza & Primiceri 2015) to learn the hyper-parameters from the data.
– SSVS or spike-and-slab if you want variable selection/shrinkage.
-
Set or calibrate the hyper-parameters
5a. Minnesota prior (flat default)
– Prior mean φ₀: 1 on own first lag, 0 elsewhere.
– Prior variance Ω₀:
* diagonal matrix with
Var(φᵢⱼ,ℓ) = (λ₁/ℓ^{λ₃})² if i=j (own lags)
Var(φᵢⱼ,ℓ) = (λ₁λ₂σᵢ/σⱼℓ^{λ₃})² if i≠j (cross lags)
Var(constant) = λ₄²
* σᵢ is the residual standard error from univariate AR(p) on variable i.
– λ₁ (overall tightness), λ₂ (cross-variable tightness), λ₃ (lag decay), λ₄ (constant tightness).
– Typical starting values: λ₁ = 0.2, λ₂ = 0.5, λ₃ = 1, λ₄ = 10⁵ (very loose on constant).
– Σ prior: IW(Ψ₀, ν₀) with Ψ₀ = diag(σ₁²,…,σ_n²) and ν₀ = n+2 (loose).
5b. Hierarchical Minnesota
– Place hyper-priors on λ₁, λ₂, λ₃, λ₄ (e.g., Gamma or Uniform).
– Estimate the hyper-parameters with a small MCMC or via marginal likelihood optimisation.
5c. Informative priors from external studies
– Use DSGE prior (Ingram & Whiteman 1994) or priors from sign-restricted SVARs.
-
Check prior implications
• Prior-predictive simulation: draw (φ, Σ) from the prior, simulate the VAR, compute moments (autocorrelations, variance decompositions, impulse responses).
• Compare prior IRFs with what economic theory or previous studies suggest.
• If prior IRFs are implausible, tighten/loosen the relevant hyper-parameters.
-
Prior sensitivity analysis
• Vary λ₁, λ₂, λ₃, λ₄ over a grid (e.g., λ₁ ∈ {0.1, 0.2, 0.5, 1.0}).
• Compute log marginal likelihood or out-of-sample forecast RMSE for each hyper-parameter vector.
• Choose the specification that maximises marginal likelihood or minimises forecast error.
-
Computational implementation
• Write the likelihood and prior in matrix form.
• Use the NIW Gibbs sampler (Algorithm 1 in Koop & Korobilis, 2010).
• For large n, use the Minnesota prior with the fast “dummy-observation” implementation (Banbura et al. 2010).
• Check convergence (trace plots, Geweke z-scores, R-hat).
-
Model diagnostics after estimation
• Posterior IRFs: check shape, error bands, and economic interpretability.
• Forecast error variance decompositions.
• Posterior predictive checks: simulate the model, compare simulated moments with data moments.
• If the posterior still looks at odds with economic intuition, revisit the prior (step 6).
-
Document the prior
• Report the functional form (NIW, Minnesota, etc.).
• List all hyper-parameters and how they were chosen (calibrated vs. estimated).
• Provide prior-predictive IRFs and prior moments in an appendix.
────────────────────────────────────────
Quick reference: Minnesota prior in one line
φᵢⱼ,ℓ | Σ ~ N( 1_{i=j,ℓ=1}, (λ₁²/ℓ^{2λ₃})·(σᵢ²/σⱼ²)^{1_{i≠j}}·λ₂² )
Σ ~ IW( diag(σ₁²,…,σ_n²), n+2 )
────────────────────────────────────────
Software snippets
R (BVAR package):
library(BVAR)
hyper <- list(lambda1 = 0.2, lambda2 = 0.5, lambda3 = 1, lambda4 = 1e5)
bvar_model <- bvar(y, lags = 4, n_draw = 50000, n_burn = 10000, prior = "MN", hyper = hyper)
Python (pymc + aesara):
with pm.Model() as bvar:
λ1 = pm.Gamma('λ1', 2, 10)
λ2 = pm.Gamma('λ2', 2, 10)
λ3 = pm.Gamma('λ3', 2, 2)
# build dummy observations, then define MvNormal likelihood …
────────────────────────────────────────
Key takeaway
Prior analysis for a BVAR is not “set and forget.” It is an iterative loop: (i) choose a prior family, (ii) calibrate or estimate hyper-parameters, (iii) simulate prior implications, (iv) compare with economic knowledge, (v) refine.