Generate independent and use the Box-Muller transformFor , , so its density is on . The angle is uniform on and independent of . Dividing the joint radial-angular density by the polar-coordinate Jacobian givesThus both outputs are independent and have the standard normal distribution. Independent pairs of uniforms give further independent normal observations. The null event is excluded in implementation so the logarithm is finite.
For fixed parameters , every new error is independent of the previous observations. Put . Since , the first three conditional densities areandIn general,Its density is . The recursion is interpreted from , as required to define from the two given initial values. These are parameter-conditional sampling distributions; integrating over the prior would instead give predictive mixtures.
Use the chain rule for conditional densities. With , the likelihood function of the nondegenerate observations isThe first residual is and carries no parameter information. There is no ordinary joint Lebesgue density for because deterministically; this expression is the conditional likelihood function given the fixed initial values, or the likelihood function on . The initial point mass is parameter independent and has no effect on inference. This is the conditional likelihood of an initialized Gaussian AR(2) process.
Define the sufficient data sums, all over ,Multiplying the likelihood function by the independent standard-normal priors and collecting the quadratic terms givesLet and . This precision matrix is , where , so it is positive definite even for a short or singular design. Completing the square provesThe fully normalized posterior density isThis is Gaussian conjugacy for an initialized AR(2) regression.
Completing each one-dimensional square, or using the supplied conditional-normal identity, givesWhen , all regressor sums vanish and the posterior remains the independent standard-normal prior. No stationary-parameter restriction is imposed: the specified prior is on all of , and the finite initialized chain is defined for all .
Start from any . For independent draws from the standard normal distribution at each sweep, the Gibbs sampler can be implemented asThe second update must use the newly drawn first coordinate. The transform in part (a) supplies the needed independent Gaussian draws. Each conditional update preserves the joint posterior, so their composition does too.
Convergence is particularly transparent here. Centering at the posterior mean givesPositive definiteness gives , so this is a stable Gaussian autoregression. The full sampler has the desired posterior as its limiting invariant law. This is the linear contraction of a two-coordinate Gaussian Gibbs sweep.
For a posterior-integrable function , its posterior expectation is estimated after a burn-in byThe ergodic theorem justifies this Monte Carlo average. The retained values of also approximate its posterior distribution and quantiles. If a Bayesian point estimate is requested under squared-error loss, the posterior mean is the appropriate estimate, when its needed moments exist. An arbitrary function need not have a finite posterior mean; integrability must be assumed for the displayed target. Successive Gibbs draws are correlated, so uncertainty in the Monte Carlo average should use chain-aware error estimates rather than treating them as iid.
Articles by others on the same topic
There are currently no matching articles.