Probability and statistics

π∼Dir⁡(α)\boldsymbol{\pi} \sim \operatorname{Dir}(\boldsymbol{\alpha}) Dirichlet distribution

Dir(α) is a distribution over probability vectors: each draw is a list of K numbers that sum to 1.

In ML papers

A draw from Dir⁡(α)\operatorname{Dir}(\boldsymbol{\alpha}) is itself a probability vector: KK non-negative numbers that sum to 1. It is the usual prior over the parameters of a Categorical distribution distribution, and it is conjugate to it: after seeing counts n\mathbf{n}, the posterior is Dir⁡(α+n)\operatorname{Dir}(\boldsymbol{\alpha} + \mathbf{n}).

The concentration parameters αk>0\alpha_k > 0 shape the draws. The mean is αk/∑jαj\alpha_k / \sum_j \alpha_j. Large α\alpha gives vectors close to the mean; all αk<1\alpha_k < 1 gives sparse vectors with most of the mass on a few classes. Latent Dirichlet allocation (Blei, Ng & Jordan 2003) uses it for each document's topic mix, and AlphaZero adds Dirichlet noise to its root move probabilities for exploration.

How to type it

LaTeXShows
\operatorname{Dir}(\boldsymbol{\alpha})Dir⁡(α)\operatorname{Dir}(\boldsymbol{\alpha})
\operatorname{Dirichlet}(\alpha)Dirichlet⁡(α)\operatorname{Dirichlet}(\alpha)

A worked example

α=(2,1,1):E[π]=(0.5,0.25,0.25)\boldsymbol{\alpha} = (2, 1, 1): \quad \mathbb{E}[\boldsymbol{\pi}] = (0.5, 0.25, 0.25)

Each draw is a different 3-way split, but on average the first class gets half the mass.

Related

y∼Cat⁡(π)y \sim \operatorname{Cat}(\boldsymbol{\pi})Categorical distributionα\alphaAlphaΔW\Delta WDelta (capital)

Decode this example →