Lably
Skip to content

Dirichlet distribution

Probability distribution

  • 16 min read
  • 5 chapters

Related on Lably

Through Probability, Statistics and Probability distribution

The infinite-dimensional generalization of the Dirichlet distribution is the Dirichlet process.

Definitions

Probability density function

The Dirichlet distribution of order K≥2 with parameters α1,…,αK>0 has a probability density function given by

f(x1,…,xK;α1,…,αK)=1B(α)∏i=1Kxiαi−1 where xi∈[0,1] for all i∈{1,…,K} and ∑i=1Kxi=1. That is, the probability density function is defined on the standard K−1 simplex embedded in ⁠K⁠-dimensional Euclidean space, RK.

The normalizing constant is the multivariate beta function, which can be expressed in terms of the gamma function:

B(α)=∏i=1KΓ(αi)Γ(∑i=1Kαi),α=(α1,…,αK).

Support

The support of the Dirichlet distribution is the set of K-dimensional vectors x whose entries are real numbers in the interval [0,1] such that ‖x‖1=1, i.e. the sum of the coordinates is equal to 1. These can be viewed as the probabilities of a K-way categorical event. Another way to express this is that the domain of the Dirichlet distribution is itself a set of probability distributions, specifically the set of K-dimensional discrete distributions. The technical term for the set of points in the support of a K-dimensional Dirichlet distribution is the open standard (K − 1)-simplex, which is a generalization of a triangle, embedded in the next-higher dimension. For example, with K = 3, the support is an equilateral triangle embedded in a downward-angle fashion in three-dimensional space, with vertices at (1,0,0), (0,1,0) and (0,0,1), i.e. touching each of the coordinate axes at a point 1 unit away from the origin.

Symmetric cases

A common special case is the symmetric Dirichlet distribution, where all of the elements making up the parameter vector α have the same value. The symmetric case might be useful, for example, when a Dirichlet prior over components is called for, but there is no prior knowledge favoring one component over another. Since all elements of the parameter vector have the same value, the symmetric Dirichlet distribution can be parametrized by a single scalar value α, called the concentration parameter. In terms of α, the density function has the form

f(x1,…,xK;α)=Γ(αK)Γ(α)K∏i=1Kxiα−1.

When α = 1, the symmetric Dirichlet distribution is equivalent to a uniform distribution over the open standard (K−1)-simplex, i.e. it is uniform over all points in its support. This particular distribution is known as the flat Dirichlet distribution. Values of the concentration parameter above 1 prefer variates that are dense, evenly distributed distributions, i.e. all the values within a single sample are similar to each other. Values of the concentration parameter below 1 prefer sparse distributions, i.e. most of the values within a single sample will be close to 0, and the vast majority of the mass will be concentrated in a few of the values.

When α = 1/2, the distribution is the same as would be obtained by choosing a point uniformly at random from the (K−1)-dimensional unit hypersphere, which is the surface of a K-dimensional unit hyperball, and squaring each coordinate. The α = 1/2 distribution is the Jeffreys prior for the Dirichlet distribution.

With specified expectations

Instead of specifying the vector of concentration parameters α, one may wish to specify the expected probability distribution Ei=αiα0 where α0=∑j=1Kαj such that the concentration parameters are written as the product α=WE of the (scalar) concentration weight ⁠W⁠ and the expected probability distribution E whose components are non-negative and sum up to 1. The concentration weight in this case is larger by a factor of K than the concentration parameter for a symmetric Dirichlet distribution described above. This construction ties in with concept of a base measure when discussing Dirichlet processes and is often used in the topic modelling literature.

When the dimension of the Dirichlet distribution is large, Jeffreys prior produces a correspondingly high prior concentration weight. For example when ⁠K=100⁠, the prior concentration weight becomes ⁠W=K/2=50⁠, which creates a relatively stiff prior probability distribution E∗ where initially the posterior probability distribution E hardly changes in the presence of observed data, even in the case of e.g. 10 observations where all observations indicate the same category Xi, which naturally and intuitively should produce an expected probability Ei close to 1. A way to avoid the misbehaviour of the stiff prior is to use the noninformative prior weight W from subjective logic, where the concentration parameters αi are expressed as a function of the observations ri according to αi=ri+WEi∗. The noninformative prior concentration weight ⁠W⁠ is a function of the number of observations r0=∑ri, expressed as W=K(1+CWr0)1+Kr0 where ⁠CW⁠ is a convergence constant, normally chosen to be equal to 2. The choice of CW=2 ensures that the Dirichlet distribution of any dimension has the same sensitivity to new observations as the Beta distribution with prior concentration parameters α+β=2 (or the uniform α=β=1). In the case of a uniform prior probability distribution E∗, the noninformative prior weight W also ensures a uniform prior Dirichlet distribution for any dimension K. A 3D plot of W is illustrated in the figure.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Topics in mathematics