Friday, September 11, 2009

Chinese restaurant process and Chinese restaurant franchise

An illustration of Chinese restaurant process (CRP) and Chinese restaurant franchise (CRF). Materials are from Yee Whye Teh's 2004 technical report on "Hierarchical Dirichlet Process"

Chinese restaurant process (CRP):

For a set of random variables distributed according to , we have the following conditional distribution:

This can be described in a Chinese restaurant process metaphor:
  • Consider a Chinese restaurant with an unbounded number of tables, 
  • The first customer sits at table 1
  • Suppose there are K tables occupied before the i-th customer comes, he can sit at 
            

The relationship between and can be best illustrated as in the following figure.
random variables
meaning
metophor

random variables customer i

distinct values within all   
table k

the number of  associated to
the number of customers sitting around table k

Chinese restaurant franchise (CRF):

An essentially two-level Chinese restaurant process:
  • Within a restaurant, customers   choose tables
  • Within all restaurants, tables  choose dishes
In both levels, the choosing follows the Chinese restaurant process as illustrated above.

At the restaurant level, customers   choose tables according to the following distribution:


At this level, the metaphor of CRF is the same as the one of CRP as described above, except some changes on symbols
  • Consider restaurant j with an unbounded number of tables, 
  • The first customer sits at table 1
  • Suppose there are  tables occupied before the i-th customer comes, he can sit at 
            

The relationship between
and can be best illustrated as in the following figure:


At the franchise level, table   choose dishes according to the following distribution:


This can be described in a Chinese restaurant franchise metaphor:
  • Consider a Chinese restaurant franchise, whose J restaurants share a menu with unbounded number of dishes, 
  • At each table of each restaurant, one dish is ordered from the public menu by the first customer who sits there, and it is shared among all customers who sit at that table. Multiple tables at multiple restaurants can serve the same dish
  • Suppose there are  tables occupied before the i-th customer comes restaurant j and there are total K dishes has been ordered among all restaurants in the franchise. He can sit at an occupied table or a new table with certain probability, as described above. If he sits at an occupied table, he shares the dish that has been ordered at that table. If he sits at a new table, he order a dish for that table according to its popularity among the whole franchise, while a new dish can also be tried. 
            

The relationship between and can be best illustrated as in the following figure.



random variables
meaningmetophor
random variables customer i in restaurant  j
distinct values of in group table t in restaurant j
index of associated to ,
the table taken by customer i in restaurantj,.i.e., Table()=, Customer() =

the number of associated to in group j
the number of customers sitting around table t in restaurantj
distinct values in within all groups,
dish k, which is shared within all restaurants
index of associated to ,
the dish ordered by table t in restaurantj, i.e., Dish() = , Table() =

the number of associated to in group j
the number of tables ordered dish k in restaurantj
, i.e., the number of associated to over all j
the total number of tables ordered dish k within all restaurants



No comments:

Post a Comment