ArticleslgStudy

science

Dirichlet distribution

Dirichlet distribution is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dirichlet distribution rather than just read about it. In short: In probability and statistics, the Dirichlet distribution (after Peter Gustav Lejeune Dirichlet), often denoted Dir⁡(𝜶), is a family of continuous multivariate probability distributions parameterized by a vector α of positive reals. It is a multivariate generalization of the beta distribution, hence its alternative name of multivariate beta distribution (MBD).

Dirichlet distribution — main illustration
Dirichlet distribution — illustration

Key takeaways

  • Dirichlet distribution belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dirichlet distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dirichlet distribution from memory before moving on to harder problems.

Reference excerpt

In probability and statistics, the Dirichlet distribution (after Peter Gustav Lejeune Dirichlet), often denoted Dir⁡(𝜶), is a family of continuous multivariate probability distributions parameterized by a vector α of positive reals. It is a multivariate generalization of the beta distribution, hence its alternative name of multivariate beta distribution (MBD). Dirichlet distributions are commonly used as prior distributions in Bayesian statistics, and in fact, the Dirichlet distribution is the conjugate prior of the categorical distribution and multinomial 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, ℝK. 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 ‖𝒙‖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,[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.

Properties

… excerpt ends here. Continue reading the full article.

Illustrations

Dirichlet distribution illustration
Dirichlet distribution: Illustrating how the log of the density function changes when K=3 as we change the vector 𝜶 from 𝜶=(0.3,0.3,0.3) to (2.0,2.0,2.0), keeping all the individual αi's equal to each other.
Illustrating how the log of the density function changes when K=3 as we change the vector 𝜶 from 𝜶=(0.3,0.3,0.3) to (2.0,2.0,2.0), keeping all the individual αi's equal to each other.
Dirichlet distribution: 3D curve plot of the noninformative prior weight, with the convergence constant CW=2
3D curve plot of the noninformative prior weight, with the convergence constant CW=2
Dirichlet distribution: Example of Dirichlet(1/2,1/3,1/6) distribution
Example of Dirichlet(1/2,1/3,1/6) distribution

Worked examples

Example 1 — a first encounter with Dirichlet distribution

Start with the simplest possible case. Write down what Dirichlet distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dirichlet distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dirichlet distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dirichlet distribution

In research
Dirichlet distribution appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dirichlet distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dirichlet distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Conjugate prior distributions, Continuous distributions, Exponential family distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Dirichlet distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dirichlet distribution” →

How to study Dirichlet distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dirichlet distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dirichlet distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dirichlet distribution in simple terms?

In probability and statistics, the Dirichlet distribution (after Peter Gustav Lejeune Dirichlet), often denoted Dir⁡(𝜶), is a family of continuous multivariate probability distributions parameterized by a vector α of positive reals. It is a multivariate generalization of the beta distribution, hen…

Why does Dirichlet distribution matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dirichlet distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dirichlet distribution.

Tags

  • Conjugate prior distributions
  • Continuous distributions
  • Exponential family distributions
  • Multivariate continuous distributions

Keep exploring