Docsity

Principles of Data Mining Lecture 10: Probabilistic Model-based Clustering - Prof. Lise Ge, Study notes of Computer Science

Partial preview of the text

Download Principles of Data Mining Lecture 10: Probabilistic Model-based Clustering - Prof. Lise Ge and more Study notes Computer Science in PDF only on Docsity!

CMSC828G

Principles of Data Mining

Lecture #

Today’s Reading:

– HMS, 9.6, 6.4, 7.3.2, 7.4, 8.

Today’s Lecture:

  • Probabilistic Model-based Clustering– Descriptive Modeling

Upcoming Due Dates:

  • H2 due Thu 3/

Families of Clustering Algorithms

Partition-based methods

  • e.g., K-means

Hierarchical clustering

  • e.g., hierarchical agglomerative clustering

Probabilistic model-based clustering

  • e.g., mixture models

Gaussian Mixture Models (GMM)

K components

model for each component cluster N(

k

k

1

2

3

=

K

1

k

k

k

k

) , ; x ( f w ) x ( p

much borrowed from Andrew Moore’s Clustering Gaussian Mixtures Lecture notes

GMM cont.

Generative Model

2

3

choose component with probability w

k

generate X ~ N(

μ

k

σ

k

1

1

X

Look Familiar?

P(D |

μ

1

μ

k

σ

1

σ

k

) gives us the probability for a

particular choice of

μ

1

μ

k

σ

1

σ

k

How do we choose

μ

i^

σ

?i

Find

μ

i^

that maximize the likelihood

Set and solve for

μ

i

0 ) , , , , , | D ( P

log

k

1

k

1

j

K

K

Problem: we have a bunch on non-linear non-analytically-solvable equations

One solution: gradient descent….

slow

instead….

Expectation Maximization (EM)

Dempster, Laird, and Rubin, 1977

extremely

popular recently

applicable in a wide range of problems

many uses: hidden markov models,

basic idea is quite simple…

Jensen’s Inequality

http://www.engineering.usu.edu/classes/ece/7680/lecture2/node5.html

EM Algorithm

EM algorithm alternates between

maximize F with respect to dist. Q with

θ

fixed

maximize F with respect to

θ

with Q = p(H) fixed

Q
F
max
arg
Q

k

k

Q

1

k

Q
F
max
arg

k

1

k

1

k

θ

E-step:M-step:

Maximum for E step:

) , D | H ( p Q

k

1

k

Maximum for M step:

) | H , D ( p

log

) , D | H ( p

max

arg

k

H

k

1

k

θ

θ

=

θ

∑

θ

Intuition:•In the E-step, we estimate the distribution on the hidden variables,conditioned on a particular setting of the parameter vector

θ

k

•In the M-step, we choose new set of parameters

θ

k+

to maximize

the expected log-likelihood of observed data

Back to our example…

We want to fit a normal mixture distribution:

=

K

1

k

k

k

k

k

) , ; x ( f w ) x ( f w

k

is prior probability of x belonging to component

(w

1

, …. w

k

μ

1

μ

k

σ

1

σ

k

) is parameter vector

then probability of data point x coming from kth class is:

x

f

) , ; x ( f w ) x | k (

ˆP

k

k

k

k

E-step:

M-step:

=

=

n

1

k

k

)) i ( x | k (

ˆP

1 n

wˆ

=

=

μ

n

1

k

k

k

) i (

x

))i

(

x

|

k (

ˆP

nw

1

ˆ

2

k

n

1

k

k

k

)

) i ( x

))( i ( x | k (

ˆP

nw

1

ˆ

μ

−

=

σ

=

EM Demo

EM demo

http://diwww.epfl.ch/mantra/tutorial/english/gaussian/html/

Likelihood as function of EM Iteration figure 9.2 in text

Probabilistic Model-based clustering

model provides full distributional description for eachcomponent; we may be able to interpret differencesin the distributions

Given the model, each data point has a K-componentvector of probabilities that it belongs to each group(why this is called soft-clustering)

EM algorithm can be extended for MAP and Bayesianestimation

Method can be extended to data that are not in pdimensional vector form.

mixtures of sequence

models, e.g. markov models, others

key cost: assumption of parametric model

How to choose K

Choose K that maximizes likelihood?

NOT.

As K is increased, the value of the likelihood atmaximum cannot decrease

Problem of scoring models with different complexities

Model Selection

First, as we mentioned before, there are two possiblegoals in constructing a model

Goal #1:

summarization

  • we would like to describe the data as precisely as possible– given that our model is comprehensible (subjective) or

compact (objective)

  • general approach based on data compression and

information-theoretic arguments results in a score function:

)

M ,

(

p

log

) M , | D ( p

log

)

M ,

(

score

θ − θ − = θ

score(

θ

,M) = # of bits to describe the data given the model +

number of bits to describe the model

of bits to transmit

the model

of bits to transmit

the data that is not accounted

for by the model