Bayesian deviance 2026-10-06
A Bayesian deviance is minus twice the log-likelihood, with any chosen additive data-only constant held consistent across the models being compared. Its Bayesian posterior expectation measures average fit. In the deviance information criterion, evaluating it at a parameter's posterior mean also enters the effective complexity penalty. This likelihood-based convention differs by a data-only constant from a saturated-model exponential-family deviance when a common saturated model exists.
The null hypothesis is
against the alternative that at least one coefficient is nonzero. The code uses the scaled reduction in exponential-family deviance,
and compares it with .
That chi-squared calibration is appropriate when the dispersion is known, and is asymptotically valid after consistent dispersion estimation. With unknown Gamma dispersion, the standard finite-sample GLM comparison instead uses
against an distribution. Its p-value is approximately , so the correctly calibrated test still rejects at the 5% level and gives evidence that component type or position contributes to mean failure time.
A one-parameter exponential family with natural statistic has density or probability mass function
where is the natural parameter of an exponential family and is the cumulant function of an exponential family. Its mean parameter is
The exponential-family deviance from to is twice the Kullback-Leibler divergence:
The carrier cancels from the likelihood ratio, so, with ,
For the Poisson distribution with mean ,
Therefore
Writing and applying the Taylor series of gives
so the second-order approximation is