用硬币等概率选 3 个选项
Alice in a restaurant
题目详情
概率题:用硬币等概率选 3 个选项。
英文原题
Alice is in a restaurant trying to decide between three desserts. How can she choose one of three desserts with equal probability with the help of a fair coin? What if the coin is biased and the bias is unknown?
解析
公平硬币:抛两次,映射
- TH → 甜点 A
- HT → 甜点 B
- TT → 甜点 C
- HH → 重新开始
因为在“非 HH”的条件下 TH/HT/TT 等概率,所以每个甜点概率都是 。
偏置且偏置未知的硬币:先用冯·诺依曼方法从偏置硬币抽取“公平比特”。
- 连续抛两次:若出现 HT 则输出 0;若出现 TH 则输出 1;若 HH 或 TT 则丢弃重来。
这样得到的 0/1 是严格等概率且相互独立(不依赖未知偏置)。
然后用两次公平比特得到 00/01/10/11,并将 00/01/10 映射到 A/B/C,11 丢弃重来,即可实现等概率 。
英文解析
Solution 1: Denote the desserts by , and . First, suppose the coin is fair. Denote heads by and tails by . The procedure to choose one of three desserts with equal probability is as follows: toss the coin twice; let the outcomes , and correspond to choosing desserts , and , respectively; if the outcome is , repeat the procedure.
Note that the probability of our procedure not being repeated is ; hence, the number of times our procedure is repeated is a geometric random variable with as its parameter. The expected number of times our procedure is repeated is . Since each procedure involves two coin tosses, the expected number of coin tosses before Alice chooses one of three desserts with equal probability is .
Now, suppose the coin is biased. One procedure to choose one of three desserts with equal probability would be as follows: toss the coin four times; denote by THHT, HTTH, and THTH the outcomes corresponding to choosing desserts , and , respectively; all the other 4- toss outcomes result in repeating the procedure.
Solution 2: An alternative procedure is as follows: toss the coin three times; denote by , and the outcomes corresponding to choosing desserts , and , respectively; all the other 3 - toss outcomes result in repeating the procedure.
Using an argument similar to the case with a fair coin, one finds that the expected number of tosses of a coin with an unknown bias, before Alice chooses one of three desserts with equal probability, is and 8, respectively, for the two procedures described above.