26.10.2013 Views

Nonparametric Bayesian Discrete Latent Variable Models for ...

Nonparametric Bayesian Discrete Latent Variable Models for ...

Nonparametric Bayesian Discrete Latent Variable Models for ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

and Bush and MacEachern (1996).<br />

3.2 MCMC Inference in Dirichlet Process Mixture <strong>Models</strong><br />

In detail, the state of the Markov chain consists of the indicator variables c =<br />

{c1, . . . , cN} and the component parameters φc = {φk, k ∈ c} The prior <strong>for</strong> the indicator<br />

variables is given by eq. (3.8). Combining this with the likelihood, the conditional<br />

posterior is;<br />

assigning to components <strong>for</strong> which n−i,k > 0 :<br />

assigning to a new component:<br />

P (ci = k|xi, c−i, α, φ) ∝<br />

P (ci = ci ′ <strong>for</strong> all i = i′ |xi, c−i, α) ∝<br />

n−i,k<br />

N − 1 + α F (xi | φk),<br />

<br />

α<br />

N − 1 + α<br />

F (xi | φ)dG0(φ).<br />

(3.30)<br />

That is, we either choose to assign the data point i to one of the existing components, or<br />

, defined in eq. (3.28).<br />

create a new active component by sampling its parameter from Gi 0<br />

Note that if xi belongs to a singleton component, the parameter value of that component<br />

will be removed from the representation when ci is updated. After updating the indicator<br />

variables, the component parameters are updated by sampling from their posterior<br />

conditioned on the data points assigned to them,<br />

P (φk | X, c) ∝ F (xi, ∀ci = k | φk)G0. (3.31)<br />

Algorithm 2 Gibbs sampling <strong>for</strong> conjugate DPM models using indicator variables and<br />

component parameters.<br />

The state of the Markov chain consists of the indicator variables c = {c1, . . . , cN} and<br />

the component parameters φc = {φk, k ∈ c}<br />

Repeatedly sample:<br />

<strong>for</strong> all i = 1, . . . , N do<br />

Update ci using eq. (3.30)<br />

If ci is assigned to a singleton, sample a parameter <strong>for</strong> this component from G0<br />

end <strong>for</strong><br />

<strong>for</strong> all k = 1, . . . , K † do<br />

Update φk by sampling from its posterior, eq. (3.31)<br />

end <strong>for</strong><br />

This algorithm can be further simplified by integrating over the φ, and eliminating<br />

them from the state (Neal, 1992; MacEachern, 1994).<br />

27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!