DirichletDistribution
DirichletDistribution[{α_{1},…,α_{k+1}}]
represents a Dirichlet distribution of dimension k with shape parameters α_{i}.
Details
 DirichletDistribution is also known as multivariate beta distribution.
 The probability density for vector in a Dirichlet distribution is proportional to for and .
 DirichletDistribution allows α_{i} to be any positive real number.
 DirichletDistribution allows α_{i} to be a dimensionless quantity.
 DirichletDistribution can be used with such functions as Mean, CDF, and RandomVariate.
Background & Context
 DirichletDistribution[{α_{1},…,α_{k+1}}] represents a continuous multivariate statistical distribution defined over ktuples of positive real numbers whose sum is less than one and for which . The marginal distributions (MarginalDistribution) of DirichletDistribution[{α_{1},…,α_{k+1}}] are all versions of BetaDistribution parametrized by various linear combinations of the components α_{i}. As a result, the Dirichlet distribution is parametrized by a tuple (α_{1},…,α_{k+1}) whose components α_{i} are all positive real numbers that together determine the overall shape of its probability density function (PDF). The Dirichlet distribution is sometimes referred to as the multivariate beta distribution.
 The PDF of a Dirichlet distribution has an absolute maximum at its mean, i.e. at the kvector whose components are the onevariable means of its univariate marginal PDF. The tails of each of the associated marginal PDFs corresponding to a Dirichlet distribution are "fat," in the sense that the marginal PDF decreases algebraically for large values of rather than decreasing exponentially. (This behavior can be made quantitatively precise by analyzing the SurvivalFunction of these distributions.)
 The Dirichlet distribution is named for German mathematician Johann Dirichlet. It has been used as a tool for modeling both realworld and theoretical phenomena since its formal introduction by Thomas Ferguson in the 1970s. The Dirichlet distribution is a finite version of the more general Dirichlet process, an infinitedimensional stochastic process that, roughly speaking, assigns a probability distribution to each of a collection of probability distributions according to a specific algorithm. Similarly, the Dirichlet distribution often occurs as a prior distribution in Bayesian statistics, including as the conjugate prior for MultinomialDistribution. One interesting application of the Dirichlet distribution is in modeling randomness among accuracies of (fair) dice manufactured over time, noting that dice manufactured more recently tend to be "fairer" because of more precise manufacturing processes. The Dirichlet distribution has also been applied to data mining, machine learning, and computer vision. More recently, the Dirichlet distribution has been used to model the frequencies of words across collections of texts.
 RandomVariate can be used to give one or more machine or arbitraryprecision (the latter via the WorkingPrecision option) pseudorandom variates from a Dirichlet distribution. Distributed[{x_{1},…,x_{k}},DirichletDistribution[{α_{1},…,α_{k+1}}]], written more concisely as {x_{1},…,x_{k}}DirichletDistribution[{α_{1},…,α_{k+1}}], can be used to assert that a ktuple (x_{1},…,x_{k}) of random variables is distributed according to a Dirichlet distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
 The probability density and cumulative distribution functions may be given using PDF[DirichletDistribution[{α_{1},…,α_{k+1}}],{x_{1},…,x_{k}}] and CDF[DirichletDistribution[{α_{1},…,α_{k+1}}],{x_{1},…,x_{k}}]. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively. Moreover, Covariance can be used to compute the covariance matrix corresponding to DirichletDistribution.
 DistributionFitTest can be used to test if a given dataset is consistent with a Dirichlet distribution, EstimatedDistribution to estimate a Dirichlet parametric distribution from given data, and FindDistributionParameters to fit data to a Dirichlet distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic Dirichlet distribution, and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic Dirichlet distribution.
 TransformedDistribution can be used to represent a transformed Dirichlet distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higherdimensional distributions that contain a Dirichlet distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving Dirichlet distributions.
 DirichletDistribution is closely related to a number of other distributions. As noted previously, DirichletDistribution has close ties with BetaDistribution, in the sense that each of its marginal distributions is a beta distribution. Moreover, any onedimensional Dirichlet distribution is a beta distribution, in the sense that the PDF of DirichletDistribution[{α_{1},α_{2}}] is precisely that of BetaDistribution[α_{1},α_{2}]. DirichletDistribution is also related to GammaDistribution, in the sense that the random variable is distributed according to DirichletDistribution whenever is the gammadistributed random variable defined by the sum of k independently distributed gamma variates Y_{1},…,Y_{k}. DirichletDistribution is the conjugate prior of MultinomialDistribution and is also related to BetaPrimeDistribution, CompoundPoissonDistribution, and MultinormalDistribution.
Examples
open all close allBasic Examples (4)
Scope (8)
Applications (5)
Properties & Relations (2)
Introduced in 2010
Updated in 2016
(8.0)

(10.4)