Sponsored Links

Rabu, 10 Januari 2018

Sponsored Links

Our favorite tweets of the week: May 19, 2014 â€
src: netdna.webdesignerdepot.com

In probability theory, the Chinese restaurant process is a discrete-time stochastic process, analogous to seating customers at tables in a Chinese restaurant. Imagine a Chinese restaurant with an infinite number of circular tables, each with infinite capacity. Customer 1 sits at the first table. The next customer either sits at the same table as customer 1, or the next table. This continues, with each customer choosing to sit at an occupied table with a probability proportional to the number of customers already there (i.e., they are more likely to sit at a table with many customers than few), or an unoccupied table. At time n, the n customers have been partitioned among m <= n tables (or blocks of the partition). The results of this process are exchangeable, meaning the order in which the customers sit does not affect the probability of the final distribution. This property greatly simplifies a number of problems in population genetics, linguistic analysis, and image recognition.

David J. Aldous attributes the restaurant analogy to Jim Pitman and Lester Dubins in his 1983 book.


Video Chinese restaurant process



Formal definition

At any positive-integer time n, the value of the process is a partition Bn of the set {1, 2, 3, ..., n}, whose probability distribution is determined as follows. At time n = 1, the trivial partition { {1} } is obtained with probability 1. At time n + 1 the element n + 1 is either:

  1. added to one of the blocks of the partition Bn, where each block is chosen with probability |b|/(n + 1) where |b| is the size of the block (i.e. number of elements), or
  2. added to the partition Bn as a new singleton block, with probability 1/(n + 1).

The random partition so generated has some special properties. It is exchangeable in the sense that relabeling {1, ..., n} does not change the distribution of the partition, and it is consistent in the sense that the law of the partition of n - 1 obtained by removing the element n from the random partition at time n is the same as the law of the random partition at time n - 1.

The probability assigned to any particular partition (ignoring the order in which customers sit around any particular table) is

Pr ( B n = B ) = ? b ? B ( | b | - 1 ) ! n ! {\displaystyle \Pr(B_{n}=B)={\frac {\prod _{b\in B}(|b|-1)!}{n!}}}

where b is a block in the partition B and |b| is the size of b.


Maps Chinese restaurant process



Generalization

This construction can be generalized to a model with two parameters, ? and ?, commonly called the discount and strength (or concentration) parameters. At time n + 1, the next customer to arrive finds |B| occupied tables and decides to sit at an empty table with probability

? + | B | ? n + ? , {\displaystyle {\frac {\theta +|B|\alpha }{n+\theta }},}

or at an occupied table b of size |b| with probability

| b | - ? n + ? . {\displaystyle {\frac {|b|-\alpha }{n+\theta }}.}

In order for the construction to define a valid probability measure it is necessary to suppose that either ? < 0 and ? = - L? for some L ? {1, 2, ...}; or that 0 <= ? < 1 and ? > -?.

Under this model the probability assigned to any particular partition B of n, in terms of the Pochhammer k-symbol, is

Pr ( B n = B ) = ( ? + ? ) | B | - 1 , ? ( ? + 1 ) n - 1 , 1 ? b ? B ( 1 - ? ) | b | - 1 , 1 {\displaystyle \Pr(B_{n}=B)={\frac {(\theta +\alpha )_{|B|-1,\alpha }}{(\theta +1)_{n-1,1}}}\prod _{b\in B}(1-\alpha )_{|b|-1,1}}

where, by convention, ( a ) 0 , c = 1 {\displaystyle (a)_{0,c}=1} , and for b > 0 {\displaystyle b>0}

( a ) b , c = ? i = 0 b - 1 ( a + i c ) = { a b if  c = 0 , c b ? ( a / c + b ) ? ( a / c ) otherwise . {\displaystyle (a)_{b,c}=\prod _{i=0}^{b-1}(a+ic)={\begin{cases}a^{b}&{\text{if }}c=0,\\\\{\dfrac {c^{b}\,\Gamma (a/c+b)}{\Gamma (a/c)}}&{\text{otherwise}}.\end{cases}}}

Thus, for the case when ? > 0 {\displaystyle \theta >0} the partition probability can be expressed in terms of the Gamma function as

Pr ( B n = B ) = ? ( ? ) ? ( ? + n ) ? | B | ? ( ? / ? + | B | ) ? ( ? / ? ) ? b ? B ? ( | b | - ? ) ? ( 1 - ? ) . {\displaystyle \Pr(B_{n}=B)={\frac {\Gamma (\theta )}{\Gamma (\theta +n)}}{\dfrac {\alpha ^{|B|}\,\Gamma (\theta /\alpha +|B|)}{\Gamma (\theta /\alpha )}}\prod _{b\in B}{\dfrac {\Gamma (|b|-\alpha )}{\Gamma (1-\alpha )}}.}

In the one-parameter case, where ? {\displaystyle \alpha } is zero, this simplifies to

Pr ( B n = B ) = ? ( ? ) ? | B | ? ( ? + n ) ? b ? B ? ( | b | ) . {\displaystyle \Pr(B_{n}=B)={\frac {\Gamma (\theta )\,\theta ^{|B|}}{\Gamma (\theta +n)}}\prod _{b\in B}\Gamma (|b|).}

Or, when ? {\displaystyle \theta } is zero,

Pr ( B n = B ) = ? | B | - 1 ? ( | B | ) ? ( n ) ? b ? B ? ( | b | - ? ) ? ( 1 - ? ) . {\displaystyle \Pr(B_{n}=B)={\frac {\alpha ^{|B|-1}\,\Gamma (|B|)}{\Gamma (n)}}\prod _{b\in B}{\frac {\Gamma (|b|-\alpha )}{\Gamma (1-\alpha )}}.}

As before, the probability assigned to any particular partition depends only on the block sizes, so as before the random partition is exchangeable in the sense described above. The consistency property still holds, as before, by construction.

If ? = 0, the probability distribution of the random partition of the integer n thus generated is the Ewens distribution with parameter ?, used in population genetics and the unified neutral theory of biodiversity.

Derivation

Here is one way to derive this partition probability. Let Ci be the random block into which the number i is added, for i = 1, 2, 3, ... . Then

Pr ( C i = c | C 1 , ... , C i - 1 ) = { ? + | B | ? ? + i - 1 if  c ? new block , | b | - ? ? + i - 1 if  c ? b ; {\displaystyle \Pr(C_{i}=c\mid C_{1},\ldots ,C_{i-1})={\begin{cases}{\dfrac {\theta +|B|\alpha }{\theta +i-1}}&{\text{if }}c\in {\text{new block}},\\\\{\dfrac {|b|-\alpha }{\theta +i-1}}&{\text{if }}c\in b;\end{cases}}}

The probability that Bn is any particular partition of the set { 1, ..., n } is the product of these probabilities as i runs from 1 to n. Now consider the size of block b: it increases by 1 each time we add one element into it. When the last element in block b is to be added in, the block size is (|b| - 1). For example, consider this sequence of choices: (generate a new block b)(join b)(join b)(join b). In the end, block b has 4 elements and the product of the numerators in the above equation gets ? · 1 · 2 · 3. Following this logic, we obtain Pr(Bn = B) as above.

Expected number of tables

For the one parameter case, with ? = 0 and 0 < ? < ?, the expected number of tables, given that there are n {\displaystyle n} seated customers, is

? k = 1 n ? ? + k - 1 = ? ? ( ? ( ? + n ) - ? ( ? ) ) {\displaystyle {\begin{aligned}\sum _{k=1}^{n}{\frac {\theta }{\theta +k-1}}=\theta \cdot (\Psi (\theta +n)-\Psi (\theta ))\end{aligned}}}

where ? ( ? ) {\displaystyle \Psi (\theta )} is the digamma function. In the general case (? > 0) the expected number of occupied tables is

? ( ? + n + ? ) ? ( ? + 1 ) ? ? ( ? + n ) ? ( ? + ? ) - ? ? . {\displaystyle {\begin{aligned}{\frac {\Gamma (\theta +n+\alpha )\Gamma (\theta +1)}{\alpha \Gamma (\theta +n)\Gamma (\theta +\alpha )}}-{\frac {\theta }{\alpha }}.\end{aligned}}}

The Indian buffet process

It is possible to adapt the model such that each data point is no longer uniquely associated with a class (i.e., we are no longer constructing a partition), but may be associated with any combination of the classes. This strains the restaurant-tables analogy and so is instead likened to a process in which a series of diners samples from some subset of an infinite selection of dishes on offer at a buffet. The probability that a particular diner samples a particular dish is proportional to the popularity of the dish among diners so far, and in addition the diner may sample from the untested dishes. This has been named the Indian buffet process and can be used to infer latent features in data.


Fast search for Dirichlet process mixture models - ppt download
src: slideplayer.com


Applications

The Chinese restaurant process is closely connected to Dirichlet processes and Pólya's urn scheme, and therefore useful in applications of Bayesian statistics including nonparametric Bayesian methods. The Generalized Chinese Restaurant Process is closely related to Pitman-Yor process. These processes have been used in many applications, including modeling text, clustering biological microarray data, biodiversity modelling, and image reconstruction


Dynamic Multi-Relational Chinese Restaurant Process for Analyzing ...
src: images.slideplayer.com


References


Rice Bowl Chinese Restaurant, Midtown, Omaha - Urbanspoon/Zomato
src: b.zmtcdn.com


External links

  • Introduction to the Dirichlet Distribution and Related Processes by Frigyik, Kapila and Gupta
  • A talk by Michael I. Jordan on the CRP:
    • http://videolectures.net/icml05_jordan_dpcrp/

Source of the article : Wikipedia

Comments
0 Comments