Lably
Skip to content

Dirichlet process

Family of stochastic processes

  • 15 min read
  • 7 chapters

Related on Lably

Through Stochastic process, Realization (probability) and Probability 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:

a) With probability αα+n−1 draw Xn from H.

b) With probability nxα+n−1 set Xn=x, where nx is the number of previous observations of x.
(Formally, nx:=|{j:Xj=x and j<n}| where |⋅| denotes the number of elements in the set.)

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:

  1. Draw a distribution P from DP⁡(H,α)
  2. 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.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Statistics