返回题库

双头硬币:连出 10 个正面后的后验概率

fair coins

专题
Probability / 概率
难度
L4

题目详情

1000 枚硬币中 1 枚是双头硬币(两面都是正面),其余 999 枚是公平硬币。随机抽取 1 枚并连续抛 10 次,结果全是正面。问:抽到双头硬币的概率是多少?

One coin is double-headed, 999 fair coins, pick a coin, flip 10 heads in a row. Probability it’s the 2-headed coin? We randomly pick 1 coin from 1000 total (1 special double-headed, 999 fair). Flip it 10 times, all heads. Probability it is the 2-headed coin?

解析

用 Bayes 定理。

设:

  • AA:抽到双头硬币;
  • BB:连续 10 次都是正面。

则:

  • P(A)=11000P(A)=\frac{1}{1000}
  • P(BA)=1P(B\mid A)=1
  • P(BAc)=(12)10=11024P(B\mid A^c)=\left(\frac12\right)^{10}=\frac{1}{1024}

因此

P(AB)=P(A)P(BA)P(A)P(BA)+P(Ac)P(BAc)=1100011000+999100011024=10242023.P(A\mid B)=\frac{P(A)P(B\mid A)}{P(A)P(B\mid A)+P(A^c)P(B\mid A^c)} =\frac{\frac{1}{1000}}{\frac{1}{1000}+\frac{999}{1000}\cdot\frac{1}{1024}} =\frac{1024}{2023}.

Original Explanation

Use Bayes’ Theorem.

Let:

  • AA = event we chose the 2-headed coin
  • BB = event of getting 10 heads in a row

Then:

  • P(A)=11000P(A) = \frac{1}{1000}
  • P(BA)=1P(B \mid A) = 1 (since the coin has two heads)
  • P(Bfair coin)=(12)10=11024P(B \mid \text{fair coin}) = \left(\frac{1}{2}\right)^{10} = \frac{1}{1024}

By Bayes’ Theorem: P(AB)=P(A)P(BA)P(A)P(BA)+P(not A)P(Bfair coin)P(A \mid B) = \frac{P(A) \cdot P(B \mid A)}{P(A) \cdot P(B \mid A) + P(\text{not } A) \cdot P(B \mid \text{fair coin})}

Plug in the values: P(AB)=110001110001+999100011024=11+9991024=11024+9991024=10242023.P(A \mid B) = \frac{\frac{1}{1000} \cdot 1}{\frac{1}{1000} \cdot 1 + \frac{999}{1000} \cdot \frac{1}{1024}} = \frac{1}{1 + \frac{999}{1024}} = \frac{1}{\frac{1024 + 999}{1024}} = \frac{1024}{2023}.