Science Fair Project Encyclopedia
Dirichlet distribution
In probability and statistics, the Dirichlet distribution (after Johann Peter Gustav Lejeune Dirichlet) is a continuous multivariate probability distribution. The Dirichlet distribution is the multivariate generalization of the beta distribution. It is the conjugate prior of the multinomial distribution in Bayesian statistics.
| Contents |
Specification of the Dirichlet distribution
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:
- Failed to parse (unknown function \propto): f(x) \propto \prod_{i=1}^K x_i^{\alpha_i - 1} \;\delta(0, 1 -\sum_{i=1}^K x_i)
where α = (α1, ..., αK) is a parameter vector with αi ≥ 0. The Kronecker 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 g given by
where the domain of g are the K-dimensional vectors x over the nonnegative reals with |x|1 = 1.
Let
. Then the means of
the random variables
are
, respectively. The variances are
, respectively.
Random number generation
One way to generate a random draw of
from the Dirichlet is to draw independent random variables
from the gamma distribution with density
, then set
.
Related topics
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details


