返回题库

生日悖论:至少一对同生日的最小人数

Birthday Pairings

专题
Probability / 概率
难度
L4

题目详情

What is the least number of persons required if the probability exceeds 12\frac{1}{2} that two or more of them have the same birthday? (Year of birth need not match.)

解析

忽略闰年且生日在 365 天上均匀独立。

无碰撞概率为

P(全不同)=365365364365365n+1365.\mathbb{P}(\text{全不同})=\frac{365}{365}\cdot\frac{364}{365}\cdots\frac{365-n+1}{365}.

用近似 ln(1x)x\ln(1-x)\approx -x

P(全不同)exp(n(n1)2365).\mathbb{P}(\text{全不同})\approx \exp\left(-\frac{n(n-1)}{2\cdot 365}\right).

要求至少一对同生日概率 >1/2>1/2 等价于 P(全不同)<1/2\mathbb{P}(\text{全不同})<1/2,即

exp(n(n1)730)<12n(n1)730>ln2.\exp\left(-\frac{n(n-1)}{730}\right)<\frac12\Rightarrow \frac{n(n-1)}{730}>\ln 2.

解得阈值约 n23n\approx 23,且精确计算最小整数为

n=23.\boxed{n=23}.