返回题库

先验

An unfair coin

专题
Probability / 概率
难度
L4

题目详情

概率题:先验 pU(0,1)p\sim U(0,1):连续 n 次正面后再正面概率。

英文原题

An unfair coin is tossed nn times and all nn tosses resulted in heads. What is the probability that the next toss will be head? Assume that the probability pp of getting heads is a random variable with uniform distribution on [0, 1].

解析

后验为 pHnBeta(n+1,1)p\mid H^n\sim \mathrm{Beta}(n+1,1)

因此

P(下次正面Hn)=E[pHn]=n+1n+2.\mathbb{P}(\text{下次正面}\mid H^n)=\mathbb{E}[p\mid H^n]=\boxed{\frac{n+1}{n+2}}.

英文解析

Denote by AkA_{k} the event that all of the first kk outcomes are heads and by BkB_{k} the event that the kk - th outcome is a head. We need to find P(Bn+1An)\mathbb{P}\left(B_{n + 1}\mid A_n\right) . Note that AnBn+1=An+1A_{n}\cap B_{n + 1} = A_{n + 1} . Then,

P(Bn+1An)=P(AnBn+1)P(An)=P(An+1)P(An)\begin{array}{r}\mathbb{P}\left(B_{n + 1}\mid A_n\right) = \frac{\mathbb{P}\left(A_n\cap B_{n + 1}\right)}{\mathbb{P}\left(A_n\right)}\\ = \frac{\mathbb{P}\left(A_{n + 1}\right)}{\mathbb{P}\left(A_n\right)} \end{array}

Denote by FF the cumulative distribution function of the uniform random variable on [0, 1]. We apply the law of total probability and condition on the random variable pp that takes a uniform value in the interval [0, 1]. We obtain that

P(An)=01P(Anp=t)dF(t)=01tndt=1n+1.\begin{array}{l}\mathbb{P}\left(A_{n}\right) = \int_{0}^{1}\mathbb{P}\left(A_{n}\mid p = t\right)dF(t)\\ \displaystyle = \int_{0}^{1}t^{n}dt = \frac{1}{n + 1}. \end{array}

From (2.244) and (2.245), it follows that

P(Bn+1An)=n+1n+2.\mathbb{P}\left(B_{n + 1}\mid A_n\right) = \frac{n + 1}{n + 2}.