返回题库

生日悖论:超过 1/2 需要多少人

Birthday Problem

专题
Probability / 概率
难度
L4

题目详情

至少需要多少人,才能使“至少两人生日相同”的概率超过 12\frac{1}{2}?(假设一年 365 天等可能,忽略闰年)

How many people must be in a group so that the probability of at least two sharing the same birthday exceeds 1/2? (Assume 365 equally likely birthdays.)

解析

经典结果是 23 人

nn 为人数。补事件为“生日全不同”,其概率为

365364(365n+1)365n.\frac{365\cdot 364\cdots (365-n+1)}{365^n}.

n=23n=23 时,1上述概率>1/21-\text{上述概率}>1/2,且这是最小满足条件的 nn


Original Explanation

The classic result is 23. Specifically, for nn people, the total number of ways to assign birthdays is 365n365^n. The number of ways to assign distinct birthdays to all nn is 365×364××(365n+1).365 \times 364 \times \cdots \times (365 - n + 1). We need 1    365×364××(365n+1)365n  >  12,1 \;-\; \frac{ 365 \times 364 \times \cdots \times (365 - n + 1) }{ 365^n } \;>\; \frac{1}{2}, which first holds at n=23n=23.