11 / 15 · Nonparametric and Topic Models
Dirichlet processes
Mixture models without a fixed number of components: the Dirichlet process as a limit of finite mixtures, the Chinese restaurant and stick-breaking constructions, how fast clusters appear, and collapsed Gibbs sampling.
Conjugate priors and the exponential family · EM and Bayesian PCA · Gibbs sampling
On this page 10
Two hundred points in the plane form a few round clouds. How many? A mixture of Gaussians needs the answer before it starts. The usual remedy is to fit the mixture for and keep the with the best BIC or evidence. That treats a quantity we are uncertain about as a choice made from outside: each is a separate fit, the answer is one number with no uncertainty attached, and when new points arrive, perhaps from a cluster never seen before, the whole procedure starts again.
The Gaussian process let a regression function become as complex as the data required. Can a mixture do the same, with a number of clusters that is inferred together with everything else and grows as data arrive? It can, if we let the number of components go to infinity in the right way.
A Bayesian mixture with chosen in advance#
A finite Bayesian mixture draws the weights from a symmetric Dirichlet distribution and the cluster parameters from a base distribution , then generates each point from one cluster:
where is the cluster label of point and the distribution of a point in a cluster with parameter . It is the Gaussian mixture of the EM note with priors on its parameters, and Gibbs sampling or variational inference fits it.
Two properties of the Dirichlet distribution, both from the conjugate priors note, do the work. It is conjugate to the categorical distribution: after observing labels with counts , the weights are . And it has a closed-form predictive. Integrating out,
the posterior mean of : the pseudo-count rule of the beta–binomial. The model still needs .
From the Dirichlet distribution to the Dirichlet process#
Let grow while the total concentration stays fixed. Suppose the first labels occupy clusters. Each occupied cluster keeps its predictive probability, and the empty ones share the rest:
The limit is a well-defined prior on partitions of the data that never mentions : an occupied cluster attracts the next point in proportion to its size, and a new cluster opens with probability proportional to (Neal, 2000; Rasmussen, 2000). The labels themselves lose their meaning; only which points share a cluster remains.
What becomes of the weights? There are infinitely many, so they no longer form a vector, but they still define a random distribution. Attach to each component its parameter and form , which puts mass at ; is a point mass at . Ferguson (1973) characterized the law of directly. follows a Dirichlet process, , if for every partition of the parameter space into measurable sets ,
The definition is consistent because of the aggregation property of the Dirichlet distribution: merging two components of a Dirichlet vector gives a Dirichlet vector whose parameter is the sum of the two, so refining or coarsening the partition never contradicts itself.
Derivation of the aggregation property
Let and . The change of variables from to has Jacobian 1, so the density of is the Dirichlet density integrated over . Only two factors involve , and the substitution gives
The density of is therefore proportional to , which is .
Consistent finite-dimensional laws do not by themselves give one random distribution that has all of them. Ferguson obtained it from Kolmogorov’s consistency theorem and by normalizing a gamma process, Blackwell and MacQueen from the Pólya urn and de Finetti’s theorem; Teh (2010), section “Dirichlet Process”, reviews both. The proofs need measure theory beyond the course; the stick-breaking construction below builds such a explicitly.
The partition gives . Moments of a Dirichlet follow from its normalizing constant , with : multiplying the density by raises by one, and gives and . With and :
The base distribution is the mean of the random distribution, and the concentration says how tightly clusters around it. For a set with , the mass that gives it has standard deviation when and when .
Even with a large , is discrete with probability one: a countable sum of point masses, however smooth is. The stick-breaking construction below writes as exactly such a sum (Ferguson, 1973; Teh, 2010, section “Stick-breaking Construction”). Discreteness is what makes it a clustering prior. Draws from repeat values, and points with the same value form a cluster.
The construction parallels the Gaussian process of the previous note, a comparison drawn both by Teh (2010) and in the notes of Vetrov and Kropotov’s course (Osokin, 2014):
| Gaussian process | Dirichlet process | |
|---|---|---|
| indexed by | inputs | sets |
| a draw is | a function | a distribution |
| finite-dimensional marginals | Gaussian | Dirichlet |
| specified by | mean and kernel | base and concentration |
The posterior of #
Optional depth: the conjugacy of the Dirichlet process itself. The rest of the note does not depend on it.
The Dirichlet process is conjugate to sampling from it. Given independently, the counts of the in the sets update the Dirichlet distribution of by Dirichlet–categorical conjugacy, for every partition at once. Each updated parameter can be written as
a concentration times one fixed distribution evaluated on . These are the marginals of a Dirichlet process, so
The posterior base distribution mixes the prior , with weight , and the empirical distribution of the observations, with weight : is the strength of the prior counted in observations. Its mean is the predictive distribution of the next draw, the Pólya urn of Blackwell and MacQueen (1973). The draw equals one of the previous values with probability each, or is a fresh draw from with probability . Grouping equal values gives the limit rule above.
The Chinese restaurant process#
The limit rule has a picture, the Chinese restaurant process, named by Dubins and Pitman (Aldous, 1985; Teh, 2010). Customers enter a restaurant with infinitely many tables, one at a time. The first sits at the first table. Customer sits at an occupied table with probability , or at a new table with probability :
The Chinese restaurant process
Tables are clusters and customers are data points. A large table attracts more customers, a rich-get-richer effect that produces a few large clusters and a tail of small ones. Multiplying the seating probabilities of all customers gives the probability of a partition into tables of sizes . The numerators contribute for every table opened and for the later customers of table ; the denominators are whatever happens. So
where is the gamma function. It depends only on the table sizes; the order in which the customers arrived drops out. The process is exchangeable: any customer can be treated as the last to arrive, the property the Gibbs sampler below relies on.
Check it on four customers with : customers 1, 2 and 4 at one table and customer 3 alone. Seating them in order and using the formula give the same number:
How many clusters#
Customer opens a new table with probability , whatever happened before. The number of tables is a sum of these independent indicators, so
(Antoniak, 1974), where is the digamma function, the logarithmic derivative of . The middle form uses . The approximation replaces the sum by the integral . Since decreases, each term lies between the integral over and . So the approximation is a little low, and the gaps add up to at most , a telescoping sum. For , : the number of clusters grows without bound, but only logarithmically, and doubling the data adds about clusters.
| exact | 200 simulated restaurants | |||
|---|---|---|---|---|
| 1 | 100 | |||
| 5 | 1000 |
With the exact value is the harmonic number .
How many clusters the Chinese restaurant opens
The concentration therefore sets the prior number of clusters, and the data can revise it. In practice is either chosen from the expected number of clusters, by inverting the formula above, or given a gamma prior and sampled along with everything else (Escobar and West, 1995). It has a strong effect on the number of clusters and a weak one on predictions (Murphy, 2023, Supplementary Section 31.2.5).
Stick-breaking#
The restaurant describes the partition with integrated out. Sethuraman (1994) constructed itself. Break a stick of unit length: take a fraction of it as the first weight, a fraction of what remains as the second, and so on, with everything independent:
Then .
Why ? Watch only the first table of the restaurant. It starts with one customer; call everything else “elsewhere”, with the weight of a new table. Each later customer joins the first table with probability proportional to its size and goes elsewhere with probability proportional to the rest, . Whichever side a customer joins grows by one. This is a Pólya urn started with weights and , and the long-run share of such an urn is , the urn scheme for the Dirichlet distribution (Osokin, 2014, Section 1.2.3).
Why the long-run share is Beta(1, α)
Take later customers, of whom join the first table, in a fixed order. The joins contribute the numerators ; the others ; the denominators are whatever the order. With ,
The urn is therefore the same as drawing once and then letting each customer join independently with probability . Given , the law of large numbers sends the table’s share to .
The customers who went elsewhere form a restaurant of their own, so the second table takes a share of them, and so on. The sticks list the clusters in the order the restaurant opens them. In 1000 simulated restaurants of 300 customers with , the first table’s share has mean and standard deviation , and the second table’s share of the rest and , against and for .
The mean of is . By induction on , the mass left after sticks is : removing from leaves . Since the are independent, the expectation of each product is the product of expectations:
The weights decay geometrically on average. With the expected first three weights are , and ; with they are , and , and the mass left after sticks is on average. A small breaks off a few large pieces first, a large one many small pieces:
Stick-breaking for two values of α
The expected leftover mass is what makes truncation safe. Replace the infinite sum by sticks, the last one taking the rest. The truncated and the full agree on the first sticks and differ only in how they place the remaining mass, so their total variation distance is at most that mass, on average. Ishwaran and James (2001) bound the resulting change in the distribution of observations. Truncated stick-breaking is the basis of variational inference for Dirichlet process mixtures (Blei and Jordan, 2006).
Dirichlet process mixtures#
A Dirichlet process mixture uses as the mixing distribution of a mixture model:
Because is discrete, the repeat, and points with equal parameters form a cluster. Integrating out gives the form used for inference: the labels follow the Chinese restaurant process, each occupied cluster gets a parameter , and . It is the finite mixture of the first section in the limit , the infinite mixture model (Rasmussen, 2000). For Gaussian clusters, is a Gaussian with parameters and a prior on them.
Collapsed Gibbs sampling with the restaurant#
The posterior over partitions has no closed form, but its conditionals do. With a conjugate , the cluster parameters can be integrated out, and the sampler works on the labels alone: the collapsed Gibbs sampler of the Gibbs sampling note, here Algorithm 3 of Neal (2000). By Bayes’ rule, the label of point given everything else is proportional to its prior given the other labels times the likelihood of . By exchangeability, point can be treated as the last customer, so the prior is the seating rule, or , with a denominator that does not depend on . Given the partition, the points of a cluster share one parameter drawn from , independently of other clusters, so the likelihood is the cluster’s predictive density of . Remove the point from its table, then reseat it with
Here a subscript means “without point ”: and are the size and the points of cluster without it. is the posterior predictive of that cluster, and the prior predictive of an empty one. The first factor is the restaurant’s prior, the second how well the cluster explains the point. A cluster emptied by removing point disappears; choosing “new” creates one. The uncollapsed alternative keeps the and samples them in turn (Neal, 2000; Osokin, 2014, Section 3.2.2).
For Gaussian clusters with known variance, let in dimensions and . For a cluster holding points with sum , precisions add, as in the normal update:
the uncertainty about the cluster mean plus the noise: a new point is with and independent noise , and the variances of independent Gaussians add. With this is the prior predictive of a new cluster. A sweep keeps the counts and sums of each cluster, so reseating a point costs .
In one dimension, take , , and . The other points form cluster A, five points with mean 0, and cluster B, three points with mean 4. Reseat :
| prior weight | predictive mean | predictive variance | density at 3 | probability | |
|---|---|---|---|---|---|
| A | |||||
| B | |||||
| new |
Cluster B wins although it is smaller, because the point is close to it. A new cluster is more likely than cluster A, despite a prior weight five times smaller: its predictive is wide and gives some density everywhere, while A’s is narrow and centred three units away. For a non-conjugate the integrals have no closed form, and Algorithm 8 of Neal (2000) replaces them with a few auxiliary parameters drawn from .
An experiment: four clusters, an unknown number#
The Code section draws 200 points in the plane from four round clusters of 80, 60, 40 and 20 points with standard deviation 0.5, centred at the corners of a square of side 4. It runs the collapsed sampler with the true , a vague prior on the means ( around the data mean) and , for 100 sweeps, starting with all points in one cluster.
With seed 1 the final state has clusters of 80, 60, 40 and 20 points, an adjusted Rand index of against the truth, and the same log joint probability as the true partition.
The number of clusters is still a distribution. Over sweeps 21–100 of that run the sampler has four clusters in 21% of the sweeps and 5.2 on average, because points in the tails of the clusters keep opening and closing clusters of one or two points. The concentration sets the price of a new cluster:
| mean number of clusters | share of sweeps with four | |
|---|---|---|
| 0.1 | 92% | |
| 1 | 21% | |
| 10 | 0% |
scikit-learn’s BayesianGaussianMixture with a Dirichlet process prior, the variational method truncated at 10 sticks, agrees. It gives weights , , and to four components and at most to each of the other six, against the data’s proportions , , and .
Where it breaks#
Run the same sampler from five seeds, 0 to 4. Only seed 1 ends at the true partition. Seed 0 ends with the four clusters plus three stray points, close enough. The other three end with the 80-point cluster still split:
| seed | the 80-point cluster ends as | below the truth | |
|---|---|---|---|
| 2 | 40.8 nats | ||
| 3 | 22.1 nats | ||
| 4 | 41.5 nats |
The sampler has not mixed, and it cannot within 100 sweeps. To merge two halves of a cluster it must move points one at a time, and every intermediate state, with a few points stranded between the halves, is much less probable than either end. Split–merge moves, which propose to merge or split whole clusters in one Metropolis–Hastings step, fix this (Jain and Neal, 2004); comparing runs from several starts is how you find out that you need them.
The prior itself has two limits. The single parameter sets both the expected number of clusters and the rich-get-richer pattern of their sizes. Data with many clusters of similar size, or with a power law of cluster sizes, need another prior; the Pitman–Yor process adds a discount , so that a table of customers attracts and a new table , and the number of clusters then grows faster than logarithmically (Teh, 2010; Murphy, 2023, Supplementary Section 31.3). And even when the data come from a finite mixture of the assumed form, the posterior keeps mass on extra small clusters and does not concentrate on the true number as grows. Miller and Harrison (2013) show it in the simplest case: data from one standard normal, modelled by a Dirichlet process mixture of unit-variance normals, where the posterior probability of a single cluster goes to 0. The intuition: every point keeps a prior chance, proportional to , of opening a cluster, and a tiny cluster in the tail costs almost nothing in likelihood. For density estimation this does no harm; for counting clusters it does. The process chooses how many components, while their shape is still set by : a curved or heavy-tailed cluster is covered by several Gaussians.
What you should remember#
- is a random discrete distribution whose masses on any partition are Dirichlet: mean , concentration .
- It is the limit of a mixture with a prior on the weights.
- Chinese restaurant: join table with probability , open one with ; exchangeable.
- .
- Stick-breaking with sticks builds ; the leftover after sticks is on average.
- Collapsed Gibbs reseats each point with weight times the cluster’s predictive, or times the prior predictive; it mixes slowly between partitions.
Code#
The restaurant and the sticks, the reseating example, then a collapsed Gibbs sampler for a Dirichlet process mixture of Gaussians on 2-D data, its sensitivity to the start and to , and scikit-learn’s variational version. It runs in about fifteen seconds; exact numbers can vary across platforms and library versions.
import numpy as np
from scipy.special import digamma, gammaln, logsumexp
from scipy.stats import norm
from sklearn.metrics import adjusted_rand_score
from sklearn.mixture import BayesianGaussianMixture
# the Chinese restaurant process: simulated number of tables against the exact expectation
def crp(n, alpha, rng):
counts = []
for i in range(n): # customer i + 1 sees i seated customers
p = np.array(counts + [alpha]) / (i + alpha)
k = rng.choice(len(p), p=p)
if k == len(counts): counts.append(1)
else: counts[k] += 1
return counts
rng = np.random.default_rng(0)
for alpha, n in ((1.0, 100), (5.0, 1000)):
sim = np.mean([len(crp(n, alpha, rng)) for _ in range(200)])
exact = alpha * (digamma(alpha + n) - digamma(alpha)) # = sum of alpha / (alpha + i) over i = 0, ..., n - 1
print(alpha, n, round(sim, 2), round(exact, 3), round(alpha * np.log(1 + n / alpha), 3))
# 1.0 100 5.23 5.187 4.615 | 5.0 1000 26.83 27.031 26.517
# stick-breaking: expected weights (1/(1+alpha)) (alpha/(1+alpha))^(k-1), and the expected mass left after 20 sticks
for alpha in (1.0, 5.0):
print(alpha, [round(1 / (1 + alpha) * (alpha / (1 + alpha)) ** (k - 1), 3) for k in (1, 2, 3)], round((alpha / (1 + alpha)) ** 20, 4))
# 1.0 [0.5, 0.25, 0.125] 0.0 | 5.0 [0.167, 0.139, 0.116] 0.0261
# why the sticks are Beta(1, alpha): the share of customers at the first table, and the second table's share of the rest
r2 = np.random.default_rng(2)
sims = [crp(300, 2.0, r2) for _ in range(1000)]
v1 = np.array([c[0] / 300 for c in sims])
v2 = np.array([c[1] / (300 - c[0]) for c in sims])
print(v1.mean().round(3), v1.std().round(3), v2.mean().round(3), v2.std().round(3)) # Beta(1, 2): mean 0.333, sd 0.236
# 0.338 0.241 0.327 0.233
# reseating x = 3 in one dimension: sigma^2 = 1, tau^2 = 10, mu0 = 0, alpha = 1; cluster A (5 points, sum 0), B (3 points, sum 12), new
lam = 0.1 + np.array([5, 3, 0]) # posterior precisions of the cluster means
mean, var = np.array([0.0, 12.0, 0.0]) / lam, 1 / lam + 1 # predictive mean and variance of each cluster
w = np.array([5, 3, 1.0]) * norm.pdf(3, mean, np.sqrt(var))
print(mean.round(3), var.round(3), (w / w.sum()).round(3)) # [0. 3.871 0.] [1.196 1.323 11.] [0.047 0.865 0.088]
# 2-D data: four spherical clusters of 80, 60, 40 and 20 points with standard deviation 0.5
centres = np.array([[0.0, 0.0], [4.0, 0.0], [0.0, 4.0], [4.0, 4.0]])
sizes = (80, 60, 40, 20)
truth = np.repeat(np.arange(4), sizes)
X = np.vstack([c + 0.5 * rng.normal(size=(m, 2)) for c, m in zip(centres, sizes)])
n, d = X.shape
# DP mixture of Gaussians with known covariance s2 I and a conjugate prior N(mu0, t2 I) on each cluster mean
s2, t2, mu0 = 0.25, 9.0, X.mean(axis=0)
def log_pred(x, cnt, tot):
"""log predictive density of x for clusters with cnt points summing to tot (cnt = 0: a new cluster)"""
prec = 1 / t2 + cnt / s2 # posterior precision of the cluster mean
mean = (mu0 / t2 + tot / s2) / prec[:, None]
var = 1 / prec + s2 # posterior variance of the mean plus the noise
return -0.5 * d * np.log(2 * np.pi * var) - 0.5 * ((x - mean) ** 2).sum(axis=1) / var
def collapsed_gibbs(X, alpha, sweeps, rng):
z = np.zeros(len(X), dtype=int) # start with every point in one cluster
cnt, tot = np.array([len(X)]), X.sum(axis=0, keepdims=True)
trace = []
for _ in range(sweeps):
for i in rng.permutation(len(X)):
k = z[i]; cnt[k] -= 1; tot[k] -= X[i] # take point i out of its cluster
if cnt[k] == 0: # drop an empty cluster: move the last one into its slot
cnt[k], tot[k] = cnt[-1], tot[-1]; z[z == len(cnt) - 1] = k
cnt, tot = cnt[:-1], tot[:-1]
logp = np.log(np.append(cnt, alpha)) + log_pred(X[i], np.append(cnt, 0), np.vstack([tot, np.zeros(d)]))
k = rng.choice(len(logp), p=np.exp(logp - logsumexp(logp))) # n_k p(x | cluster k), or alpha p(x)
if k == len(cnt): # open a new cluster
cnt, tot = np.append(cnt, 0), np.vstack([tot, np.zeros(d)])
z[i] = k; cnt[k] += 1; tot[k] += X[i]
trace.append(len(cnt))
return z, cnt, np.array(trace)
def log_joint(z, alpha): # log p(x, z): CRP prior times the cluster marginal likelihoods
ks, cs = np.unique(z, return_counts=True)
lp = len(ks) * np.log(alpha) + gammaln(alpha) - gammaln(alpha + len(z)) + gammaln(cs).sum()
for k in ks: # chain rule: each point given the earlier points of its cluster
Xk = X[z == k]
cum = np.vstack([np.zeros(d), np.cumsum(Xk, axis=0)[:-1]])
lp += sum(log_pred(x, np.array([j]), cum[j][None]) [0] for j, x in enumerate(Xk))
return lp
print(round(log_joint(truth, 1.0), 1)) # -601.1 for the true partition
for seed in range(5): # final sizes, adjusted Rand index, log p(x, z), counts of K = 4..8 after burn-in
z, cnt, trace = collapsed_gibbs(X, 1.0, 100, np.random.default_rng(seed))
print(seed, np.sort(cnt)[::-1], round(adjusted_rand_score(truth, z), 3), round(log_joint(z, 1.0), 1), np.bincount(trace[20:], minlength=9)[4:9])
# 0 [80 59 38 20 2 1] 0.984 -607.0 [22 32 25 1 0]
# 1 [80 60 40 20] 1.0 -601.1 [17 36 21 6 0]
# 2 [70 59 38 20 6 4 2 1] 0.892 -641.9 [20 30 11 11 7]
# 3 [71 60 40 20 9] 0.921 -623.2 [ 0 23 28 16 8]
# 4 [61 60 35 20 19 5] 0.828 -642.6 [ 4 18 23 18 13]
for alpha in (0.1, 1.0, 10.0): # the number of clusters after 20 sweeps of burn-in: mean, share of K = 4
K = collapsed_gibbs(X, alpha, 100, np.random.default_rng(1))[2][20:]
print(alpha, round(K.mean(), 2), round((K == 4).mean(), 2))
# 0.1 4.08 0.92 | 1.0 5.2 0.21 | 10.0 11.48 0.0
# the variational alternative: scikit-learn's truncated stick-breaking with 10 components
bgm = BayesianGaussianMixture(n_components=10, weight_concentration_prior_type='dirichlet_process',
weight_concentration_prior=1.0, covariance_type='spherical', max_iter=1000, random_state=0).fit(X)
print(np.sort(bgm.weights_)[::-1].round(3), (bgm.weights_ > 0.01).sum())
# [0.397 0.281 0.195 0.103 0.005 0.005 0.005 0.005 0.002 0.001] 4
Next#
A Dirichlet process mixture gives each data point one cluster. A document is not like that: an article on the economics of football mixes words from a sports topic and from an economics topic, and a collection of documents shares the same topics in different proportions. The next note gives every document its own mixture over a common set of topics, latent Dirichlet allocation, and fits it with a collapsed Gibbs sampler like the one above and with variational inference. Its nonparametric version, the hierarchical Dirichlet process, shares the atoms of one Dirichlet process among many (Teh et al., 2006).
References#
- T. S. Ferguson. A Bayesian Analysis of Some Nonparametric Problems. The Annals of Statistics, 1(2), 209–230, 1973.
- D. Blackwell, J. B. MacQueen. Ferguson Distributions Via Pólya Urn Schemes. The Annals of Statistics, 1(2), 353–355, 1973.
- C. E. Antoniak. Mixtures of Dirichlet Processes with Applications to Bayesian Nonparametric Problems. The Annals of Statistics, 2(6), 1152–1174, 1974.
- D. J. Aldous. Exchangeability and Related Topics. École d’Été de Probabilités de Saint-Flour XIII, Lecture Notes in Mathematics 1117, Springer, 1985.
- J. Sethuraman. A Constructive Definition of Dirichlet Priors. Statistica Sinica, 4(2), 639–650, 1994.
- M. D. Escobar, M. West. Bayesian Density Estimation and Inference Using Mixtures. Journal of the American Statistical Association, 90(430), 577–588, 1995.
- R. M. Neal. Markov Chain Sampling Methods for Dirichlet Process Mixture Models. Journal of Computational and Graphical Statistics, 9(2), 249–265, 2000. Algorithms 3 and 8.
- C. E. Rasmussen. The Infinite Gaussian Mixture Model. NeurIPS, 2000.
- H. Ishwaran, L. F. James. Gibbs Sampling Methods for Stick-Breaking Priors. Journal of the American Statistical Association, 96(453), 161–173, 2001.
- S. Jain, R. M. Neal. A Split-Merge Markov Chain Monte Carlo Procedure for the Dirichlet Process Mixture Model. Journal of Computational and Graphical Statistics, 13(1), 158–182, 2004.
- D. M. Blei, M. I. Jordan. Variational Inference for Dirichlet Process Mixtures. Bayesian Analysis, 1(1), 121–143, 2006.
- Y. W. Teh, M. I. Jordan, M. J. Beal, D. M. Blei. Hierarchical Dirichlet Processes. Journal of the American Statistical Association, 101(476), 1566–1581, 2006.
- Y. W. Teh. Dirichlet Process. In Encyclopedia of Machine Learning, Springer, 2010.
- J. W. Miller, M. T. Harrison. A Simple Example of Dirichlet Process Mixture Inconsistency for the Number of Components. NeurIPS, 2013.
- K. P. Murphy. Probabilistic Machine Learning: Advanced Topics. MIT Press, 2023. Supplementary material, Chapter 31 (Dirichlet processes, the CRP, DP mixtures fitted by collapsed Gibbs sampling and variational Bayes, hyperparameters, the Pitman–Yor process).
- A. Osokin. Непараметрические байесовские методы. Процессы Дирихле, lecture notes for the course of D. P. Vetrov and D. A. Kropotov, Байесовские методы машинного обучения (MSU, 2014–2015), lecture 10.