In probability theory and statistics, the Dirichlet-multinomial distribution is a family of discrete multivariate probability distributions on a finite support of non-negative integers. It is also called the Dirichlet compound multinomial distribution (DCM) or multivariate Pólya distribution (after George Pólya). It is a compound probability distribution, where a probability vector p is drawn from a Dirichlet distribution with parameter vector 𝜶, and an observation drawn from a multinomial distribution with probability vector p and number of trials n. The Dirichlet parameter vector captures the prior belief about the situation and can be seen as a pseudocount: observations of each outcome that occur before the actual data is collected. The compounding corresponds to a Pólya urn scheme. It is frequently encountered in Bayesian statistics, machine learning, empirical Bayes methods and classical statistics as an overdispersed multinomial distribution. 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 𝐱=(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(𝐱∣n,𝜶)=∫𝐩Mult(𝐱∣n,𝐩)Dir(𝐩∣𝜶)d𝐩 which results in the following explicit formula:
Pr(𝐱∣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(𝐱∣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.
Properties
Moments Once again, let α0=∑αk and let pi=αi∑αk=αiα0, then the expected number of times the outcome i was observed over n trials is
E(Xi)=npi=nαiα0. The covariance matrix is as follows. Each diagonal entry is the variance of a beta-binomially distributed random variable, and is therefore
var(Xi)=npi(1−pi)(n+∑αk1+∑αk)=nαiα0(1−αiα0)(n+α01+α0). The off-diagonal entries are the covariances:
cov(Xi,Xj)=−npipj(n+∑αk1+∑αk)=−nαiαjα02(n+α01+α0) for i, j distinct. All covariances are negative because for fixed n, an increase in one component of a Dirichlet-multinomial vector requires a decrease in another component. This is a K × K positive-semidefinite matrix of rank K − 1. The entries of the corresponding correlation matrix are
ρ(Xi,Xi)=1. ρ(Xi,Xj)=cov(Xi,Xj)var(Xi)var(Xj)=−pipj(n+α01+α0)pi(1−pi)(n+α01+α0)pj(1−pj)(n+α01+α0)=−αiαj(α0−αi)(α0−αj). The sample size drops out of this expression. Each of the k components separately has a beta-binomial distribution. The support of the Dirichlet-multinomial distribution is the set
{(n1,…,nk)∈ℕk|n1+⋯+nk=n}. Its number of elements is
(n+k−1k−1).
Matrix notation In matrix notation,
E(𝐗)=n𝐩, and
var(𝐗)=n{diag(𝐩)−𝐩𝐩T}(n+α01+α0), with pT = the row vector transpose of the column vector p. Letting
α0=1−ρ2ρ2, we can write alternatively var(𝐗)=n{diag(𝐩)−𝐩𝐩T}(1+ρ2(n−1)), The parameter ρ is known as the "intra class" or "intra cluster" correlation. It is this positive correlation which gives rise to overdispersion relative to the multinomial distribution.
Aggregation If
X=(X1,…,XK)∼DM(α1,⋯,αK) then, if the random variables with subscripts i and j are dropped from the vector and replaced by their sum,
X′=(X1,…,Xi+Xj,…,XK)∼DM(α1,⋯,αi+αj,⋯,αK). This aggregation property may be used to derive the marginal distribution of Xi.
Likelihood function Conceptually, we are making N independent draws from a categorical distribution with K categories. Let us represent the independent draws as random categorical variables zn for n=1…N. Let us denote the number of times a particular category k has been seen (for k=1…K) among all the categorical variables as nk, and ∑knk=N. Then, we have two separate views onto this problem:
… excerpt ends here. Continue reading the full article.