Dirichlet process
= Dirichlet process
{c}
{title2=$\operatorname{DP}(\alpha,G_0)$}
{wiki}
A Dirichlet process is a <probability distribution> over <probability measures>. For concentration $\alpha>0$ and base <probability measure> $G_0$, write $G\sim\operatorname{DP}(\alpha,G_0)$. Every finite measurable partition $A_1,\ldots,A_k$ satisfies
$$
(G(A_1),\ldots,G(A_k))\sim\operatorname{Dirichlet}(\alpha G_0(A_1),\ldots,\alpha G_0(A_k)),
$$
with zero-base-mass cells assigned zero mass. Consequently $\mathbb EG(A)=G_0(A)$ and $\operatorname{Var}(G(A))=G_0(A)(1-G_0(A))/(\alpha+1)$: larger concentration keeps random masses closer to the base measure.
For conditionally <independent and identically distributed> observations $X_i\mid G\sim G$, the posterior is
$$
G\mid X_1,\ldots,X_n\sim\operatorname{DP}\!\left(\alpha+n,\frac{\alpha G_0+\sum_i\delta_{X_i}}{\alpha+n}\right).
$$
This follows by <Dirichlet-multinomial conjugacy> on each partition. It supplies a tractable <prior distribution> for an unknown distribution without choosing a fixed-dimensional parameter family.<A Bayesian Analysis of Some Nonparametric Problems by Thomas S. Ferguson>[1973, Sections 3–4; Section 3, Theorem 1, posterior update]{ref}
Draws are almost surely discrete on the usual standard Borel sample spaces, even when $G_0$ is continuous. A Dirichlet process prior on a mixing measure can still yield a continuous mixture density.