硬币配对 III
Coin Pair III
题目详情
你同时抛 4 枚公平硬币并观察结果。之后你可以反复选择任意两枚“当前为反面(T)”的硬币再次抛掷(每次必须选两枚反面);只要还存在至少两枚反面就可以继续。
当反面数少于 2 枚时过程结束。求最终正面数的期望。
Four fair coins appear in front of you. You flip all four at once and observe the outcomes of the coins. After seeing the outcomes, you may flip any pair of tails again. You may not flip a single coin without flipping another. You can iterate this process as many times as there are at least two tails to flip. Find the expected number of heads that we end up with after this process is complete.
解析
令 为当前反面数(),记 为在“还剩 个反面”时最终正面数的期望。
边界:,。
当 时,重掷两枚反面:
- 以概率 变成 HH,反面数减 2;
- 以概率 变成 HT/TH,反面数减 1;
- 以概率 仍是 TT,反面数不变。
因此
由此可算得 。由于初始 4 枚硬币的反面数分布对称,最终总体期望也为
Original Explanation
Let be the total number of heads and be the total number of heads that appear on the first flipping of the coins. Then by the Law of Total Expectation. because counts the number of heads appearing in 4 flips of a fair coin.
If , then obviously we don't flip any coins again, so . Similarly, if , then we aren't able to flip just one tails, so .
If , then we are going to continually flip the two tail coins again until we don't obtain . Conditioned on the fact that we don't obtain , 2 of the 3 equally-likely outcomes result in us having 3 heads, while 1 of the 3 results in having 4 heads, so .
Iterating this logic, if , then we flip two tails until they don't appear . With probability we end up with 2 heads, but we can iterate the process again from there on the remaining two tails and reach an expected heads. With probability , we reach 3 heads and we're done. Therefore, .
Lastly, if , with probability , we end up with 1 head, so we can iterate the process again to have an expected number of heads of . With probability , we end up with 2 heads, and we iterate the process again to get an expected number of heads of . Therefore,
Plugging the values and the PMF of into our expression from the beginning, we get that