You have two coins that look identical, but one of them is fair and the other is weighted. The weighted coin has a 4 3 chance of flipping heads and a 4 1 chance of flipping tails.
Unfortunately, you've forgotten which coin is which! You decide to keep flipping them together, one in each hand, until you get a flip where one coin shows heads and the other shows tails. Then you'll assume that the coin showing heads is the weighted coin. If you do this, what's the probability you'll correctly identify the coins?
2 1 chance of flipping heads and a 2 1 chance of flipping tails.
Good luck, this is a very tricky question! Remember that a fair coin is one that has a
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This close, good solution.
this 50% of the scenario includes the chance of 1/4 => 25% => u can not add that up to make 3/4 . they are not mutually exclusive events... Please clarify.
Relevant wiki: Bayes' Theorem and Conditional Probability
This question can also be solved using Bayes' theorem. The case to be considered here is that one coin shows up heads while the other shows tails. We can list out the following two events from the given case ( let us call this case A )
Fair coin Heads Tails Biased coin Tails Heads Probability 2 1 . 4 1 = 8 1 2 1 . 4 3 = 8 3
As we can observe from the table itself, the first situation is incorrect as per our assumption in the question which says " the coin showing heads is the weighted/biased coin ". Hence according to the Bayes theorem, the probability of getting the guess correct is
P(correct | A occurs) = 2 1 . 4 3 + 2 1 . 4 1 2 1 . 4 3 = 8 4 8 3 = 4 3
Note: We can directly multiply the probabilities of the two different coins because their outcomes are independent of each other.
General solution If two coins have probabilities p > q of showing "heads", and we decide on the basis of a combination of head and tail, then the odds of a correct decision are P ( H t ) + P ( T h ) P ( H t ) = p ( 1 − q ) + ( 1 − p ) q p ( 1 − q ) = p + q − 2 p q p − p q . There is no obvious way of simplifying this.
Log in to reply
One simplification may be made: the ratio odds of incorrect decision odds of correct decision = P ( T h ) P ( H t ) = p 1 − 1 q 1 − 1 . In this case, with 1 / p = 4 / 3 and 1 / q = 2 this becomes ⋯ = 3 4 − 1 2 − 1 = 1 / 3 1 = 3 : 1 .
I owe you a big "Thank You", Sir! :)
Don't you also need to consider P ( c o r r e c t ∣ ¬ A ) ? In this case it works out, because P ( ¬ A ) = 2 1 .
Here's a full solution, I think:
Let P ( A i ) be the probability that the process ends after the i t h coin flip (so your A is my A 1 ). Then P ( A i ) = 2 − i , and P ( c o r r e c t ) = ∑ i P ( c o r r e c t ∣ A i ) P ( A i ) = 4 3 ∑ i 2 − i = 4 3 .
Log in to reply
When they have mentioned in the question about finally taking the situation of one head and one tails, why should we make it more complex by involving P ( correct ∣ ¬ A ) ?
Log in to reply
@Swagat Panda You're right. It doesn't really matter how we get to the final round. The final round is all that matters.
As your analysis/equation indicates, the "fair" coin is irrelevant in this calculation. In the general case, the probability will be just the probability of the weighted coin alone.
Log in to reply
Please have a look at @Arjen Vreugdenhil sir's comment above, had that not been a fair coin, this would have been a very different question altogether. What you say is basically a specific case of Arjen sir's generalisation, and that's why it seems as simple.
You have calculated a nice conditional probabilty, but how do you frame this as a full-fledged application of Bayes' Theorem?
This is the right solution.. yaa Bays' theorem..... dont know why i mistook... and exactly where i kept getting jumbled up....
The probability that the coin showing head is the weighted coin in the 1st flip is 4 3 * 2 1 = 8 3 .
However, we need to keep flipping the two coins as long as they show both heads OR both tails in all the previous flips. P(HH+TT) in any flip is = 4 3 * 2 1 + 4 1 * 2 1 = 2 1 .
Thus, the probability that the coin showing head is the weighted coin AND 2 or more flips are required is as follows:
P(coin is the weighted coin && 2 flips are required) = ( 4 3 * 2 1 + 4 1 * 2 1 ) * 4 3 * 2 1 = 2 1 * 8 3 .
P(coin is the weighted coin && 3 flips are required) = ( 4 3 * 2 1 + 4 1 * 2 1 ) * ( 4 3 * 2 1 + 4 1 * 2 1 ) * 4 3 * 2 1 = ( 2 1 ) 2 * 8 3 .
P(coin is the weighted coin && n flips are required ) = ( 2 1 ) n − 1 * 8 3 (n>=1).
As n gets infinitely larger, the sum of all the probabilities becomes an infinite geometric series with the ratio |r|<1 since r = 2 1 and the first term is 8 3 . The series sums up to: 8 3 * 1 − 0 . 5 1 = 3 / 4
There is no need to sum infinite series or invoke theorems, it is simply enough to look at the ratio of correct determinations against incorrect determinations. We can disregard all flips where both coins show the same sign as we merely toss again i.e. we are in exactly the same state as if we had not tossed at all.
Chance of a correct determination (HT) = 4 3 * 2 1 = 8 3
Chance of an incorrect determination (TH) = 4 1 * 2 1 = 8 1
Ratio of correct determination vs incorrect determination = 8 3 : 8 1 = 3 : 1
So overall chance of eventual correct determination = ( 3 + 1 ) 3 = 0.75 i.e. 75%
Write h , t for the outcomes of the fair coin and H , T for those of the biased coin.
What matters is only the last coin flip; we can simply ignore earlier outcomes, because they do not affect the odds of the final flip. We draw the correct conclusion if we flip t H ; this is precisely three times more likely than drawing the wrong conclusion with h T .
Therefore the odds are 3:1, a probability of 3 / 4 .
It is not relevant how long it takes to get to the desired coin flip (one heads and one tails), all that matters is the probability of each combination occurring on that successful one:
P ( Weighted H & Fair T ) = 4 3 ∗ 2 1 = 8 3
Similarly the others are calculated:
P ( Weighted H & Fair H ) = 8 3
P ( Weighted T & Fair H ) = 8 1
P ( Weighted T & Fair T ) = 8 1
The desired probability is P ( Weighted H | one heads and one tails )
Therefore it is 8 3 + 8 1 8 3 = 4 3
In general, with an unweighted coin and a weighted coin that is heads N% of the time, this strategy works N% of the time.
An intuitive way of putting it is that the unweighted coin favors neither outcome.
A more formal proof: P(Heads and Tails) (in any order) = 50% because after you flip the weighted coin, the unweighted coin will match half the time.
P(Fake coin Heads and Real coin Tails) = N% * 50% (Just multiply the probabilities)
P(Fake coin Heads and Real coin Tails)/ P(Heads and Tails) = N% * 50 % / 50% = N%
Nice insight about flipping the fair coin second.
probability of having weighted head = probability of having weighted head and probability of NOT having fair head.
thus, prob of having weighted head = 3/4 * (1 - 1/2) = 3/8
probability of having fair tail = probability of having fair tail and probability of NOT having weighted tail
thus, probability of having fair tail = 1/2 * (1 - 3/4) = 3/8
thus, probability of having weighted head and fair tail = probability of having weighted head + probability of having fair tail = 3/8 + 3/8 = 3/4
The possible scenarios could be: 1- Weighted: head Fair: tail this is the wanted situation possibility of this is: 3/4 x 1=3/4
Note: situations in which the side of coins are the same must be eliminated according to the question so, when a coin is on head the other one must be on tail.
Let A be the fair coin and B be the unfair coin. H = heads & T = tails. In every time you flip the two coins you have four different cases to consider: (A, B) could be 1- (T, T) with the probability of 2 1 * 4 1 ,
2- (H, H), with the probability of 2 1 * 4 3 ,
3- (H, T) with the probability of 2 1 * 4 1 ,
or 4- (T, H) with the probability of 2 1 * 4 3
Knowing that one of them is H and the other is T, we need to consider only 3 and 4. So the probability = the probability of 4 divided by the probability of (3 + 4) which is equal to 4 3 .
If u take 4 times First coin out comes:H H H T Second coin outcomes:H H T T Total 16 in sample space. The favorable are those in which one H and one T appears which happens to 8 Hfrom first and T from second (6 in total)+ T from first and H from second ( 2 in total) now out of this 8 what arevtge cases in which H is actually from weighed( first) ? It is 6 Hence the prob:6/8=3/4
The solution is really easy to understand. We stop at a Point, where just two of the four possible combinations exist. That means, that the probality for finding the wrong coin and the right one are together 1. So we can ignore the 2 1 probability of the normal coin and just use the probability for the weighted coin.
Listing the fair coin first, you either see HT or TH. Both outcomes of the fair coin are equally likely, so ratio of the likelihoods of your two possibilities is the ratio of the outcomes of the unfair coin, 3:1. Listed as a probability, that's 4 3 vs. 4 1 .
The probability that the weighted coin shows head is 0.75. The fair coin shows H\T in the same probability, so it does not have any effect, and that's why the probability the weighted coin shows H given one coin shows H and the other T is 0.75 too.
To be sure, I checked the probability that the weighted coin shows head P[w:H,f:T], given one coin shows H and the other T P[w:H,f:T]+P[w:T,f:H] (The results of flipping the coins is independent).
For the fair coin, the probability of heads (H) or tails (T) is 2 1 = 4 2 (i.e. HHTT), whereas the probability for the weighted coin is 4 3 (i.e. HHHT). Thus the options that result in one heads and one tails are:
Fair coin | Weighted |
HH T T | H HHT |
HH T T | H H HT |
HH T T | HH H T |
HHT T | H HHT |
HHT T | H H HT |
HHT T | HH H T |
H H TT | HHH T |
H HTT | HHH T |
Assuming the coin showing heads (H) would be correct in 6 of the 8 combinations as each coin flip is independent. 8 6 simplifies to 4 3 .
With the two coins, there are 8 possible results.
Four of those 8 possible results have the 1 Head and 1 Tail as required. In 4 3 of those possibilities, the weighted coin is heads while the fair coin is tails.
Therefore, the technique would work 4 3 of the time.
I did a simple list of 8 possibilities (since biased has 4 events) and counted 3 winning results (T/H) and one false positive (H/T). The other results would not matter since we would not stop flipping on a matching set of heads or tails.
normal/Biased.
H/H
H/H
H/H
H/T.
T/H
T/H
T/H
T/T
First of all, we can ignore all flips before the final one. The flips are independent and do not affect each other at all, so the question is equivalent to: Given that we have just flipped these coins and gotten one head and one tail, what are the chances that the coin showing heads is the weighted coin?
Now, there are two ways to produce one head and one tail: either the weighted coin shows heads and the normal coin shows tails, or the weighted coin shows tails and the normal coin shows heads. We want to know: What is the probability of the first outcome given that we get one of these two outcomes?
The first outcome has probability 3/4 * 1/2 = 3/8.
The second outcome has probability 1/4 * 1/2 = 1/8.
The probability of getting one of these outcomes is thus 3/8 + 1/8 = 1/2.
Therefore, the probability of getting the first outcome (p=3/8) given that we got one of the two (p=1/2) is (3/8) / (1/2) = 3/4.
Using the notation of lowercase letters representing the outcomes of the fair coin, h and t, and uppercase letters representing the outcomes of the weighted coin, H and T, this problem can conveniently be modeled as a 4-sided die and fair coin problem because the probabilities of the two events are independent. The 4-sided die has three sides labelled H and one side labelled T. A state diagram can show the probabilities of the 8 possible outcomes (see below). Only 4 of the 8 possibilities are significant (i.e. an outcome that involves a head and a tail). Three of the 4 significant outcomes correctly identify the weighted coin, tH. The other outcome, hT, of the significant outcomes, is deceptive. Therefore, this method has a 3/4 chance of being "correct".
The probability of guessing the coins correctly on the first flip is 4 3 ⋅ 2 1 = 8 3 You will only flip again if the 2 coins have the same side facing upward, so the probability of flipping again is ( 4 3 ⋅ 2 1 ) + ( 4 1 ⋅ 2 1 ) = 8 3 + 8 1 = 2 1 . Now, we can form a geometric series representing the probability of choosing the write coin. 8 3 + ( 2 1 ⋅ 8 3 ) + ( ( 2 1 ) 2 ⋅ 8 3 ) + ( ( 2 1 ) 3 ⋅ 8 3 ) + . . . . 1 − 2 1 8 3 = 2 1 8 3 = 8 3 ⋅ 2 = 4 3
If we note down all the possibilities, We get H T, H H, H T, T H, H H, H T, H H, T T. In the first four possibilities three times we get a head and tail combination out of which we get two of them correctly identified. In the next four possibilities we get a single head and tail combination which we get correctly identified. The first four and the next four are listed differently because there is an equal possibility for the weighted coin and fair coins combination to be a TH and TT. So, out of four combinations three are identified correctly. This is why we have a 3/4 possibility of identifying the weighted and the fair coins correctly.
I found the solution with the aid of a state diagram, but unfortunately I lack the skills to post. So here it is written out:-
At the first flip of the coins there are three possible outcomes:-
hT = 1/2 * 1/4 = 1/8 = leads to incorrect assumption
tH = 1//2 * 3/4 = 3/8 = leads to correct assumption
tT or hH = 1/2 * 1/4 + 1/2 * 3/4 = 1/2 = requires a re-flip
where h and t are the heads and tails probabilities of the fair coin H and T are the heads and tails probabilities of the weighted coin
Therefore we have an infinite series of possible re-flips, each with a probability of 3/8 of leading to a correct assumption and 1/2 of requiring another re-flip. i.e. We have:-
3/8 * (1 + 1/2 + 1/4 + 1/8 + .......) = 3/8 * 2 = 3/4
Essentially, the probability of getting heads or both tails in n-1 trails is a common weighting factors for both cases and works out as a geometric progression with ratio 1/2. So, the probability of the biased coin showing heads first goes as (3/4) * (1/2) *[ 1 + 1/2 + 1/4 + ..........] The probability of the unbiased coin showing heads first goes as (1/4 * (1/2) * [1+ 1/2 + 1/4 + .......] So, the odds of the biased coin showing heads first is 3 : 1 Hence the probability of the above is 3/4
For completeness, the derivation of the infinite series is as follows : Probability of getting both heads in the first trail : (3/4 * 1/2 = 3/8) Probability of getting both tails in the first trail : (1/4 * 1/2 = 1/8) Probability of getting both heads or tails in the first trail = 3/8 + 1/8 = 4/8 = 1/2
Now for the 2nd trail, there are 4 possibilities :
Both heads in both trails (3/4)^2 (1/2)^2 = (9 /16) (1/4) = 9/64 One Pair of heads and One Pair of tails (there are 2 combinations) = 2[(3/8) (1/8)]=2 3/64 Both tails in both trails = (1/8)*(1/8) = 1/64
The required probability = (9+6+1)/64 = 16/64 = 1/4
Though it may seem that the infinite series computation is unnecessary, it not only gives an insight into the problem but also is necessary if we want to compute the absolute probability of winning or winning within a given number of trials and possibly a host of other quantities.
Problem Loading...
Note Loading...
Set Loading...
With the two coins, there are four possible results (fair coin probability shown first):
Heads/Heads: (1/2)*(3/4) = 3/8
Heads/Tails: (1/2)*(1/4) = 1/8
Tails/Heads: (1/2)*(3/4) = 3/8
Tails/Tails: (1/2)*(1/4) = 1/8
So, surprisingly, the chance of heads/tails is 50% (two middle scenarios), and 1 out of 4 times it will be because the weighted coin came up tails ( shown in bold ). Therefore, 3 out of 4 times (3/4) it comes out tails/heads because the weighted coin came up heads.