ArticleslgStudy

mathematics

Dirichlet-multinomial distribution

Dirichlet-multinomial distribution is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dirichlet-multinomial distribution rather than just read about it. In short: 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).

Key takeaways

  • Dirichlet-multinomial distribution belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dirichlet-multinomial distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dirichlet-multinomial distribution from memory before moving on to harder problems.

Reference excerpt

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.

Worked examples

Example 1 — a first encounter with Dirichlet-multinomial distribution

Start with the simplest possible case. Write down what Dirichlet-multinomial distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dirichlet-multinomial distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dirichlet-multinomial distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dirichlet-multinomial distribution

In research
Dirichlet-multinomial distribution appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dirichlet-multinomial distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dirichlet-multinomial distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Compound probability distributions, Discrete distributions, Multivariate discrete distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Dirichlet-multinomial distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dirichlet-multinomial distribution” →

How to study Dirichlet-multinomial distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dirichlet-multinomial distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dirichlet-multinomial distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dirichlet-multinomial distribution in simple terms?

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…

Why does Dirichlet-multinomial distribution matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dirichlet-multinomial distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dirichlet-multinomial distribution.

Tags

  • Compound probability distributions
  • Discrete distributions
  • Multivariate discrete distributions

Keep exploring