A systematic Gibbs sampler updates the coordinates of successively from their full conditional distributions. At iteration , draw
For a single coordinate, if the current state has distribution , its untouched coordinates have the correct marginal law and the resampled coordinate has precisely the conditional law under . Integrating marginal times conditional therefore recovers . Each coordinate kernel preserves this invariant distribution, so their composition also preserves it. This proves the target of the Gibbs sampler; the whole systematic sweep need not be a reversible kernel.
Starting from a suitable state and assuming the required irreducibility and convergence conditions, discard an initial transient and retain subsequent states as a dependent sample from, or approximately from, . In finite-state problems irreducibility and aperiodicity suffice; in continuous-state problems the corresponding positive recurrence and ergodicity conditions must hold. Successive draws are generally dependent, so Monte Carlo uncertainty must account for that dependence.
Use the shape-scale convention for the inverse-gamma distribution: has density proportional to for . Write , , , and . The independent normal and inverse-gamma regression priors make the conditional log-likelihood plus log prior in equal, up to a constant, to
Define and . Completing the square turns this expression into plus a constant. Thus the conditional posterior distribution is the multivariate normal distribution
Positive definiteness of the prior covariance matrix makes this well defined even if the design matrix is rank deficient.
Holding fixed, the factors depending on are
Consequently
There is no additional in the shape: the normal distribution prior for is independent of . A prior scaled by would be a different model and would change that calculation.
Choose an initial . At each iteration, evaluate and using and draw from the conditional multivariate normal distribution just derived. Next compute and draw
For example, generate and set . A draw of the conditional multivariate normal distribution can be formed as with a Cholesky decomposition and a vector of independent standard normal distributions.
This two-block Gibbs sampler alternates the full conditional distributions of the independent normal and inverse-gamma regression priors posterior. The conditional-integration argument proves that its invariant distribution is the joint posterior distribution. Under the usual convergence conditions, retain the pairs after an initial transient as the requested dependent posterior sample. The new variance update uses the newly drawn coefficients, rather than the previous coefficients.

Articles by others on the same topic (0)

There are currently no matching articles.