Jump to content

Mixture model: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 44: Line 44:
:<math> P(x_{i}) = (1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma) + f \mathcal{N}(x_{i};\mu_{2},\sigma)</math>
:<math> P(x_{i}) = (1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma) + f \mathcal{N}(x_{i};\mu_{2},\sigma)</math>


Where <math>f</math> is the mixing coefficient in <math>(0,1]</math>, and we assume <math>\sigma</math> is known and constant. For each of our data points <math>x_{i}</math>, we can compute a membership value for each of the two Gaussians as follows
Where <math>f</math> is the mixing coefficient in <math>[0,1]</math>, and we assume <math>\sigma</math> is known and constant. For each of our data points <math>x_{i}</math>, we can compute a membership value for each of the two Gaussians as follows


:<math> y_{1,i} = \frac{(1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma)}{(1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma) + f \mathcal{N}(x_{i};\mu_{2},\sigma)}</math>
:<math> y_{1,i} = \frac{(1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma)}{(1 - f) \mathcal{N}(x_{i};\mu_{1},\sigma) + f \mathcal{N}(x_{i};\mu_{2},\sigma)}</math>

Revision as of 22:39, 5 December 2005

In mathematical statistics, the term mixture model has two different meanings.

One definition

A mixture model is a model in which the independent variables are measured as fractions of a total. For example, suppose researchers are trying to find the optimal mixture of ingredients for a fruit punch consisting of grape juice, mango juice, and pineapple juice. A mixture model is suitable here because the results of the taste tests will not depend on the amount of ingredients used to make the batch but rather on the fraction of each ingredient present in the punch. The sum of the mixture components is always 100%, and a mixture model takes this restriction into account.

Another definition

A mixture model can also be a formalism for modeling a probability density function as a sum of parameterized functions. In mathematical terms,

where is the modeled probability distribution function, is the number of components in the mixture model, and is mixture proportion of component . By definition, for all and .

is a probability distribution parameterized by .

Mixture models are often used when we know and we can sample from , but we would like to determine the and values. Such situations can arise in studies in which we sample from a population that is composed of several distinct subpopulations.

Two common approaches for estimation in mixture models

It's common to think of mixture modeling (under the second definition) as a missing data problem. One way to understand this is to assume that the data points under consideration have "membership" in one of the distributions we are using to model the data. When we start, this membership is unknown, or missing. The job of estimation is to devise appropriate parameters for the model functions we choose, with the connection to the data points being represented as their membership in the individual model distributions.

Expectation maximization

The Expectation-maximization algorithm is one way to compute the missing memberships of data points in our chosen distribution model. It is an iterative procedure, where we start with initial parameters for our model distribution (the 's and 's of the model listed above). The estimation process proceeds iteratively in two steps, the Expectation Step, and the Maximization Step.

The expectation step

With initial guesses for the parameters in our mixture model, we compute "partial membership" of each data point in each constituent distribution. This is done by calculating expectation values for the membership variables of each data point. An example will provide some clarity. Let's consider a simple example. We have a collection of data points that can be modeled as coming from a sum of two Gaussian distributions. The probability expression for our model is

Where is the mixing coefficient in , and we assume is known and constant. For each of our data points , we can compute a membership value for each of the two Gaussians as follows

and similarly for .

The maximization step

With our expectation values in hand for group membership, we can recompute plug-in estimates of our distribution parameters. For the mixing coefficient this is simply the fractional membership of all data points in the second Gaussian.

where is the total number of data points. For μ1,

With new estimates for and the 's, we proceed back to the Expectation step to recompute new membership values. The procedure is repeated until there is no further change in the mixture model parameters.

Markov chain Monte Carlo

As an alternative to the EM algorithm, we can use posterior sampling as indicated by Bayes' theorem to deduce parameters in our mixture model. Once again we regard this as an incomplete data problem where membership of data points is our missing data. We resort to a method called Gibbs sampling which is once again a two step iterative procedure.

We'll use the example from the previous section to demonstrate how the method works. We start again with initial guessed parameters for our mixture model. Instead of computing partial memberships for each elemental distribution, we draw a membership value for each data point from a binomial distribution (it will be assigned to either the first or the second Gaussian). The binomial parameter is determined for each data point on the basis of one of the constituent distributions. Draws from the distribution generate membership associations for each data point. We can then use plug-in estimators as in the M step of EM to generate a new set of mixture model parameters, and return to the binomial draw step.

Further reading

  1. Finite Mixture Models, G. McLachlan, D. Peel, Wiley (2000)
  2. Marin, J.M., Mengersen, K. and Robert, C.P. "Bayesian modelling and inference on mixtures of distributions". Handbook of Statistics 25, D. Dey and C.R. Rao (eds). Elsevier-Sciences (to appear). available as PDF

Mixture modelling page, maintained by D.L. Dowe.