Tutorials › Multivariate Statistics (Graduate) › Why EM Increases the Observed Likelihood

Incomplete Multivariate Data · Tutorial 912 of 975

Why EM Increases the Observed Likelihood

Learn when an EM or generalized EM step guarantees a nondecreasing observed likelihood, and why finiteness conditions matter.

Advanced 11 min read

What You'll Learn

  • Define the complete-data density, observed-data likelihood, and current conditional distribution of the latent data.
  • Derive the likelihood decomposition into a Q-function difference and a posterior Kullback–Leibler divergence.
  • State the support and finiteness conditions needed for that decomposition.
  • Prove likelihood monotonicity for EM and generalized EM updates.
  • Use Jensen’s inequality to obtain a version based on an expected log-density ratio.
  • Recognize why subtracting two infinite Q-function values is invalid.

Why an EM step cannot lower the likelihood

With incomplete data, the observed-data likelihood is often difficult to maximize directly. The EM algorithm instead conditions on the unobserved part of the data, then maximizes an expected complete-data log likelihood. The important guarantee is precise but conditional: if the new parameter does not lower that expectation, and the relevant quantities satisfy suitable support and finiteness conditions, the observed-data likelihood cannot decrease.

The proof explains both why the algorithm works and where a careless version of the argument can fail. In particular, a difference of two expected log likelihoods is meaningful only when those expectations are finite; subtracting two values equal to negative infinity is not a valid operation.

Setup and regularity conditions

Write \(y\) for the observed data and \(u\) for the missing or latent data. Let \(g_\theta(y,u)\) be a joint density or mass function for the complete data, with respect to a fixed measure on the complete-data space. The observed-data likelihood is obtained by integrating or summing out \(u\). For a current parameter \(\theta_t\), assume the observed likelihoods below are positive and finite, and define the conditional density of \(U\) given \(y\) by \(p_t(u\mid y)=g_{\theta_t}(y,u)/h_{\theta_t}(y)\).

$$ h_\theta(y)=\int g_\theta(y,u)\,du, \qquad p_t(u\mid y)=\frac{g_{\theta_t}(y,u)}{h_{\theta_t}(y)}. $$

For discrete latent data, the integral is a sum. The EM auxiliary function is the conditional expectation of the complete-data log density under the current parameter:

$$ Q(\theta\mid\theta_t) = \int p_t(u\mid y)\log g_\theta(y,u)\,du. $$

The observed-data likelihood is \(h_\theta(y)\), so its log is \(\ell_{\mathrm{obs}}(\theta)=\log h_\theta(y)\). In a data set with multiple observations, \(y\) and \(u\) can denote the full observed and missing portions, and \(g_\theta\) their joint density.

Definition: An EM update chooses \(\theta_{t+1}\) to maximize \(Q(\theta\mid\theta_t)\), or at least to satisfy \(Q(\theta_{t+1}\mid\theta_t)\geq Q(\theta_t\mid\theta_t)\). An update satisfying this inequality, without necessarily maximizing \(Q\), is a generalized EM update.

The likelihood decomposition and monotonicity

Here is the standard decomposition in a form that makes its assumptions explicit. At the observed value \(y\), suppose \(h_{\theta_t}(y)\) and \(h_\theta(y)\) are positive and finite. Assume the two quantities \(Q(\theta\mid\theta_t)\) and \(Q(\theta_t\mid\theta_t)\) are each finite, and that \(g_\theta(y,u)>0\) wherever \(p_t(u\mid y)>0\). These conditions ensure the relevant log-density ratios are integrable under the current conditional distribution and avoid undefined expressions.

Theorem: Under those conditions, let \(p_\theta(u\mid y)=g_\theta(y,u)/h_\theta(y)\) and define \(D_{\mathrm{KL}}(p_t\|p_\theta)=\int p_t(u\mid y)\log\{p_t(u\mid y)/p_\theta(u\mid y)\}\,du\). Then \(\ell_{\mathrm{obs}}(\theta)-\ell_{\mathrm{obs}}(\theta_t) =Q(\theta\mid\theta_t)-Q(\theta_t\mid\theta_t)+D_{\mathrm{KL}}(p_t\|p_\theta)\). Consequently, any EM or generalized EM update satisfying the nondecrease condition for \(Q\) cannot lower the observed-data log likelihood.

Proof. By the definitions of the two conditional densities,

$$ \log\frac{p_t(u\mid y)}{p_\theta(u\mid y)} = \log\frac{g_{\theta_t}(y,u)}{g_\theta(y,u)} + \log\frac{h_\theta(y)}{h_{\theta_t}(y)}. $$

Integrate both sides with respect to \(p_t(u\mid y)\). The second term on the right is constant in \(u\), and the first term integrates to the negative of the difference in the two finite \(Q\)-function values. Therefore

$$ D_{\mathrm{KL}}(p_t\|p_\theta) = -\{Q(\theta\mid\theta_t)-Q(\theta_t\mid\theta_t)\} +\ell_{\mathrm{obs}}(\theta)-\ell_{\mathrm{obs}}(\theta_t). $$

The divergence is nonnegative. Indeed, for \(x>0\), \(\log x\leq x-1\). Apply this with \(x=p_\theta(u\mid y)/p_t(u\mid y)\), multiply by \(p_t(u\mid y)\), and integrate. Since both conditional densities integrate to one, this gives

$$ -D_{\mathrm{KL}}(p_t\|p_\theta) = \int p_t(u\mid y)\log\frac{p_\theta(u\mid y)}{p_t(u\mid y)}\,du \leq \int_{\{u:p_t(u\mid y)>0\}}\{p_\theta(u\mid y)-p_t(u\mid y)\}\,du \leq 0. $$

Rearranging the identity proves the decomposition. If \(Q(\theta\mid\theta_t)\geq Q(\theta_t\mid\theta_t)\), both the \(Q\)-function difference and the divergence are nonnegative, so \(\ell_{\mathrm{obs}}(\theta)\geq\ell_{\mathrm{obs}}(\theta_t)\). This proves the claimed monotonicity. \(\square\)

An exact maximization of \(Q\) is not required for the conclusion. It is enough that the update does not decrease \(Q\). This is why the monotonicity guarantee also applies to generalized EM steps.

A Jensen inequality version

There is a related argument that does not require writing the result as a difference of two finite \(Q\)-function values. Define the expected log-density ratio directly:

$$ D(\theta,\theta_t\mid y) = \int p_t(u\mid y) \log\frac{g_\theta(y,u)}{g_{\theta_t}(y,u)}\,du. $$

Suppose this expectation is finite, the ratio is positive \(p_t\)-almost surely, and its expectation under \(p_t\) is finite and positive. The integral below is over the support where \(g_{\theta_t}(y,u)>0\). Since \(p_t=g_{\theta_t}/h_{\theta_t}\), direct substitution gives

$$ E_t\left[\frac{g_\theta(y,U)}{g_{\theta_t}(y,U)}\mathrel{\Big|}y\right] = \frac{1}{h_{\theta_t}(y)} \int_{\{u:g_{\theta_t}(y,u)>0\}}g_\theta(y,u)\,du \leq \frac{h_\theta(y)}{h_{\theta_t}(y)}. $$

The inequality allows the candidate model to assign some mass to locations outside the current model’s support: that mass contributes to \(h_\theta(y)\), but not to the integral on the left. Taking logarithms preserves the inequality. Jensen’s inequality, applied to the logarithm, then gives

$$ \ell_{\mathrm{obs}}(\theta)-\ell_{\mathrm{obs}}(\theta_t) \geq \log E_t\left[\frac{g_\theta(y,U)}{g_{\theta_t}(y,U)}\mathrel{\Big|}y\right] \geq D(\theta,\theta_t\mid y). $$

Thus a nonnegative, well-defined expected log-density ratio is another sufficient condition for nondecreasing observed log likelihood. When both \(Q\)-function values are finite, this expectation equals their difference. Without that finiteness, it is safer to state the argument using \(D\) directly than to subtract \(Q\)-values that may not be defined as a finite difference.

Worked examples

Worked Example: A One-Observation Mixture Update

Suppose a single observed value \(y\) has density \(f_1(y)=0.8\) under component 1 and \(f_2(y)=0.2\) under component 2. The mixing proportion is \(\theta\), and the latent variable \(U\) records the component label. Start at \(\theta_t=0.25\).

The observed likelihood at the current value is \(h_{\theta_t}(y)=0.25(0.8)+0.75(0.2)=0.35=7/20\). The current conditional probability of component 1 is therefore \(r=P_{\theta_t}(U=1\mid y)=0.25(0.8)/0.35=4/7\).

Ignoring terms constant in \(\theta\), the auxiliary function is \(Q(\theta\mid\theta_t)=r\log\theta+(1-r)\log(1-\theta)\). Its maximizer is \(\theta_{t+1}=r=4/7\). The updated observed likelihood is \(h_{\theta_{t+1}}(y)=(4/7)(0.8)+(3/7)(0.2)=19/35\). Thus its ratio to the old likelihood is \((19/35)/(7/20)=76/49>1\), so the log likelihood increases by \(\log(76/49)\).

The decomposition also checks numerically. The \(Q\)-function gain is \((4/7)\log(16/7)+(3/7)\log(4/7)\), approximately \(0.233\). Under the updated parameter, the conditional probability of component 1 is \((4/7)(0.8)/(19/35)=16/19\). The divergence from the old conditional probability is \((4/7)\log\{(4/7)/(16/19)\}+(3/7)\log\{(3/7)/(3/19)\}\), approximately \(0.206\). Their sum, approximately \(0.439\), agrees with \(\log(76/49)\).

Worked Example: A Missing Coordinate in a Gaussian Model

Let a complete observation be \((X_1,X_2)\), with independent coordinates \(X_1\sim N(\mu_1,1)\) and \(X_2\sim N(\mu_2,1)\). For one case, observe \(X_1=a\) and leave \(X_2\) missing. At the current parameter \((\mu_{1t},\mu_{2t})\), the conditional distribution of \(X_2\) given the observed data is \(N(\mu_{2t},1)\), so its conditional mean is \(\mu_{2t}\) and its conditional variance is 1.

The expected complete-data log likelihood, up to a constant, is

$$ Q((\mu_1,\mu_2)\mid(\mu_{1t},\mu_{2t})) = -\frac12(a-\mu_1)^2 -\frac12\left\{1+(\mu_{2t}-\mu_2)^2\right\}. $$

The second term follows from \(E[(X_2-\mu_2)^2\mid X_1=a]=1+(\mu_{2t}-\mu_2)^2\). Maximizing \(Q\) gives \(\mu_{1,t+1}=a\) and \(\mu_{2,t+1}=\mu_{2t}\). The observed-data log likelihood, up to a constant, is \(-\tfrac12(a-\mu_1)^2\). Its change is therefore \(\tfrac12(a-\mu_{1t})^2\), which is nonnegative and is strictly positive when \(a\ne\mu_{1t}\). The missing coordinate does not add information about \(\mu_2\) in this model, so the EM update correctly leaves that coordinate unchanged.

Worked Example: Why Two Infinite Q-Values Cannot Be Subtracted

Consider a discrete latent variable with probabilities \(p_n=c/[n(\log n)^2]\), for \(n\geq2\), where \(c\) is the positive normalizing constant. Suppose the observed value \(y\) is certain under every parameter and the current and candidate complete-data distributions at \(y\) are both \(p_n\). Then the observed likelihoods are both 1, and the complete-data log-density ratio is identically zero. Its expectation is well-defined and equals zero.

However, the entropy is infinite. For sufficiently large \(n\), \(\log(1/p_n)=\log n+2\log\log n-\log c\), so the entropy sum contains terms of order \(1/(n\log n)\). Since \(\sum_{n\geq 2}1/(n\log n)\) diverges, \(\sum_n p_n\log(1/p_n)=\infty\). Consequently, both \(Q\)-values equal negative infinity.

The likelihood change and the expected log-density ratio are both zero, but the expression “candidate \(Q\)-value minus current \(Q\)-value” is \((-\infty)-(-\infty)\), which is undefined. The Jensen formulation using the directly defined log-density ratio remains valid here; the finite-\(Q\) decomposition does not apply.

Common pitfall and practical meaning

A common mistake is to say that the likelihood change equals a \(Q\)-function difference plus a nonnegative divergence without checking that the two \(Q\)-values are finite. A finite expectation of the log-density ratio alone does not ensure either \(Q\)-value is finite: both can be negative infinity even when their ratio is identically one. The correction is to state the decomposition with finite \(Q\)-values, as in the theorem, or to work directly with the well-defined expected log-density ratio and its conditions.

A second issue is support. The exact posterior-divergence identity requires the candidate complete-data density to be positive wherever the current conditional distribution places positive probability. If the candidate assigns zero density on a set of positive current conditional probability, the divergence can be infinite, and the finite identity above does not apply. The Jensen argument can still provide a useful likelihood bound when its own assumptions hold, but a nonnegative \(Q\)-gain should not be asserted from undefined quantities.

The monotonicity result matters because it distinguishes a fundamental guarantee from a convergence claim. Each valid EM step is nondecreasing in observed likelihood, but this fact alone does not prove that the iterates converge to a global maximum, or even that every limit point is a maximum. It also does not guarantee a strict increase: the likelihood may stay unchanged, as can happen when the missing data contain no information about a parameter. These are separate questions from the stepwise inequality proved here.

Key takeaway: Under suitable support and finiteness conditions, the observed log-likelihood change is the \(Q\)-function gain plus a nonnegative posterior divergence. A nondecreasing \(Q\)-step therefore guarantees a nondecreasing observed likelihood; when \(Q\)-values are not finite, use a carefully defined expected log-density ratio instead of subtracting infinities.

Check Your Understanding

Use the assumptions as carefully as the algebra.

  1. Which two nonnegative or nondecreasing terms establish the likelihood monotonicity identity?
  2. Why does a generalized EM update not need to maximize \(Q\) exactly?
  3. What support condition permits the posterior-divergence decomposition in the theorem?
  4. Why is the difference of two \(Q\)-values equal to negative infinity not a valid substitute for an expected log-density ratio?
  5. In the missing-coordinate Gaussian example, why does the update for \(\mu_2\) leave the current value unchanged?
Clinical Biostats