From the Mixture Likelihood to a Lower Bound
A finite Gaussian mixture describes each observation through an unobserved component allocation. The observed-data likelihood sums over those possible allocations, and the logarithm of that sum is difficult to optimize directly. The expectation-maximization (EM) algorithm makes this structure manageable by introducing a distribution over allocations and optimizing a lower bound on the log-likelihood.
This derivation uses the Gaussian-mixture model and latent allocations directly. Write \(x_1,\ldots,x_n\in\mathbb{R}^d\) for independent observations and \(Z_i\in\{1,\ldots,K\}\) for the component generating \(x_i\). Let \(\theta=(\pi_1,\ldots,\pi_K,\mu_1,\ldots,\mu_K,\Sigma_1,\ldots,\Sigma_K)\), where \(\pi_k>0\), \(\sum_{k=1}^K\pi_k=1\), and each covariance matrix \(\Sigma_k\) is positive definite. The component density is the \(d\)-variate Gaussian density \(\phi_d(x;\mu_k,\Sigma_k)\).
For any \(q\) assigning positive probability only to allocations with positive joint probability, Jensen’s inequality gives a lower bound. In the Gaussian mixture with strictly positive weights and nonsingular covariances, every allocation has positive posterior probability for finite observations, so this condition causes no restriction.
To prove the identity, use Bayes’ rule to write \(p(x,Z\mid\theta)=p(Z\mid x,\theta)p(x\mid\theta)\). Taking logarithms and expectation under \(q\) gives $$ E_q[\log p(x,Z\mid\theta)] = E_q[\log p(Z\mid x,\theta)]+\log p(x\mid\theta). $$ Subtracting \(E_q[\log q(Z)]\) from both sides yields \(\mathcal{L}(q,\theta)=\ell(\theta)-\operatorname{KL}(q\|p(Z\mid x,\theta))\). The divergence is nonnegative: applying \(\log t\leq t-1\) to \(t=p(Z\mid x,\theta)/q(Z)\) on the support of \(q\) shows $$ -\operatorname{KL}(q\|p) = E_q\!\left[\log\frac{p}{q}\right] \leq E_q\!\left[\frac{p}{q}-1\right] \leq 0. $$ Equality in the divergence holds precisely when the distributions agree (up to probability-zero sets). This proves the result. \(\square\)
Responsibilities and the E-Step
For independent observations, the posterior distribution of the allocation vector factorizes across observations. Its one-observation probabilities are the posterior responsibilities. At a current parameter value \(\theta^{(t)}\), define $$ \tau_{ik}^{(t)} = P(Z_i=k\mid x_i,\theta^{(t)}) = \frac{\pi_k^{(t)}\phi_d(x_i;\mu_k^{(t)},\Sigma_k^{(t)})} {\sum_{j=1}^K\pi_j^{(t)}\phi_d(x_i;\mu_j^{(t)},\Sigma_j^{(t)})}. $$