Page 1 of 1

Gibbs Sampling for BVAR

PostPosted: Mon Sep 17, 2012 3:07 pm
by TomDoan
The attached is an example of Gibbs sampling applied to a Bayesian VAR with a "Minnesota" prior. Unlike the calculations done using ESTIMATE, this treats the whole VAR as a unit rather than one equation at a time. This can be applied successfully to VAR's of modest size. This example has 4 variables x 4 lags (plus constant), so it has a total of 68 regression parameters. This will probably run in a reasonable time for up to perhaps 500 total parameters. The sticking point is that a full-system draw for the VAR coefficients requires taking a factor of a # of coefficients x # of coefficients matrix with no helpful structure to reduce the calculation time.

gibbsvar.rpf
Program file
(3.53 KiB) Downloaded 78 times

haversample.rat
Data file
(223 KiB) Downloaded 57 times