28. Suppose that we want to generate a random variable X that is equally likely to be...
Question:
28. Suppose that we want to generate a random variable X that is equally likely to be either 0 or 1, and that all we have at our disposal is a biased coin that, when flipped, lands on heads with some (unknown) probability p. Consider the following procedure:
1. Flip the coin, and let 01, either heads or tails, be the result.
2. Flip the coin again, and let 02 be the result.
3. If 01 and 02 are the same, return to step 1.
4. If 02 is heads, set Image, otherwise set Image.
(a) Show that the random variable X generated by this procedure is equally likely to be either 0 or 1.
(b) Could we use a simpler procedure that continues to flip the coin until the last two flips are different, and then setsI mage if the final flip is a head, and setsI mage if it is a tail?
Step by Step Answer: