The linear predictor is unchanged by , , . Without constraints, different parameter triples therefore give the same rates and likelihood. Identifiability requires choosing one representative of this redundancy.
Taking the first levels as reference yields . ThenThese identify all three free parameters, while is the model's no-interaction constraint. The zero reference effects fix a parametrization; they do not remove the baseline rate or impose equal rates across groups.
Use the standard interpretation that the counts are conditionally independent given the parameters, with mutually independent stated priors. Let , , and defineUnder the reference constraints, the Poisson distribution likelihood, up to data-only factors, isMultiplying by the shape-rate gamma prior gives the Poisson-gamma conjugacy with unequal exposuresHere is a rate, matching the probability density function convention on the PDF's first page. The factor represents the number of replicates per cell, not the total count.
An exact Gibbs sampler update is available despite the non-Gaussian intercept: draw from the conditional gamma distribution law in part (ii), then setTogether with conditional updates of the two remaining effects, this targets the required joint posterior in the log-intercept coordinates. The log-gamma prior for a Poisson log-intercept includes the change-of-variable factor: with ,Using instead would omit the Jacobian and give the wrong conditional law for .
The full conditional log probability density functions of the effects are, up to constants,These are Gaussian-prior Poisson log-effect conditional probability density functions. The exponential likelihood term prevents a standard normal distribution conjugate update. A Metropolis-within-Gibbs algorithm conveniently updates one effect at a time without computing its conditional normalizing constant.
For example, propose with , and accept withUse an analogous normal distribution random-walk proposal for . The proposal is symmetric and lives on the appropriate unrestricted real parameter space, so no proposal ratio is needed. It makes local moves compatible with a unimodal conditional probability density function. Tune the positive scale in a pilot or freeze it after warm-up; a scale far too large causes rejection and a scale far too small moves slowly.
A useful scale can be inferred from the conditional curvature: , with the analogous formula for . A normal proposal near the conditional mode with variance approximately is another sensible choice, but an asymmetric or state-dependent proposal must include its full reverse-to-forward proposal-density ratio. Metropolis–Hastings is convenient, not logically mandatory; these concave conditionals also admit other specialized samplers.
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 areFor 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 givesThe 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.
Under the reference convention , the hypothesis becomes absence of the free group contrast . Introduce an inclusion indicator : set when , and use its stated proper normal prior when . Assign positive prior probabilities to those models, and retain in both.
A birth draws from a proposal probability density function and appends it as ; the reverse death deletes it. The Jacobian is one. At fixed , the likelihood ratio isThus the birth acceptance ratio before capping iswhere is the normalized prior. Again, taking cancels that factor. Use the reciprocal death rule and ordinary within-model parameter updates.
After warm-up, the Markov chain Monte Carlo occupation fraction estimates the desired probability:This requires the chain to explore both models and satisfy its usual ergodic convergence conditions. Under the original continuous normal prior alone, the equality event has posterior probability zero; the explicit model indicator supplies the necessary prior atom. If intercept selection from part (v) is also performed, use two indicators and count all sampled states with , regardless of the intercept indicator.
Articles by others on the same topic
There are currently no matching articles.