100 块饼干分 N 颗巧克力豆:至少 90% 都有豆
chocolate chip cookies
题目详情
You are making chocolate chip cookies. You add chips randomly to the cookie dough, and you randomly split the dough into 100 equal cookies. How many chips should go into the dough to give a probability of at least that every cookie has at least one chip?
解析
把每颗巧克力豆独立等概率落入 100 块饼干之一(经典占位/投球入箱模型)。
令 为“存在至少一块饼干没有豆”。用并集界:
要使 ,只需令右边 :
因此取
即可保证(该上界是充分条件;更精细的近似会给出接近 686–690 的阈值)。