Dirichlet distribution
From Wikipedia, the free encyclopedia
In probability and statistics, the Dirichlet distribution (after Johann Peter Gustav Lejeune Dirichlet), often denoted Dir(α), is a family of continuous multivariate probability distributions parametrized by the vector α of nonnegative reals. It is the multivariate generalization of the beta distribution, and conjugate prior of the multinomial distribution in Bayesian statistics.
Contents |
[edit] Probability density function
The probability density function of the Dirichlet distribution of order K is the following function of a K-dimensional vector x = (x1, ..., xK) with xi ≥ 0:
where α = (α1, ..., αK) is a parameter vector with αi ≥ 0. The Dirac delta δ ensures that the density is zero unless
The normalizing constant is the multinomial beta function, which is expressed in terms of the gamma function:
The density can therefore be written as the function
with domain the set of K-component vectors x over the nonnegative reals with |x|1 = 1 (i.e. the (K − 1)-simplex).
[edit] Properties
Let and then
The mode of the distribution is the vector (x1, ..., xK) with
The Dirichlet distribution is conjugate to the multinomial distribution in the following sense: if
where βi is the number of occurrences of i in a sample of n points from the discrete distribution on {1, ..., K} defined by X, then
This relationship is used in Bayesian statistics to estimate the hidden parameters, X, of a discrete probability distribution given a collection of n samples. Intuitively, if the prior is represented as Dir(α), then Dir(α + β) is the posterior following a sequence of observations with histogram β.
[edit] Connections to other distributions
If, for
- independently,
then
- and
Though the Xis are not independent from one another, they can be seen to be generated from a set of K independent gamma random variables. Unfortunately, since the sum V is lost in the process of forming X = (X1, ..., XK), it is not possible to recover the original gamma random variables from these values alone. Nevertheless, because independent random variables are simpler to work with, this reparametrization can still be useful for proofs about properties of the Dirichlet distribution.
[edit] Random number generation
A method to sample a random vector from the K-dimensional Dirichlet distribution with parameters follows immediately from this connection. First, draw K independent random samples from gamma distributions each with density
and then set
[edit] Intuitive interpretation of the parameters
For the case K=3, the probability density function is a concave, unimodal function defined on a filled triangle (the 2-simplex). The vector α/α0 is the mean (not mode) of the distribution.
[edit] See also
[edit] References
Non-Uniform Random Variate Generation, by Luc Devroye http://cg.scs.carleton.ca/~luc/rnbookindex.html