A polynomial regression birth move can introduce a coefficient while shifting the intercept by , with the sample average of the new monomial. The fitted-value increment is , whose sample average vanishes. The Jacobian determinant of the coefficient transformation is one. A reversible-jump Markov chain Monte Carlo acceptance ratio must still include the normalized dimension-dependent prior distributions, the model-order prior distribution, the birth/death selection probabilities and the proposal density for .
The order prior and probabilities of choosing upward or downward moves are not specified, so include them explicitly. Let be the model-order prior probability, the birth-selection probability at order , and the reverse death-selection probability. Denote the correctly normalized coefficient prior by and the probability density function of by . Common variance-prior factors cancel since is unchanged.
Put , , and . The centered polynomial birth move in reversible-jump sampling gives , so the residual-sum-of-squares change is
The map is triangular with determinant one. Thus the reversible-jump Markov chain Monte Carlo ratio is
For an entirely explicit Gaussian expression, define and . Dividing the two normalized Gaussian priors and the proposal probability density function gives
Equal model-order priors and equal birth/death selection probabilities remove the first ratio, if that is the intended convention. Dropping the order-dependent normal-prior constants instead would give the wrong acceptance rule.
Introduce a model indicator . In , set , hence , and retain the two group effects. In , include with the prior induced by the gamma baseline. Choose positive prior model probabilities summing to one; the supplied within-model parameter priors alone do not specify these probabilities.
Let , use the same proper prior in both models, and denote their likelihoods by and . The unnormalized joint model targets are
For a birth move, draw an auxiliary from a positive probability density function and map to . The reverse death move simply deletes . This is a dimension-matching bijection with absolute Jacobian one. If the birth and death selection probabilities are and , respectively, the birth and death moves for Bayesian variable selection rule gives
The reverse acceptance is the reciprocal ratio, capped at one, evaluated at the current . Choosing cancels the added-parameter prior; a data-informed proposal may mix better but must retain its proposal factor. Within each model, also update its continuous parameters to ensure exploration.
For an explicit likelihood ratio, with and from part (ii),
This supplies a complete reversible-jump Markov chain Monte Carlo move. Its acceptance probabilities enforce detailed balance between the two dimensions. The lower-dimensional state is a separate point-mass model, not a zero-probability equality test inside the continuous full-model prior.
For minimizing an energy , simulated annealing at temperature uses the Boltzmann distribution . At each temperature run a Metropolis–Hastings algorithm or Gibbs transition preserving that law, then reduce . With a symmetric proposal, accept with probability : downhill moves are accepted and uphill moves remain possible. Keep the best state encountered. As temperature decreases, equilibrium mass favors global minima, provided the target is proper and the relevant concentration hypotheses hold. An arbitrary finite cooling run does not by itself prove global convergence.
Let , and . For the Poisson distribution model the observations must be nonnegative integers. Its log-likelihood is
For , differentiation gives and . If , the likelihood is decreasing and the maximizer is the boundary value zero. For the normal distribution model write , giving
For each , this is maximized at , and differentiating there gives . Hence
The normal variance estimate has denominator , not . A finite positive normal maximum requires ; if all observations coincide, the likelihood is unbounded as . The normal annealing calculation below assumes .
To maximize likelihood, choose the energy , so the annealing law is , not . This sign is important in the Poisson request: literally inserting a positive log-likelihood into a minimizing Boltzmann law would give a nonnormalizable probability density function growing like at infinity. We use likelihood-power annealing with the maximizing sign.
For the normal distribution model, take base measure . The joint annealing probability density function is
Completing the square gives the Gibbs sampling conditional for . Matching the conditional probability density function to the supplied inverse-gamma distribution convention gives
Integrating out contributes a factor , so the marginal law is
Thus this joint Boltzmann law is proper for . Its variance marginal and the normal conditional both concentrate at the stated estimates as . For example, for its marginal mean and variance are
Also .
There is a direct convergence proof for the actual changing-temperature Gibbs algorithm, beyond convergence of its equilibrium probability densities. Start at a finite deterministic , choose deterministic with , draw conditional on , then draw conditional on using the two boxed distributions. Conditional normal moments give
The inverse-gamma distribution first and second moments consequently yield
and
In the first recursion the coefficient of the preceding mean is at most ; in the second the coefficient of the preceding second moment is at most . The means therefore stay bounded, and then so do the second moments. Letting in these formulas gives and . Together with , this proves
This Gaussian likelihood Gibbs annealing convergence uses the explicit conditional structure and does not assume that one Gibbs sampling sweep is an exact equilibrium draw.
For the Poisson distribution model, the likelihood-power law with respect to has the normalized probability density function
so
The mean tends to and the variance to zero, proving convergence to a point mass at the Poisson maximum-likelihood estimate, including the zero-boundary case.
The Akaike information criterion is , counting one parameter for Poisson and two for normal. With and , the two forms are
and
Choose the smaller criterion. Likelihood constants that differ between models, including the factorial and terms, cannot be discarded.
For a fully specified trans-dimensional annealing for penalized likelihood, let or and define
Use the combined target, relative to counting measure on models and Lebesgue measure on their parameters,
where are fixed reference weights. For and both model components are integrable. The factor is a convenient temperature convention keeping the within-model laws exactly those already derived. The extra factor makes the zero-temperature objective AIC rather than unpenalized likelihood.
Use, for example, probability for a model-change attempt in either model and probability for a within-model update. Within the Poisson distribution model draw a fresh gamma value from its boxed law; within the normal distribution model perform the boxed Gibbs sampling sweep. For a Poisson-to-normal proposal, draw with a fixed , and set
The inverse normal-to-Poisson proposal is with reverse auxiliary . This dimension matching uses one auxiliary variable to augment the one-dimensional Poisson parameter space. The absolute Jacobian determinant is
If the forward model-jump selection probability is and the reverse probability is , the reversible-jump Markov chain Monte Carlo acceptance ratio is
Accept with probability . For the reverse move compute and use
For the suggested equal selection probabilities, and those factors cancel. The probability density function must still be included, despite symmetry of its normal distribution: it is an auxiliary draw in only the forward dimension-increasing proposal. Pairing a move with its inverse makes the accepted forward and reverse probability flows equal after the change of variables, proving detailed balance for each fixed-temperature model-switch kernel.
Cool through proper temperatures, allow enough model and parameter exploration at each stage, and retain the smallest observed . The minima of the two energies are exactly the two AIC values above. Low-temperature equilibrium mass concentrates on the better criterion and its fitted parameters; if they tie, the minimizing set contains both models. Unlike the direct normal Gibbs argument, this multimodel exploration claim needs an appropriate cooling/mixing justification and is not guaranteed by an arbitrary short run.
Finally, an exact statistical comparison must put both likelihoods on the same observable and reference-measure convention. A Poisson distribution model is a probability mass function on counts, whereas the displayed normal distribution model is a continuous probability density function. The formulas above are the question's formal Gaussian working-likelihood comparison. A coherent exact normal approximation for count observations can instead use probabilities of rounding intervals; that changes its likelihood and generally loses the simple analytic normal estimates. This distinction matters when interpreting the numerical AIC difference, while leaving the dimension-matching and annealing construction applicable to properly specified likelihoods.
The cross-model target must include a model-order prior . Write its joint, unnormalized density as
Here the prior densities are normalized within each model. In particular their -dependent determinants and powers of cannot be dropped merely because the fixed-model posterior in part (i) was given up to proportionality.
For explicit birth and death moves for Bayesian variable selection, choose a birth with probability , generate from a density , append as the new covariate coefficient, and leave unchanged. The map from to is invertible under the reverse deletion and has absolute Jacobian one. It matches dimensions: the smaller-model coefficients and variance have dimension , and the one auxiliary draw supplies the larger-model dimension . If the reverse death is selected with probability , accept with
For a death, delete the last coefficient , retain the others and the variance, and use
To verify detailed balance, multiply the birth acceptance by and the reverse death acceptance by . Both equal the minimum of these two quantities in the matched coordinates. This proves reversibility without merely naming a dimension-changing algorithm. A more general bijection introduces its absolute Jacobian, and random choices among several covariates introduce the corresponding forward and reverse selection probabilities. Add within-model updates so that coefficients and variance can explore each model. These are reversible-jump Markov chain Monte Carlo updates; the unspecified model prior and proposal density must be supplied to implement them numerically.
Reversible-jump Markov chain Monte Carlo requires the reciprocal density/proposal ratio for the matched reverse transformation, so the death acceptance probability is
Expressed directly in the current residual and the recovered lower-order parameters, this is
Indeed makes this exponent the negative of the birth exponent, and all prefactors invert. Thus for matched states. This reciprocity, including the normalized prior distributions and auxiliary proposal density, gives the required detailed balance between models.
A reversible-jump Markov chain Monte Carlo calculation compares normalized model-specific densities. The fixed-order posterior written only up to proportionality in part (a) omits normalizing factors that depend on and therefore cannot simply be canceled between dimensions. Moreover, the printed question does not specify the model-order prior distribution or the probabilities of selecting birth and death moves. Denote those by , and , respectively, retaining them in the answer.
Put , , , and . The centered polynomial birth move in reversible-jump sampling changes the fitted vector by , so its new residual is . Therefore
The map from to has ones down the diagonal and a single additional entry in the intercept row. Its Jacobian determinant is one.
Write and . The normalized multivariate normal distribution prior ratio is
Divide also by the forward proposal density . The common inverse-gamma distribution prior for and the common normal-likelihood normalization cancel, since stays fixed. The forward acceptance ratio is consequently
Here is the proposal standard deviation. If equal model priors and symmetric birth/death selection are explicitly adopted, their ratios become one; they are not determined by the PDF. The expression assumes the same hyperparameters for the variance prior in both models, as in part (a). A dimension-dependent variance prior would contribute its own ratio.
The reversible-jump Markov chain Monte Carlo state comprises the model index and that model's parameter. Its unnormalized posterior density in model is
For models of equal dimension, choose model with probability and propose using density on the destination parameter space. The equal-dimension reversible-jump acceptance probability is
On acceptance change both model and parameter; on rejection retain both. Choose model proposals connecting all models of positive posterior mass and within-model kernels exploring their supports, with aperiodicity, to obtain an ergodic chain. Include within-model updates targeting its conditional posterior, and use model occupation proportions after the initial transient to estimate posterior model probabilities. The formula includes the model prior probabilities, parameter prior densities, likelihoods, reverse model-selection probability, and reverse parameter-proposal density.
This direct-density formula is Metropolis–Hastings algorithm on a disjoint union of equal-dimensional spaces. If instead a move uses a deterministic bijection with auxiliary proposal densities and , use
The Jacobian determinant is one for identity matching, but equal model dimensions alone do not make a nonlinear map volume-preserving. For a direct proposal density the change of variables is already included in that density, so no additional Jacobian factor is inserted.
For the two Poisson models, use the shape-rate convention for the gamma distribution:
If denotes scale instead, replace every occurrence of the rate below by . Introduce the inactive under model with the proper pseudo-prior , independent of . This pseudo-prior augmentation for model comparison does not change model 's marginal likelihood because the inactive density integrates to one. The two augmented targets on the same positive quadrant are
where
Use a symmetric cross-model proposal that flips the model label and leaves both parameters unchanged. The matching map is the identity, with unit Jacobian determinant, and the common prior factors cancel. Hence the model-switch acceptance probabilities are
Only the second observation's factor changes because is retained as its shared candidate mean. Evaluate the ratio on a logarithmic scale as for the first direction.
For within-model moves, Poisson-gamma conjugacy gives exact Gibbs sampling refreshes:
The two draws are conditionally independent within either model. Choose with fixed positive probabilities between this block refresh and the cross-model proposal. Both moves preserve the augmented posterior; refreshing the inactive parameter maintains its correct distribution and supports mixing. The fraction of retained states labelled estimates .
An equivalent literal dimension-changing implementation deletes on a proposed move, and on a move draws an auxiliary and sets . The birth matching has dimensions and unit Jacobian determinant. Its proposal density cancels the new parameter's prior density, giving the same acceptance ratios above for symmetric selection of move directions. This provides suitable moves without storing an inactive parameter.
For an independent check of Poisson mean equality model comparison, the exact Bayes factor is
It follows by integrating the two gamma likelihood kernels; the common factorial terms cancel. With equal model priors, the exact posterior probability of is , which can also be used to check the RJ-MCMC occupation estimate.
Reversible-jump Markov chain Monte Carlo Created 2026-10-07 Updated 2026-10-14
Reversible-jump Markov chain Monte Carlo samples a posterior on a disjoint union of model-specific parameter spaces. A dimension-matching bijection between old parameters plus auxiliary variables and new parameters plus reverse auxiliary variables supplies a reversible proposal. Its acceptance ratio includes posterior-density, model-selection, proposal-density, and Jacobian determinant factors. The equal-dimension reversible-jump acceptance probability is the ordinary density-based special case.