返回题库

队伍中第几位最可能拿到“生日重复奖”

Birthday Line

专题
Probability / 概率
难度
L4

题目详情

电影院经理宣布:队伍里第一个出现“生日与前面某人重复”的人将获得免费票。

你可以选择站在队伍的任意位置 nn

假设生日在 365 天均匀分布,问选哪个位置能最大化你成为获胜者的概率?

A movie theater manager announces: the first person in line whose birthday matches someone who already bought a ticket in that line wins a free ticket. You can choose any position nn in the line. Assume birthdays are uniformly distributed over 365 days. Which position maximizes your chance of being the winner?

解析

结论:最佳位置约为 第 20 位

nn 位获胜需要:前 n1n-1 位生日全不同,且第 nn 位生日与前面某人重复。

P(n)=365364(365(n2))365n1n1365.P(n)=\frac{365\cdot 364\cdots (365-(n-2))}{365^{n-1}}\cdot\frac{n-1}{365}.

分析 P(n)P(n) 的增减可得最大值在 n=20n=20 附近。


Original Explanation

Define P(n)P(n) as the probability the nn-th person is the first to match a previous birthday. Then P(n)=(365×364××(365(n2))365n1)×n1365.P(n) = \biggl(\frac{365 \times 364 \times \cdots \times (365 - (n-2))}{365^{\,n-1}}\biggr)\,\times \frac{n-1}{365}. Analyzing the increase/decrease behavior around nn shows that n=20n=20 is the position that maximizes this probability.