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.
Bernoulli saturated log-likelihood 2026-10-14
For individual Bernoulli observations, the statistical saturated model assigns one independent probability to each response. Each likelihood factor is at most one and is exactly one at . Hence the maximum log-likelihood is zero, with . This boundary maximum is attained when probabilities zero and one are allowed; restricting them to the open interval gives the same supremum.
Binomial likelihood-power annealing 2026-10-14
For independent binomial distribution observations with fixed trial count and total successes , the likelihood-power probability density function relative to is . Its normalized law is the displayed beta distribution. Its mean tends to and its variance tends to zero as , including endpoint maxima. Energy for maximizing a log-likelihood is its negative; the opposite sign reverses the optimization.
Bradley-Terry likelihood Hessian Created 2026-10-06 Updated 2026-10-20
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.
Bradley-Terry score equation 2026-10-06
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.
For a full-column-rank design and positive fitted means , the log-likelihood has Hessian , which is negative definite. Thus any finite stationary point is the unique maximum-likelihood estimator. Full rank does not guarantee existence: with an intercept and all counts zero, the supremum is approached as the intercept tends to . If every observed count is positive, a full-rank design does give a finite maximum: each function tends to in either tail and is bounded above, and as , so the negative log-likelihood is coercive.
Consider an approximate conditional likelihood in which a paired total leads to a structural zero with probability , and otherwise a binomial distribution with success probability . For an observed zero, the posterior cure weight is ; for a positive count it is zero. Differentiating the log-likelihood gives the displayed equations at an interior maximum-likelihood estimator, with the weights evaluated at that estimator. Recomputing the weights and then updating the parameters is an expectation-maximization algorithm. Boundary fits must also be considered. These equations describe a conditional mixture: if cure is instead specified before two Poisson distributions are conditioned on their total, its conditional probability generally depends on the total and on the baseline nuisance rate. A zero observed in a short interval is not by itself proof of permanent biological cure.
For independent multinomial distributions with fixed stratum totals and baseline logits , the sufficient statistics are the displayed response-specific design-weighted counts, . Expanding the log-likelihood gives , plus a data-only term. The Fisher-Neyman factorization theorem therefore proves sufficiency; with an unrestricted identifiable canonical parameter, a likelihood-ratio argument proves minimal sufficiency. Factor indicators give the corresponding response/covariate margins.
Constrained Kaplan–Meier estimator 2026-10-14
The Kaplan–Meier estimator constrained to have survivor function value at maximizes the right-censoring log-likelihood subject to the displayed constraint. Here is the discrete hazard, the event count and the risk set size. In an interior event-time solution, a Lagrange multiplier gives before the constrained time, with afterwards. The multiplier is chosen to satisfy the product constraint. It is essential to allow a zero-event jump at the constrained time or another relevant cell boundary: a constraint can require mass outside observed event times. A general implementation instead maximizes the concave probability-mass log-likelihood with total mass one and mass above equal to , allowing all relevant cells and a terminal tail. This also handles unobserved tails and boundary solutions without imposing unjustified event-only support.
Cox–Snell likelihood pseudo-R-squared 2026-10-14
A likelihood-based analogue of the coefficient of determination compares the fitted and intercept-only log-likelihoods and :For a Cox proportional-hazards model, these are maximized partial likelihood logarithms with and without the covariates. The expression measures improvement in fit, rather than the fraction of variation in event times explained. Its attainable maximum can be below one. It does not test the proportional hazards assumption or establish predictive calibration.
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 expectation step 2026-10-14
Hold the old statistical parameters fixed when taking the conditional expectation, while keeping the candidate statistical parameters variable:For independent observations in a finite mixture model, is a hidden component label. Bayes' theorem gives its mixture responsibilities:These posterior probabilities are the conditional expectations of the mixture allocation indicators; they turn hidden counts into fractional counts.[ref]
Maximum Likelihood from Incomplete Data via the EM Algorithm by Arthur Pentland Dempster and others. Section 4.3, printed pp. 15-16, especially the paragraph following equation (4.3.3): conditional indicator probabilities and weighted counts
They condition on a current fixed fit, rather than averaging over a posterior distribution of the statistical parameters. Taking the conditional expectation of the complete-data log-likelihood is essential: substituting a single guessed label, or merely substituting the conditional mean into a nonlinear complete-data expression, generally gives a different algorithm. 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 merged multinomial cells 2026-10-14
For a multinomial distribution with two unobserved cells merged into one observed count, the conditional allocation is a binomial distribution with probabilities proportional to the two cell probabilities. The expectation-maximization algorithm replaces the missing counts by their conditional expectations in the parameter-dependent part of the complete-data log-likelihood. The expectation of a log-factorial normalization generally differs from its value at the expected count, but this difference is independent of the candidate parameter and does not affect the maximization step.
EM for zero-inflated negative binomial regression Created 2026-10-05 Updated 2026-10-14
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.
EM likelihood monotonicity Created 2026-10-05 Updated 2026-10-14
For , the Jensen inequality givesThus any expectation-maximization algorithm M-step that increases cannot decrease the observed-data likelihood function.[ref]
For a short proof, assume common support and finite expressions, and keep the E-step conditional distribution fixed. The concavity of the logarithm and Jensen's inequality giveThis evidence lower bound equals . At , the ratio inside the expectation is the constant , so equality holds. During the M-step, the second term is constant; increasing raises a lower bound that touches the current log-likelihood. HenceIncreasing likelihood values alone do not establish convergence of the statistical parameters or attainment of a global maximum. In a differentiable finite mixture model, the gradient of equals the candidate-parameter gradient of evaluated at the current fit. Thus an interior fixed point of an exact M-step is a stationary point, which need not be a local maximum; the Identical-mean EM trap is an explicit counterexample. Small changes in log-likelihood can also occur before the means have settled, so inspecting both is useful.
EM maximization step 2026-10-14
Maximize over the permitted statistical parameters, with the E-step conditional distribution held fixed.[ref]
Maximum Likelihood from Incomplete Data via the EM Algorithm by Arthur Pentland Dempster and others. Section 2, printed p. 6: general maximization step
A finite mixture model hasFor normal distributions with known common variance and fixed positive mixture weights, only the means are fitted. Dropping terms independent of these candidate means givesThe derivative in is , and its second derivative is . Thus a positive weighted count gives a unique maximizing weighted mean. This is a maximization of the surrogate ; the observed-data log-likelihood need not be concave. Recompute the mixture responsibilities after updating the means. The broader EM for Gaussian mixtures with a common variance also estimates mixture weights and the shared variance. Expectation-maximization algorithm Created 2026-10-03 Updated 2026-10-14
The expectation-maximization algorithm fits a latent-variable model by alternating a conditional expectation over the latent variables with a maximization over the statistical parameters. Its target is the observed-data likelihood function, although its updates use the simpler complete-data log-likelihood.[ref]
Maximum Likelihood from Incomplete Data via the EM Algorithm by Arthur Pentland Dempster and others. Section 2, printed p. 6, equation (2.17) and the general E-step/M-step definition
Write for the observations, for the latent variables, and for their joint probability density function or probability mass function. The observed-data log-likelihood iswhere the integral becomes a sum for discrete . Directly maximizing a logarithm of this sum can be awkward. The E-step instead computes a conditional distribution at the current statistical parameters ; the M-step uses it to construct a new fit. The attractive idea is to retain uncertainty about the hidden labels while recovering simple weighted means and other complete-data updates. The Known-variance Gaussian mixture EM example shows the mechanism without estimating a variance or mixture weight.
Arthur Pentland Dempster, Nan M. Laird, and Donald B. Rubin gave the general framework its name in their 1977 paper, which also discusses earlier special-case algorithms.[ref]
Maximum Likelihood from Incomplete Data via the EM Algorithm by Arthur Pentland Dempster and others. Section 1, printed pp. 1 and 3: naming of the two steps and earlier special cases