返回题库

看到正面后是双头硬币的概率

Probability of Unfair Coin II

专题
Probability / 概率
难度
L4

题目详情

共有 100 枚硬币:98 枚公平硬币、1 枚双头硬币(两面都是正面)、1 枚双尾硬币(两面都是反面)。随机选 1 枚并抛 1 次,结果是正面。

问:这枚硬币是双头硬币的概率是多少?

A collection consists of 9898 fair coins, one coin with heads on both sides, and one coin with tails on both sides. A coin is chosen at random and flipped once, revealing a head. What is the probability that the flipped coin is the one with two heads?

解析

DD 为选到双头硬币,HH 为出现正面。

P(DH)=P(HD)P(D)P(H).P(D\mid H)=\frac{P(H\mid D)P(D)}{P(H)}.

其中:

  • P(D)=1/100P(D)=1/100P(HD)=1P(H\mid D)=1
  • 选到公平硬币概率 98/10098/100,其 P(H)=1/2P(H)=1/2
  • 选到双尾硬币概率 1/1001/100,其 P(H)=0P(H)=0

因此

P(DH)=11001100+9810012=150.P(D\mid H)=\frac{\frac{1}{100}}{\frac{1}{100}+\frac{98}{100}\cdot\frac{1}{2}}=\frac{1}{50}.

Original Explanation

Let DD be the event that we select the double-headed coin and HH be the event that the coin showed heads. We want P[DH]\mathbb{P}[D \mid H]. By Bayes' Rule, we have that P[DH]=P[HD]P[D]P[H]\mathbb{P}[D \mid H] = \dfrac{\mathbb{P}[H \mid D]\mathbb{P}[D]}{\mathbb{P}[H]}. For the denominator, we should condition on the ways a head could be obtained. There are three types of coins: the fair coins, the double-headed coin, and the double-tailed coin. Let FF be the event of selecting a fair coin and TT be the event of selecting the double-tailed coin. We have that P[HT]=0\mathbb{P}[H \mid T] = 0 since this coin has no heads on it. We know P[HF]=12\mathbb{P}[H \mid F] = \dfrac{1}{2} since it is fair and P[F]=98100\mathbb{P}[F] = \dfrac{98}{100} since 98 of the coins are fair. Lastly, P[HD]=1\mathbb{P}[H \mid D] = 1 since both sides are heads and P[D]=1100\mathbb{P}[D] = \dfrac{1}{100} as there is only 11 of them. Combining all of this,

P[DH]=1100111001+9810012+0=150\mathbb{P}[D \mid H] = \dfrac{\frac{1}{100} \cdot 1}{\frac{1}{100} \cdot 1 + \frac{98}{100} \cdot \frac{1}{2} + 0} = \dfrac{1}{50}