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.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 1 d Solution 2026-09-28
The null hypothesis isagainst 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 usesagainst 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.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 5J Solution Created 2026-09-23 Updated 2026-09-25
A one-parameter exponential family with natural statistic has density or probability mass functionwhere 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 ,ThereforeWriting and applying the Taylor series of givesso the second-order approximation is