[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

相关推荐
啥都想学点的研究生2 天前
一篇文章讲清楚:朴素贝叶斯
人工智能·机器学习·概率论
知识分享小能手5 天前
深度学习学习教程,从入门到精通,概率与信息论 — 知识点详解(3)
人工智能·深度学习·学习·数据挖掘·概率论
知识分享小能手10 天前
概理论与数理统计学习教程,从入门到精通,平稳随机过程(27)
学习·数据挖掘·概率论
知识分享小能手11 天前
概理论与数理统计学习教程,从入门到精通,马尔可夫链(25)
学习·机器学习·概率论
爱喝热水的呀哈喽15 天前
阿里镜像安装gpu torch
概率论
2301_8008951015 天前
概率论保研面试---h
概率论
我是慎独16 天前
人工智能:现代方法读书笔记(十三)
人工智能·概率论
知识分享小能手20 天前
概理论与数理统计学习教程,从入门到精通,随机变量的数字特征 — 知识点总结与详细推导(7)
学习·机器学习·概率论
ccLianLian22 天前
数理基础·高等数学摘要
线性代数·概率论
XLYcmy22 天前
京东 算法实习一面 下+手撕
c++·python·llm·概率论·数据处理·训练·codebert