Dirichlet distribution Created 2026-09-24 Updated 2026-11-05
For and parameters , the Dirichlet distribution is a probability distribution on the probability simplex , . With , its probability density function in coordinates , with , ison the simplex interior. This is a density relative to , not to -dimensional Lebesgue measure, for which the simplex has zero volume.[ref]
SciPy Reference: scipy.stats.dirichlet. Notes: positive parameters, simplex support and multivariate beta normalizer
For , the first coordinate has the beta distribution with parameters . For and all parameters one, the coordinate triangle has area and density , giving the uniform law in those coordinates. More generally, independent gamma distributions with shapes and a common rate can be normalized by their sum to generate a Dirichlet vector. The expected value of is ; the parameters describe both average proportions and their concentration, rather than allowing the coordinates to vary independently.
In a finite normal distribution mixture with allocation labels , independently assign , and weights a Dirichlet distribution. Let count allocations to component and sum their observations. The conditional mean precision is , giving . The conditional variance is the displayed inverse-gamma distribution; weights have Dirichlet parameters increased by allocation counts. Allocation probabilities are proportional to . Independence of the mean prior from is important: its density does not add an extra inverse-gamma shape term.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 43 3 a iv Solution Created 2026-10-03 Updated 2026-10-14
Choose a fixed Dirichlet distribution proposal with every , independent of the current state, and propose the entire weight vector. This automatically respects the simplex constraint. With , the Independence Metropolis–Hastings algorithm accepts withThis includes , not merely the posterior ratio. A particularly simple choice is , the weight prior: its factors cancel and the ratio is just the mixture likelihood ratio. A proposal concentrated around a pilot estimate can mix better, provided it retains positive density throughout the relevant simplex. Both target and proposal densities use the same independent simplex coordinates, so this direct weight proposal has no extra transformation Jacobian determinant.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 43 3 b i Solution Created 2026-10-03 Updated 2026-10-14
Use the data augmentation labels to separate the mixture into groups. Define , and . The intended joint posterior distribution is proportional toSumming over all allocation labels recovers the marginal mixture posterior. The Gaussian mixture Gibbs updates with independent priors follow by collecting the terms in each parameter.
For , the conditional exponent isCompleting the square givesFor , the conditional density is proportional to , henceThe independent prior on adds neither a factor nor a penalty. Finally, combining the allocation counts with the Dirichlet distribution prior givesA Gibbs sampler successively draws from these conditionals, using the most recently updated values. An empty component has , so its mean and variance conditionals reduce to their proper priors without dividing by an undefined group sample mean.