Math 2.0

Probability theory and stochastic processes Probability distributions Example

Dirichlet distribution

Builds on Gamma functionGamma distributionBeta distribution

Example

Let K≥2K \ge 2 and α1,…,αK>0\alpha_1, \dots, \alpha_K > 0, and let α0=α1+⋯+αK\alpha_0 = \alpha_1 + \dots + \alpha_K. The Dirichlet distribution Dir⁡(α1,…,αK)\operatorname{Dir}(\alpha_1, \dots, \alpha_K) is the law of a random vector (X1,…,XK)(X_1, \dots, X_K) in the open simplex {x∈ℝK:xi>0, x1+⋯+xK=1}\set{x \in \R^K : x_i > 0, \ x_1 + \dots + x_K = 1}. The vector (X1,…,XK−1)(X_1, \dots, X_{K-1}) has the density f(x1,…,xK−1)=Γ(α0)Γ(α1)⋯Γ(αK)∏i=1Kxiαi−1f(x_1, \dots, x_{K-1}) = \frac{\Gamma(\alpha_0)}{\Gamma(\alpha_1) \cdots \Gamma(\alpha_K)} \prod_{i=1}^K x_i^{\alpha_i - 1} on the set where all xi>0x_i > 0 and x1+⋯+xK−1<1x_1 + \dots + x_{K-1} < 1, with xK=1−x1−⋯−xK−1x_K = 1 - x_1 - \dots - x_{K-1}; here Γ\Gamma is the gamma function. A construction: if Y1,…,YKY_1, \dots, Y_K are independent and YiY_i has the gamma distribution with shape αi\alpha_i and scale 11, then (Y1,…,YK)/(Y1+⋯+YK)(Y_1, \dots, Y_K) / (Y_1 + \dots + Y_K) has law Dir⁡(α1,…,αK)\operatorname{Dir}(\alpha_1, \dots, \alpha_K). Check for K=2K = 2: the density becomes Γ(α1+α2)Γ(α1)Γ(α2)xα1−1(1−x)α2−1\frac{\Gamma(\alpha_1 + \alpha_2)}{\Gamma(\alpha_1)\Gamma(\alpha_2)} x^{\alpha_1 - 1} (1 - x)^{\alpha_2 - 1} on (0,1)(0, 1), so X1X_1 has the beta distribution with parameters α1,α2\alpha_1, \alpha_2. The means are E[Xi]=αi/α0E[X_i] = \alpha_i / \alpha_0 and the variances are Var⁡(Xi)=αi(α0−αi)α02(α0+1)\operatorname{Var}(X_i) = \frac{\alpha_i (\alpha_0 - \alpha_i)}{\alpha_0^2 (\alpha_0 + 1)}.

Remarks

If all αi=1\alpha_i = 1, the density is constant, so the law is uniform on the simplex. The Dirichlet law is the conjugate prior of the multinomial law: with prior Dir⁡(α1,…,αK)\operatorname{Dir}(\alpha_1, \dots, \alpha_K) for the cell probabilities and observed counts n1,…,nKn_1, \dots, n_K, the posterior is Dir⁡(α1+n1,…,αK+nK)\operatorname{Dir}(\alpha_1 + n_1, \dots, \alpha_K + n_K). It is the finite-dimensional building block of the Dirichlet process.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Beta distribution concept
  2. Gamma distribution concept
  3. Gamma function concept
  4. Dirichlet distribution example

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Dirichlet_distribution
About this page
TagRX4CVSSRRJ
URIm2://RX4CVSSRRJ
Kindexample
WritingW0 stub
MSC60E05, 62E15, 62F15
Instance ofProbability distribution
UsesGamma function, Gamma distribution, Beta distribution
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by