subject
Mathematics, 05.02.2021 21:20 sonnyboi2305

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 21, either heads or tails, be the result.
2. Flip the coin again, and let Z2 be the result.
3. If Z and Z, are the same, return to step 1.
4. If Z, is heads, set X = 0, otherwise set X = 1.
a) Let I, and I be independent indicator variables with success probability p. Compute P(11 = 1|11 # 12)
b) Show that the random variable X generated by this procedure is equally likely to be either 0 or 1.
c) Could we use a simpler procedure that continues to flip the coin until the last two flips are different, and then sets X = 0 if the final flip is a head, and sets X = 1 if it is a tail?
PROBLEM 4.7
Implement the algorithm described in the previous problem in R and use it to generate 10 standard uniformly distributed variables.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 12:50
What's the difference between: x≥0 and nonnegative integer. ?
Answers: 2
question
Mathematics, 21.06.2019 17:40
This is so hard and it’s for a test
Answers: 1
question
Mathematics, 21.06.2019 18:00
A. 90 degrees b. 45 degrees c. 30 degrees d. 120 degrees
Answers: 2
question
Mathematics, 21.06.2019 18:30
What is the perimeter of a rectangular building that is 80 feet wide and 140 feet deep?
Answers: 1
You know the right answer?
Suppose that we want to generate a random variable X that is equally likely to be either 0 or 1, and...
Questions
question
Mathematics, 14.07.2019 03:50
question
Social Studies, 14.07.2019 03:50
Questions on the website: 13722359