Probability theory and stochastic processes Special processes Example
Chinese restaurant process
Example
Fix a parameter . Customers enter a restaurant with infinitely many tables, one at a time. Customer sits at a new table. Suppose customers are seated, and the occupied tables hold customers, so . Then customer sits at the -th occupied table with probability , and at a new table with probability . These probabilities are nonnegative and sum to . The seating of the first customers gives a random partition of , whose blocks are the tables.
Multiplying the seating probabilities gives, for each partition of with blocks of sizes , where is the gamma function. To check this, note that the denominators multiply to . Each table contributes the factor when it is opened, and then the factors from the later customers who join it. The right side depends only on the block sizes, so the law of is invariant under permutations of . In this sense the random partition is exchangeable.
For , customers and share a table with probability . The number of occupied tables after customers has mean which grows like .
Remarks
Let follow a Dirichlet process with concentration and a base measure without atoms. Given , draw independently from , and group the indices by equal values . The resulting random partition has the law of the Chinese restaurant process with parameter . This is why the process is used to sample from Dirichlet process mixture models.
Further reading
About this page
| Tag | 2SEF8QTYQF |
|---|---|
| URI | m2://2SEF8QTYQF |
| Kind | example |
| Writing | W0 stub |
| MSC | 60G09, 60C05, 62G05 |
| Illustrates | Dirichlet process, Exchangeable random variables |
| Same as | |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.