Docsity

Probabilistic Clustering: Mixture of Gaussians and EM Algorithm, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Probabilistic Clustering: Mixture of Gaussians and EM Algorithm and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

CS181 Lecture 10:

Probabilistic Methods 1

David C. Parkes

Outline

  • Prob. Methods for Clustering
    • mixture of Gaussians model
  • Maximum likelihood
  • EM algorithm
    • application to clustering

A Prob. Model for Clustering

• Key: Latent variables!

• Generate an example by:

  • pick cluster Y =k with some probability
  • given cluster, pick x 2 Rm^ from a multivariate Gaussian

(Bishop. Old Faithful data. 1 st. dev. contours. (b) E step. (c) M step; 2, 5, 20 interations.)

Multivariate Gaussians

  • Multivariate Gaussian

N (X = x | ¹, )

  • Multivariate Gaussian (Diagonal)

N ( X = x | ¹, ) where  is diagonal

  • Multivariate Gaussian (Identity)

N ( X = x | ¹, ¾^2 I ) where I is the identity matrix

O (m^2 ) parameters

O (m ) parameters

O (m ) parameters

Multivariate Gaussians

  • Multivariate Gaussian

N (X = x | ¹, )

  • Multivariate Gaussian (Diagonal)

N ( X = x | ¹, ) where  is diagonal

  • Multivariate Gaussian (Identity)

N ( X = x | ¹, ¾^2 I ) where I is the identity matrix

O (m^2 ) parameters

O (m ) parameters

O (m ) parameters

Mixture-of-Gaussians

How to train w/ missing

variables?

  • Challenge: Can’t observe cluster assignments in data
  • Solution: the EM (Expectation- Maximization) algorithm!
  • A very general and powerful method

Example

(vs. K Means)

Properties of EM

  • Theorem. The likelihood of data D increases at the end of every M-step.
  • (local optimum ) restart can be useful)
  • Note: for clustering, initialize EM so that component means are distinct (otherwise components always identical)

Example: Global Maximum

Example: Local Maximum