Dirichlet Distribution
A continuous random vector on the -simplex follows the Dirichlet distribution with concentration parameters , defined by the probability density function
where is the multivariate Beta function, generalizing the two-parameter Beta function .The Dirichlet distribution is the natural extension of the Beta distribution from a single proportion to a vector of proportions that must sum to one. It models random probability vectors—any collection of non-negative quantities that partition a whole.
Special cases:
- If , the Dirichlet reduces to the Beta: and .
- If , then —the uniform distribution on the simplex.
- If all (the symmetric Dirichlet), the density is invariant to permutations of the components.
The concentration sum controls how tightly the distribution concentrates around its mean. Large yields vectors close to ; small pushes mass toward the corners of the simplex (sparse vectors where one component dominates).
Bayesian Interpretation conjugate prior for the Multinomial likelihood. If and , then the posterior is The parameters act as pseudo-counts: prior observations of category . This generalizes Beta–Binomial conjugacy to the multivariate setting.
The Dirichlet is the
Intuition
The Dirichlet distribution is best understood as a distribution over probability vectors. Just as the Beta distribution models uncertainty about a single probability , the Dirichlet models uncertainty about a vector of probabilities constrained to lie on the simplex.
Imagine you are modeling a -sided die whose face probabilities are unknown. Before rolling, your prior belief about is . Each represents how strongly you believe face will appear—larger pulls more probability toward face . After observing occurrences of face in rolls, the posterior is , just as in the Beta-Binomial case but for all categories simultaneously.
The concentration sum controls confidence: a symmetric is tightly concentrated near , expressing strong belief in a fair die, while concentrates near the corners, expressing a belief that one face dominates.
Properties
(Mean) , where .
(Variance) .
As , the variance shrinks like , concentrating the distribution around its mean.
(Covariance) For , .
The components are negatively correlated, mirroring the simplex constraint : if one component increases, the others must collectively decrease.
(Marginals) Each component is Beta: .
(Aggregation) If components and are merged, . More generally, any partition of into groups produces a with components whose parameters are the group sums.
(Gamma Construction) If are independent, then
This is the standard constructive definition of the Dirichlet, generalizing the Beta’s Gamma construction. It gives a concrete sampling algorithm: draw independent Gamma random variables and normalize.
(Neutrality) For any subset , the sum is independent of the ratios for . This “neutral” property means the total share allocated to a group is independent of how that share is distributed within the group.
(Posterior Predictive) Under a prior and Multinomial likelihood, the posterior predictive probability of the next observation falling in category after seeing counts is , the Laplace smoothing estimator.
Examples
Document Topic Modeling
In a topic model, each document has a topic distribution drawn from . A document contains words, with each word assigned to a topic according to . Suppose the observed topic counts are .
What is the posterior distribution over topic proportions? The posterior mean is , close to the observed proportions but slightly smoothed toward equality by the symmetric prior. The posterior is concentrated (large ), reflecting the substantial sample size.
By Dirichlet-Multinomial conjugacy,
Simplex Uniformity
Let —the uniform distribution on the -simplex .
What is the marginal distribution and expected value of ? By the marginals property, , which has density on . Its expected value is . Although the distribution on the simplex is uniform, each marginal is not uniform on —it is skewed toward because the constraint limits how large any single component can be.