Question

In: Statistics and Probability

A coin is flipped repeatedly until either two heads appear in a row or two tails...

A coin is flipped repeatedly until either two heads appear in a row or two tails appear in a row(and then stop). Find the exact answer for P(two heads in a row appears before two tails in a row) for a coin with probability p of getting heads.

Solutions

Expert Solution

Probability of getting a head = p ; Probability of getting a tail = 1-p

Lets say we get two heads when we flip twice , probability of two heads in 2 flips ,P(2) = p * p = p2

Similarly, P(3) = (1-p) * p *p = p2 * (1-p) ( The first flip has to be tail)

Similarly, P(4) = p * (1-p) * p *p = p3 * (1-p). ( The first flip has to be head , 2nd has to be tail , 3rd & 4th has to be heads)

Similarly, P(5) = (1-p) * p * (1-p) * p *p = p3 * (1-p)2. (The first flip has to be tail , 2nd has to be head , 3rd has to be tail, 4th & 5th has to be heads).

Similarly, P(6) = p * (1-p) * p * (1-p) * p *p = p4 * (1-p)2. (The first flip has to be head , 2nd has to be tail , 3rd has to be head, 4th has to be tail ,5th & 6th has to be heads).

Similarly, P(7) = (1-p) * p * (1-p) * p * (1-p) * p *p = p4 * (1-p)3. (The first flip has to be tail , 2nd has to be head , 3rd has to be tail, 4th has to be head ,5th has to be tail, 6th & 7th has to be heads).

& so on.

Therefore the total probability , P = p2 + p2 * (1-p) + p3 * (1-p) + p3 * (1-p)2  + p4 * (1-p)2  + p4 * (1-p)3 + ....

P = ( p2 + p3 * (1-p)+ p4 * (1-p)2 + .... ) + (p2 * (1-p) + p3 * (1-p)2+ p4 * (1-p)3 + .... )

P = p2(1+ p(1-p) + p2(1-p)2 + ..) + p2(1-p) (1+ p(1-p) + p2(1-p)2 + ..)

P = + = =

Therefore, total probability =  


Related Solutions

A coin is tossed repeatedly until heads has occurred twice or tails has occurred twice, whichever...
A coin is tossed repeatedly until heads has occurred twice or tails has occurred twice, whichever comes first. Let X be the number of times the coin is tossed. Find: a. E(X). b. Var(X).
A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define...
A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define (X = number of the toss on which the first H appears, Y = number of the toss on which the second H appears. Clearly 1X<Y. (i) Are X and Y independent? Why or why not? (ii) What is the probability distribution of X? (iii) Find the probability distribution of Y . (iv) Let Z = Y X. Find the joint probability mass function
If a heads is flipped, then the coin is flipped 4 more times and the number...
If a heads is flipped, then the coin is flipped 4 more times and the number of heads flipped is noted; otherwise (i.e., a tails is flipped on the initial flip), then the coin is flipped 3 more times and the result of each flip (i.e., heads or tails) is noted successively. How many possible outcomes are in the sample space of this experiment?
Suppose you flip a biased coin (that lands heads with probability p) until 2 heads appear....
Suppose you flip a biased coin (that lands heads with probability p) until 2 heads appear. Let X be the number of flips needed for this two happen. Let Y be the number of flips needed for the first head to appear. Find a general expression for the condition probability mass function pY |X(i|n) when n ≥ 2. Interpret your answer, i.e., if the number of flips required for 2 heads to appear is n, what can you say about...
A biased coin is flipped 20 times in a row. The coin has a probability 0.75...
A biased coin is flipped 20 times in a row. The coin has a probability 0.75 of showing Heads. a. What’s the probability that you get exactly 8 Heads? b. What’s the probability that you get exactly 8 Heads, given that the first 2 flips show Heads? c. What’s the probability that you never see the same result consecutively( never see 2H or 2T in a row)
Suppose that we flip a fair coin until either it comes up tails twice or we...
Suppose that we flip a fair coin until either it comes up tails twice or we have flipped it six times. What is the expected number of times we flip the coin?
When coin 1 is flipped, it lands on heads with probability   3 /5  ; when coin...
When coin 1 is flipped, it lands on heads with probability   3 /5  ; when coin 2 is flipped it lands on heads with probability   7 /10  . (a) If coin 1 is flipped 9 times, find the probability that it lands on heads at least 7 times. (b) If one of the coins is randomly selected and flipped 8 times, what is the probability that it lands on heads exactly 5 times? (c) In part (b), given that the...
A fair coin is flipped repeatedly. (a) (6pts) Suppose we hope that with probability at least...
A fair coin is flipped repeatedly. (a) (6pts) Suppose we hope that with probability at least 0.9 the frequency of heads showing up is between 0.4 and 0.6. Use Chebyshev’s inequality to estimate at least how many times the coin should be flipped. (b) (6pts) Suppose we hope that with probability at least 0.95 the frequency of heads showing up is between 0.4 and 0.6. Use the central limit theorem to estimate at least how many times the coin should...
One fair coin and two unfair coins where heads is 5 times as likely as tails...
One fair coin and two unfair coins where heads is 5 times as likely as tails are put into a bag. One coin is drawn at random and then flipped twice. If at least one of the flips was tails, what is the probability an unfair coin was flipped?
2. In 200 tosses of a coin, it was observed that 115 Heads and 85 Tails...
2. In 200 tosses of a coin, it was observed that 115 Heads and 85 Tails appeared. Test whether this is a fair coin at the = 0.05 level and at the = 0.01 levels.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT