欢迎光临散文网 会员登陆 & 注册

[Probability] Hat Problem

2021-09-02 11:17 作者:AoiSTZ23  | 我要投稿

By: Tao Steven Zheng (郑涛)

【Problem】

Suppose you and five of your friends each brought a hat to a party. The hats are then put into a large box for a random hat draw. What is the probability that nobody selects his or her own hat?

【Solution】

There are six people in total (you + five friends), so the number of possibilities that each person can get their hat is 6!%20%3D%20720%20.


The number of possibilities that nobody selects their own hat is called the derangement problem. For six people, the number of derangements is:


6!%20%5Csum_%7Bk%3D0%7D%5E%7B6%7D%20%5Cfrac%7B%7B%5Cleft(-1%5Cright)%7D%5E%7Bk%7D%7D%7Bk!%7D%20%3D%20265

The probability of each person get their wrong hat is:  


p%20%3D%20%5Cfrac%7B265%7D%7B720%7D%20


p%20%3D%20%5Cfrac%7B53%7D%7B144%7D%20%5Capprox%200.368056%20


Therefore, the probability that nobody selects his or her own hat is 36.81%.

[Probability] Hat Problem的评论 (共 条)

分享到微博请遵守国家法律