A Box has 1024 fair and 1 two-headed coin. You pick a coin randomly, make 10 flips and get all H.
(a) You flip the same coin you picked 100 times. What is the expected number of H?
(b) You flip the same coin you picked until you get H. What is the expected number of flips you make?
Hello,
Solution to this problem is totally depends upon the chosen coin (i.e. either it is fair or two-headed coin). Hence we have to find firstly below two, before finding solution to question part (a) and (b).
1. Probability of coin being fair coin is equal to P (F | Flips)
2. Probability of coin being Two Headed (Biased) coin is equal to P ( B | Flips)
Now, using Bayes' formula to calculate above two.
1.
P (F | Flips) = [ P(Flips | F) * P(F) ] / P(Flips)
since this is fair coin, hence probability of getting head in each flip is 0.5 (i.e. P(Flips | F))
P(F) is the probability of getting fair coin from all the available coins (i.e. 1024/1025)
Hence,
P(F | Flips) = [ (0.5)^10 * (1024/1025) ] / [ [ (0.5)^10 * (1024/1025) ] + [ (1)^10 * (1/1025) ] ]
= (1 / 1025) / ( 2 / 1025)
= 1/2
= 0.5
-------------------------------------------------------------------------------------------------------------------------------
2.
P (TH | Flips) = [ P(Flips | TH) * P(TH) ] / P(Flips)
since this is two headed coin, hence probability of getting head in each flip is 1 (i.e. P(Flips | TH))
P(TH) is the probability of getting two headed coin from all the available coins (i.e. 1/1025)
Hence,
P(TH | Flips) = [ (1)^10 * (1/1025) ] / [ [ (0.5)^10 * (1024/1025) ] + [ (1)^10 * (1/1025) ] ]
= (1 / 1025) / ( 2 / 1025)
= 1/2
= 0.5
-------------------------------------------------------------------------------------------------------------------------------
Question part (a):
Now, we are going to find out the probability of getting head in the next flip firstly:
which is equal to
P( H ) = P( Head when fair coin ) * P( F | Flips ) + P( Head when Two Headed coin ) * P( TH | Flips )
P( H ) = ( 0.5 * 0.5 ) + ( 1 * 0.5 )
P( H ) = 0.75
Now, according to question part (a) , we have to calculate expected occurrence of head when flipping the same coin 100 times,
Expected number of heads in 100 flips = P ( H ) * 100
= 0.75 * 100
= 75
-------------------------------------------------------------------------------------------------------------------------------
Question Part (b) :
Now, we have to find expected number of flip we have to make for getting a head, and it is calculated as : ( 1 / P( H ) )
= ( 1 / 0.75 )
= 1.33
By rounding it off to upper side it is 2.
So minimum of 2 attempts or flips required to get a head.
That's all!!
-------------------------------------------------------------------------------------------------------------------------------
Hope you will understand it well now and in case of any doubt, please feel free to ask them. I will be happy to answer them.
A Box has 1024 fair and 1 two-headed coin. You pick a coin randomly, make 10...
Question 4 (20 points) A box contains three coins, two fair coins and one two-headed coin. (a) You pick a coin at random and toss it. What is the probability that it lands heads up? (b) You pick a coin at random and toss it, and get heads. What is the probability that it is the two-headed coin?
Suppose you flip a fair coin repeatedly until you see a Heads followed by another Heads or a Tails followed by another Tails (i.e. until you see the pattern HH or TT). (a)What is the expected number of flips you need to make? (b)Suppose you repeat the above with a weighted coin that has probability of landing Heads equal to p.Show that the expected number of flips you need is 2+p(1−p)/1−p(1−p)
Franklin has three coins, two fair coins (head on one side and tail on the other side) and one two-headed coin. 1) He randomly picks one, flips it and gets a head. What is the probability that the coin is a fair one? 2) He randomly picks one, flips it twice. Compute the probability that he gets two tails. 3) He randomly picks one and flips it twice. Suppose B stands for the event that the first result is head, and...
Please show ALL STEPS. NEAT HANDWRITING ONLY PLEASE Thank You Suppose we flip a fair coin n times. We say that the sequence is balanced when there are equal number of heads and tails. For example, if we flip the coin 10 times and the results areHTHHTHTTHH, then this sequence balanced 2 times, i.e. at position 2 and position 8 (after the second and eighth flips). In terms of n, what is the expected number of times the sequence is...
Mysterioso the Magician is walking down the street with a box containing 25 identical looking coins: 24 are fair coins (which flip heads with probability 0.5 and tails with probability 0.5) and one is a trick coin which alwavs flips heads. Renata the Fox skillfully robs Mysterioso of one of the coins in his box (chosen uniformly at random). She decides she will flip the coin k times to test if it is the trick coin. (a) What is the...
2. Mysterioso the Magician is walking down the street with a box containing 25 identical looking coins: 24 are fair coins (which flip heads with probabilty 0.5 and tails with probability 0.5) and one is a trick coin which always flips heads. Renata the Fox skillfully robs Mysterioso of one of the coins in his box (chosen uniformly at random). She decides she will flip the coin k times to test if it is the trick coin (a) What is...
You have one fair coin and one biased coin which lands tails with probability 2/3. You pick one of the coins at random and flip it twice. It lands trails booth times. Given this information, what is the probably that the coin that you picked is the fair one?
Please make sure youre answer is correct A gambler has in his pocket a fair coin and a two-headed coin. He selects one of the coins at random and flips it. What is the probability that the coin shows a head?
Question 2 Suppose you have a fair coin (a coin is considered fair if there is an equal probability of being heads or tails after a flip). In other words, each coin flip i follows an independent Bernoulli distribution X Ber(1/2). Define the random variable X, as: i if coin flip i results in heads 10 if coin flip i results in tails a. Suppose you flip the coin n = 10 times. Define the number of heads you observe...
Coin Flips: If you flip a fair coin 5 times, what is the probability of each of the following? (please round all answers to 4 decimal places) a) getting all tails? b) getting all heads?