[Prob] (Coupon collector)

Suppose there are n types of toys, which you are collecting one by one, with the goal of getting a complete set. When collecting toys, the toy types are random (as is sometimes the case, for example, with toys included in cereal boxes or included with kids' meals from a fast food restaurant).

Assume that each time you collect a toy, it is equally likely to be any of the n types. What is the expected number of toys needed until you have a complete set?

Solution: Let N be the number of toys needed; we want to find E(N). Our strategy will be to break up N into a sum of simpler r.v.s so that we can apply linearity. So write

N = N1 + N2 + · · · + Nn,

where N1 is the number of toys until the first toy type you haven't seen before (which is always 1, as the first toy is always a new type), N2 is the additional number of toys until the second toy type you haven't seen before, and so forth.

with

相关推荐
Jooou2 小时前
机器学习:贝叶斯派和频率派
机器学习·概率论·贝叶斯派
simon_skywalker3 天前
概率论基础教程第六章 随机变量的联合分布(二)
概率论
simon_skywalker4 天前
概率论基础教程第5章 连续型随机变量(三)
概率论
西西弗Sisyphus5 天前
知识蒸馏 Knowledge Distillation 概率链式法则(Probability Chain Rule)
概率论·概率链式法则
西猫雷婶5 天前
神经网络|(十二)概率论基础知识-先验/后验/似然概率基本概念
人工智能·神经网络·机器学习·回归·概率论
海绵宝宝汉堡包5 天前
数据分析专栏记录之 -基础数学与统计知识 2 概率论基础与python
python·数据分析·概率论
simon_skywalker5 天前
概率论基础教程第六章 随机变量的联合分布(一)
概率论
听风.8257 天前
机器学习6
人工智能·机器学习·概率论
simon_skywalker7 天前
概率论基础教程第5章 连续型随机变量(二)
概率论
C++、Java和Python的菜鸟12 天前
第六章 统计初步
算法·机器学习·概率论