ArticleslgStudy

mathematics

Dirichlet process

Dirichlet process 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 process rather than just read about it. In short: In probability theory, Dirichlet processes (after the distribution associated with Peter Gustav Lejeune Dirichlet) are a family of stochastic processes whose realizations are probability distributions. In other words, a Dirichlet process is a probability distribution whose range is itself a set of probability distributions.

Dirichlet process — main illustration
Dirichlet process — illustration

Key takeaways

  • Dirichlet process 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 process to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dirichlet process from memory before moving on to harder problems.

Reference excerpt

In probability theory, Dirichlet processes (after the distribution associated with Peter Gustav Lejeune Dirichlet) are a family of stochastic processes whose realizations are probability distributions. In other words, a Dirichlet process is a probability distribution whose range is itself a set of probability distributions. It is often used in Bayesian inference to describe the prior knowledge about the distribution of random variables—how likely it is that the random variables are distributed according to one or another particular distribution. As an example, a single die represents a probability mass function (pmf), so a bag of 100 real-world dice is a collection of random pmfs—when you put your hand in the bag and draw out a die, you draw a single random pmf, thus sampling from that collection of pmfs. A bag of dice manufactured using a crude process 100 years ago will likely contain dice that deviate wildly from the uniform pmf, whereas a bag of state-of-the-art dice used by Las Vegas casinos may have barely perceptible imperfections. Such a collection of pmfs may be modeled by a distribution over pmfs, such as the Dirichlet distribution. The Dirichlet process is specified by a base distribution H and a positive real number α called the concentration parameter (also known as scaling parameter). The base distribution is the expected value of the process, i.e., the Dirichlet process draws distributions "around" the base distribution the way a normal distribution draws real numbers around its mean. However, even if the base distribution is continuous, the distributions drawn from the Dirichlet process are almost surely discrete. The scaling parameter specifies how strong this discretization is: in the limit of α→0, the realizations are all concentrated at a single value, while in the limit of α→∞ the realizations become continuous. Between the two extremes the realizations are discrete distributions with less and less concentration as α increases. The Dirichlet process can also be seen as the infinite-dimensional generalization of the Dirichlet distribution. In the same way as the Dirichlet distribution is the conjugate prior for the categorical distribution, the Dirichlet process is the conjugate prior for infinite, nonparametric discrete distributions. A particularly important application of Dirichlet processes is as a prior probability distribution in infinite mixture models. The Dirichlet process was formally introduced by Thomas S. Ferguson in 1973. It has since been applied in data mining and machine learning, among others for natural language processing, computer vision and bioinformatics.

Introduction Dirichlet processes are usually used when modelling data that tends to repeat previous values in a so-called "rich get richer" fashion. Specifically, suppose that the generation of values X1,X2,… can be simulated by the following algorithm.

Input: H (a probability distribution called base distribution), α (a positive real number called scaling parameter) For n≥1:

At the same time, another common model for data is that the observations X1,X2,… are assumed to be independent and identically distributed (i.i.d.) according to some (random) distribution P. The goal of introducing Dirichlet processes is to be able to describe the procedure outlined above in this i.i.d. model. The X1,X2,… observations in the algorithm are not independent, since we have to consider the previous results when generating the next value. They are, however, exchangeable. This fact can be shown by calculating the joint probability distribution of the observations and noticing that the resulting formula only depends on which x values occur among the observations and how many repetitions they each have. Because of this exchangeability, de Finetti's representation theorem applies and it implies that the observations X1,X2,… are conditionally independent given a (latent) distribution P. This P is a random variable itself and has a distribution. This distribution (over distributions) is called a Dirichlet process (DP). In summary, this means that we get an equivalent procedure to the above algorithm:

Draw a distribution P from DP⁡(H,α) Draw observations X1,X2,… independently from P. In practice, however, drawing a concrete distribution P is impossible, since its specification requires an infinite amount of information. This is a common phenomenon in the context of Bayesian non-parametric statistics where a typical task is to learn distributions on function spaces, which involve effectively infinitely many parameters. The key insight is that in many applications the infinite-dimensional distributions appear only as an intermediary computational device and are not required for either the initial specification of prior beliefs or for the statement of the final inference.

Formal definition Given a measurable set S, a base probability distribution H and a positive real number α, the Dirichlet process DP⁡(H,α) is a stochastic process whose sample path (or realization, i.e. an infinite sequence of random variates drawn from the process) is a probability distribution over S, such that the following holds. For any measurable finite partition of S, denoted {Bi}i=1n,

if X∼DP⁡(H,α) then (X(B1),…,X(Bn))∼Dir⁡(αH(B1),…,αH(Bn)), where Dir denotes the Dirichlet distribution and the notation X∼D means that the random variable X has the distribution D.

Alternative views There are several equivalent views of the Dirichlet process. Besides the formal definition above, the Dirichlet process can be defined implicitly through de Finetti's theorem as described in the first section; this is often called the Chinese restaurant process. A third alternative is the stick-breaking process, which defines the Dirichlet process constructively by writing a distribution sampled from the process as f(x)=∑k=1∞βkδxk(x), where {xk}k=1∞ are samples from the base distribution H, δxk is an indicator function centered on xk (zero everywhere except for δxk(xk)=1) and the βk are defined by a recursive scheme that repeatedly samples from the beta distribution Beta⁡(1,α).

The Chinese restaurant process

… excerpt ends here. Continue reading the full article.

Illustrations

Dirichlet process: Draws from the Dirichlet process DP⁡(N(0,1),α). The four rows use different alpha α  (top to bottom: 1, 10, 100 and 1000) and each row contains three repetitions of the same experiment. As seen from the graphs, draws from a Dirichlet process are discrete distributions and they become less concentrated (more spread out) with increasing α. The graphs were generated using the stick-breaking process view of the Dirichlet process.
Draws from the Dirichlet process DP⁡(N(0,1),α). The four rows use different alpha α (top to bottom: 1, 10, 100 and 1000) and each row contains three repetitions of the same experiment. As seen from the graphs, draws from a Dirichlet process are discrete distributions and they become less concentrated (more spread out) with increasing α. The graphs were generated using the stick-breaking process view of the Dirichlet process.
Dirichlet process: Simulation of 1000 observations drawn from a Dirichlet mixture model. Each observation within a cluster is drawn independently from the multivariate normal distribution N(μk,1/4). The cluster means μk are drawn from a distribution G which itself is drawn from a Dirichlet process with concentration parameter α=0.5 and base distribution H=N(2,16). Each row is a new simulation.
Simulation of 1000 observations drawn from a Dirichlet mixture model. Each observation within a cluster is drawn independently from the multivariate normal distribution N(μk,1/4). The cluster means μk are drawn from a distribution G which itself is drawn from a Dirichlet process with concentration parameter α=0.5 and base distribution H=N(2,16). Each row is a new simulation.

Worked examples

Example 1 — a first encounter with Dirichlet process

Start with the simplest possible case. Write down what Dirichlet process 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 process 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 process 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 process

In research
Dirichlet process 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 process 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 process is common in secondary-school and first-year university syllabi. It links to neighbouring topics Nonparametric Bayesian statistics, Stochastic processes, so understanding it makes those chapters shorter.
In everyday life
Look for Dirichlet process 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 process” →

How to study Dirichlet process in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dirichlet process 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 process out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dirichlet process in simple terms?

In probability theory, Dirichlet processes (after the distribution associated with Peter Gustav Lejeune Dirichlet) are a family of stochastic processes whose realizations are probability distributions. In other words, a Dirichlet process is a probability distribution whose range is itself a set of…

Why does Dirichlet process 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 process?

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 process.

Tags

  • Nonparametric Bayesian statistics
  • Stochastic processes

Keep exploring