Math 2.0

Statistics Definition

Expectation–maximization algorithm

Builds on Likelihood functionMaximum likelihood estimationConditional expectationJensen's inequality

Definition

Let p(x,z;θ)p(x, z; \theta), for θ∈Θ\theta \in \Theta, be a family of joint densities of observed data xx and unobserved (latent) data zz. The observed-data likelihood is L(θ)=∫p(x,z;θ) dzL(\theta) = \int p(x, z; \theta)\, dz, and p(z∣x;θ)=p(x,z;θ)/L(θ)p(z \mid x; \theta) = p(x, z; \theta)/L(\theta) is the conditional density of zz. The expectation–maximization algorithm starts from θ(0)∈Θ\theta^{(0)} \in \Theta and, for t=0,1,2,…t = 0, 1, 2, \dots, repeats two steps:

  1. (E-step) compute the function Q(θ∣θ(t))=EZ∼p(⋅∣x;θ(t))[log⁡p(x,Z;θ)]Q(\theta \mid \theta^{(t)}) = E_{Z \sim p(\cdot \mid x; \theta^{(t)})}\big[\log p(x, Z; \theta)\big];
  2. (M-step) choose θ(t+1)\theta^{(t+1)} that maximizes θ↦Q(θ∣θ(t))\theta \mapsto Q(\theta \mid \theta^{(t)}) over Θ\Theta.

Remarks

The key property is monotonicity: L(θ(t+1))≥L(θ(t))L(\theta^{(t+1)}) \ge L(\theta^{(t)}). Indeed, log⁡L(θ)=Q(θ∣θ(t))−E[log⁡p(Z∣x;θ)]\log L(\theta) = Q(\theta \mid \theta^{(t)}) - E\big[\log p(Z \mid x; \theta)\big] with the expectation over Z∼p(⋅∣x;θ(t))Z \sim p(\cdot \mid x; \theta^{(t)}), and by Jensen's inequality the second term is smallest at θ=θ(t)\theta = \theta^{(t)}. The E-step is a conditional expectation given the observed data. The iterates need not converge to the maximum likelihood estimate: they may stop at a local maximum or a saddle point.

Example: a mixture of two normal densities π φμ1,1+(1−π) φμ2,1\pi\, \varphi_{\mu_1, 1} + (1 - \pi)\, \varphi_{\mu_2, 1} with latent labels zi∈{1,2}z_i \in \set{1, 2}. The E-step computes the weights wi=πφμ1,1(xi)/(πφμ1,1(xi)+(1−π)φμ2,1(xi))w_i = \pi \varphi_{\mu_1,1}(x_i) / \big(\pi \varphi_{\mu_1,1}(x_i) + (1-\pi)\varphi_{\mu_2,1}(x_i)\big) at the current parameters; the M-step sets π=1n∑iwi\pi = \frac{1}{n}\sum_i w_i, μ1=∑iwixi/∑iwi\mu_1 = \sum_i w_i x_i / \sum_i w_i and μ2=∑i(1−wi)xi/∑i(1−wi)\mu_2 = \sum_i (1 - w_i) x_i / \sum_i (1 - w_i).

Non-example: if the M-step only chooses some θ(t+1)\theta^{(t+1)} with Q(θ(t+1)∣θ(t))≥Q(θ(t)∣θ(t))Q(\theta^{(t+1)} \mid \theta^{(t)}) \ge Q(\theta^{(t)} \mid \theta^{(t)}), without maximizing, clause 2 fails; this variant is called a generalized EM algorithm, and it keeps the monotonicity property.

Reading path

To understand this page from the ground up, read these 77 pages in order. The foundations come first.

  1. Construction of the reals from Cauchy sequences concept
  2. Convex function definition
  3. Element definition
  4. Integers object
  5. Ordered field definition
  6. Proposition concept
  7. Random experiment concept
  8. Rational numbers object
  9. Real numbers object
  10. Jensen's inequality statement
  11. Set definition
  12. Ring of integers statement
  13. Disjunction definition
  14. Implication definition
  15. Predicate definition
  16. Ordered pair definition
  17. Union definition
  18. Sample space definition
  19. The rationals form a field statement
  20. Existential quantifier definition
  21. Universal quantifier definition
  22. Cartesian product definition
  23. Subset definition
  24. The rationals form an ordered field statement
  25. Uniqueness quantifier definition
  26. Binary relation definition
  27. Order on the reals definition
  28. Power set definition
  29. Universal set definition
  30. Interval definition
  31. Function definition
  32. Complement definition
  33. Injective function definition
  34. Preimage of a set definition
  35. Sigma-algebra definition
  36. Countable set definition
  37. Event definition
  38. Borel sigma-algebra definition
  39. Probability axioms concept
  40. Probability measure definition
  41. Probability distribution definition
  42. Probability space definition
  43. Conditional probability definition
  44. Random variable definition
  45. Cumulative distribution function definition
  46. Discrete random variable definition
  47. Law of a random variable definition
  48. Independence of two events definition
  49. Convergence in probability definition
  50. Random variable with a density definition
  51. Joint probability distribution definition
  52. Probability mass function definition
  53. Mutual independence of events definition
  54. Expected value definition
  55. Identically distributed random variables definition
  56. Independence of two random variables definition
  57. Probability density function definition
  58. Marginal distribution definition
  59. Conditional expectation definition
  60. Independent sigma-algebras definition
  61. Variance definition
  62. Linearity of expectation statement
  63. Independence of random variables definition
  64. Independence means the joint law is the product of the marginals statement
  65. Covariance definition
  66. Independent and identically distributed random variables definition
  67. Expectation of a product of independent random variables statement
  68. Variance of a sum statement
  69. Statistic definition
  70. Likelihood function definition
  71. Independent random variables are uncorrelated statement
  72. Estimator definition
  73. Variance of a sum of independent random variables statement
  74. Sample mean definition
  75. Consistent estimator definition
  76. Maximum likelihood estimation concept
  77. Expectation–maximization algorithm definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Expectation–maximization_algorithm
About this page
TagSNEAX8ZKV6
URIm2://SNEAX8ZKV6
Kinddefinition
WritingW0 stub
MSC62F10, 65C60
DefinesExpectation–maximization algorithm
UsesLikelihood function, Maximum likelihood estimation, Conditional expectation, Jensen's inequality

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.