Skip to content

DirichletDistribution ​

The Dirichlet distribution on the (k−1)(k-1)-simplex with concentration parameters α1,…,αk\alpha_1,\ldots,\alpha_k.

DirichletDistribution({alpha1, ..., alphak})distribution on the (k-1)-simplex, parameterised over the first k-1 coordinates.
Typed signatures
TypePackageApplies
(list<real>) -> distributionstatisticsalways

Domain: Statistics

Details
  • Wolfram's own parameterisation is over the FIRST k−1k-1 coordinates: PDFPDF takes a (k−1)(k-1)-list {x1,…,xk−1}\{x_1,\ldots,x_{k-1}\}, with xk:=1−∑i<kxix_k := 1-\sum_{i<k} x_i implicit, and MeanMean/VarianceVariance are each (k−1)(k-1)-lists — αk\alpha_k's own coordinate is never reported directly (confirmed from Wolfram's own DirichletDistribution reference page: Mean/Variance examples for a 3-parameter call return length-2 lists).
  • PDF(x)=(∏i=1kxiαi−1)/B(α)PDF(x) = \left(\prod_{i=1}^k x_i^{\alpha_i-1}\right) / B(\alpha), B(α)=∏iΓ(αi)/Γ(∑iαi)B(\alpha) = \prod_i \Gamma(\alpha_i) / \Gamma(\sum_i \alpha_i).
  • Meani=αi/∑αMean_i = \alpha_i / \sum \alpha for i=1,…,k−1i = 1,\ldots,k-1.
  • Variancei=αi(∑α−αi)/((∑α)2(∑α+1))Variance_i = \alpha_i(\sum\alpha - \alpha_i) / \left((\sum\alpha)^2(\sum\alpha+1)\right) for i=1,…,k−1i = 1,\ldots,k-1.
  • CDF and RandomVariate are not implemented for this head (out of scope for this batch) — stay unevaluated.

Examples

Basic #
live ↗
Inmean(DirichletDistribution([1,4,5]))\mathrm{mean}(\mathrm{DirichletDistribution}(\bigl\lbrack1, 4, 5\bigr\rbrack))Out[110,25]\bigl\lbrack\frac{1}{10}, \frac{2}{5}\bigr\rbrack
live ↗
InVariance(DirichletDistribution([1,4,5]))\mathrm{Variance}(\mathrm{DirichletDistribution}(\bigl\lbrack1, 4, 5\bigr\rbrack))Out[91 100,6275]\bigl\lbrack\frac{9}{1\,100}, \frac{6}{275}\bigr\rbrack

=10.08= 10.08 — the integer-argument Gamma values reduce to factorials.

live ↗
InPDF⁡(DirichletDistribution([1,4,5]),[110,25])\operatorname{PDF}(\mathrm{DirichletDistribution}(\bigl\lbrack1, 4, 5\bigr\rbrack), \bigl\lbrack\frac{1}{10}, \frac{2}{5}\bigr\rbrack)Out25225\frac{252}{25}
About
Examples3

See also: Mean, Variance, Distributed