Lably
Skip to content

Dirichlet-multinomial distribution

Distributions in probability theory

  • 16 min read
  • 5 chapters

Related on Lably

Through Statistics, Probability distribution and Machine learning

It reduces to the categorical distribution as a special case when n = 1. It also approximates the multinomial distribution arbitrarily well for large α. The Dirichlet-multinomial is a multivariate extension of the beta-binomial distribution, as the multinomial and Dirichlet distributions are multivariate versions of the binomial distribution and beta distributions, respectively.

Specification

Dirichlet-multinomial as a compound distribution

The Dirichlet distribution is a conjugate distribution to the multinomial distribution. This fact leads to an analytically tractable compound distribution. For a random vector of category counts x=(x1,…,xK), distributed according to a multinomial distribution, the marginal distribution is obtained by integrating on the distribution for p which can be thought of as a random vector following a Dirichlet distribution:

Pr(x∣n,α)=∫pMult(x∣n,p)Dir(p∣α)dp

which results in the following explicit formula:

Pr(x∣n,α)=Γ(α0)Γ(n+1)Γ(n+α0)∏k=1KΓ(xk+αk)Γ(αk)Γ(xk+1)

where α0 is defined as the sum α0=∑αk. Another form for this same compound distribution, written more compactly in terms of the beta function, B, is as follows:

Pr(x∣n,α)=nB(α0,n)∏k:xk>0xkB(αk,xk).

The latter form emphasizes the fact that zero count categories can be ignored in the calculation - a useful fact when the number of categories is very large and sparse (e.g. word counts in documents).

Observe that the pdf is the Beta-binomial distribution when K=2. It can also be shown that it approaches the multinomial distribution as α0 approaches infinity. The parameter α0 governs the degree of overdispersion or burstiness relative to the multinomial. Alternative choices to denote α0 found in the literature are S and A.

Dirichlet-multinomial as an urn model

The Dirichlet-multinomial distribution can also be motivated via an urn model for positive integer values of the vector α, known as the Polya urn model. Specifically, imagine an urn containing balls of K colors numbering αi for the ith color, where random draws are made. When a ball is randomly drawn and observed, then two balls of the same color are returned to the urn. If this is performed n times, then the probability of observing the random vector x of color counts is a Dirichlet-multinomial with parameters n and α. If the random draws are with simple replacement (no balls over and above the observed ball are added to the urn), then the distribution follows a multinomial distribution and if the random draws are made without replacement, the distribution follows a multivariate hypergeometric distribution.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Topics in mathematics