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.
In log abilities, the negative Hessian matrix is a weighted Graph Laplacian of the comparison graph. If that comparison graph is a connected graph and the abilities are finite, the quadratic form vanishes only for constant vectors. Thus the log-likelihood is strictly concave after fixing the common additive constant. If the directed graph of observed wins is a strongly connected directed graph, letting contrasts diverge forces at least one observed-win probability to zero, so the log-likelihood tends to negative infinity. A finite maximizer exists and is unique up to common scaling of abilities.
For a connected tree of comparisons with every observed win fraction strictly between zero and one, the Bradley-Terry model can fit every empirical edge probability exactly. Fix one positive strength to remove scaling ambiguity, then propagate strength ratios along tree edges. Edge log-ratios are independent real coordinates and each binomial log-likelihood term is strictly concave, proving existence and uniqueness of the normalized estimate. Cycles would impose extra compatibility relations.
Let count observed wins and count comparisons of players . Differentiating the log-likelihood with respect to gives observed wins minus model-expected wins. Vanishing derivatives therefore give the displayed equations. One equation is redundant because abilities are identifiable only up to common scaling.
Orient the edges of a comparison tree and set . After anchoring one vertex strength, these edge quantities are unconstrained coordinates. The Bradley-Terry model probability is the logistic function of , and its binomial log-likelihood contribution is . Differentiating gives the fitted odds .
The expectation-maximization algorithm introduces for a structural zero. Its E-step gives at positive counts and at zero. The M-step maximizes a logistic log-likelihood with fractional responses and a Poisson log-likelihood with weights . With only a binary predictor, write for group size, and ; the explicit updates are and . Log and logit group contrasts recover the regression coefficients, with boundary values interpreted through limits.
EM for a missing observation in a Gaussian AR1 process Created 2026-10-05 Updated 2026-10-06
In the expectation-maximization algorithm for a stationary autoregressive process of order one, a single missing interior value has a normal distribution conditional on its neighbors. The E-step uses both its conditional mean and its conditional second moment, not just mean imputation. The M-step maximizes the expected stationary complete-data log-likelihood, including the initial-observation density and the conditional-variance contribution to the two adjacent innovation squares.
EM for zero-inflated negative binomial regression Created 2026-10-05 Updated 2026-10-07
For known size and , the expectation-maximization algorithm gives structural-zero responsibility for positive counts and for zero counts. This is Bayes theorem. Maximizing the expected complete-data log-likelihood gives and a weighted negative binomial regression with weights . The objective separates into a Bernoulli mixing term and a weighted count term, which proves the update.
Observed Fisher information Created 2026-09-28 Updated 2026-10-03
The observed Fisher information is the negative Hessian of the realized log-likelihood. Its expectation, under standard regularity conditions, is the Fisher information matrix.