How many coins are there in total?

A box contains fair coins and unfair coins. When one of the unfair coins is flipped, the probability that it lands heads is 2 3 . \frac{2}{3}. A coin is randomly drawn from the box and flipped twice. One of these flips lands heads, and the other one lands tails. The probability that the coin was fair is exactly 1 2 \frac{1}{2} . Find the minimum number of coins in the box.


The answer is 17.

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.

3 solutions

Pop Wong
Aug 28, 2020
  • F F be no. of fair coins
  • U U be no. of unfair coins
  • N = F + U N = F+U

P r ( i s fair coin | 1 H and 1 T ) = P r (get fair coin and flip 1 H and flip 1 T) P r (get a coin at random and flip 1 H and flip 1 T) = 1 2 P r (get fair coin and flip 1 H and flip 1 T) = F N 2 4 = 1 2 F N P r (get a coin at random and flip 1 H and flip 1 T) = F N 2 4 + U N 2 2 3 1 3 = 1 2 F N + 4 9 U N F N = 1 2 F N + U N 4 9 1 2 F N = 4 9 U N 9 F = 8 U \begin{aligned} Pr( i\text{s fair coin | 1 H and 1 T }) &= \cfrac{ Pr\text{(get fair coin and flip 1 H and flip 1 T)} }{ Pr \text{(get a coin at random and flip 1 H and flip 1 T) } }= \cfrac{1}{2} \\ \\ Pr\text{(get fair coin and flip 1 H and flip 1 T)} &= \cfrac{F}{N} \cdot \cfrac{2}{4} = \cfrac{1}{2} \cdot \cfrac{F}{N} \\ \\ Pr\text{(get a coin at random and flip 1 H and flip 1 T) } &= \cfrac{F}{N} \cdot \cfrac{2}{4} + \cfrac{U}{N} \cdot 2 \cdot \cfrac{2}{3} \cfrac{1}{3} = \cfrac{1}{2} \cdot \cfrac{F}{N}+ \cfrac{4}{9}\cdot \cfrac{U}{N} \\ \\ \implies \cfrac{F}{N} &= \cfrac{1}{2} \cdot \cfrac{F}{N} + \cfrac{U}{N} \cdot \cfrac{4}{9} \\ \implies \cfrac{1}{2} \cdot \cfrac{F}{N} &= \cfrac{4}{9} \cdot \cfrac{U}{N} \\ \implies 9F &=8U \end{aligned}

min. N = 17 when F=8, U=9 \therefore \text{ min. \boxed{ N = 17 } when F=8, U=9}

There doesn't seem to be enough information in the problem to determine the number of coins.

Gary Miller - 9 months, 2 weeks ago

If the probability that the coin was fair is exactly 1/2, doesn't that mean there's an even number of coins in the box, half fair, and half unfair.

A Former Brilliant Member - 9 months, 2 weeks ago

Log in to reply

If the probability that the coin was fair is exactly 1/2 ....

Refer to the question, the coin means a coin is randomly drawn from the box and flipped twice with 1 H and 1 T.

It doesn't mean that you have half chance to get a fair coin.

Pop Wong - 9 months, 2 weeks ago
Gediminas Sadzius
Aug 29, 2020

Say there are "m" fair coins and "n" biased coins. Two events could have happened:

  • drawing a fair coin and then flipping it twice to get heads and tails

  • drawing a biased coin and then flipping it twice to get heads and tails

Both the two events have equal probability of 1 2 \frac{1}{2} : a fair coin of 1 2 \frac{1}{2} and a biased coin 1- 1 2 \frac{1}{2} = 1 2 \frac{1}{2} .

The probability of the event of drawing a fair coin and flipping heads and tails is m n + m \frac{m}{n+m} × \times 1 2 \frac{1}{2} × \times 1 2 \frac{1}{2} .

The probability of the event of drawing a biased coin and flipping heads and tails is n n + m \frac{n}{n+m} × \times 2 3 \frac{2}{3} × \times 1 3 \frac{1}{3} .

Since both the event probabilities are equal:

1 4 \frac{1}{4} × \times m n + m \frac{m}{n+m} = 2 9 \frac{2}{9} × \times n n + m \frac{n}{n+m}

so

1 4 \frac{1}{4} × \times m = 2 9 \frac{2}{9} × \times n

or

n m \frac{n}{m} = 9 8 \frac{9}{8}

and the total number of coins is n + m, or 8 + 9 = 17 \boxed{17}

We are given that there is some number of fair coins and some number of unfair coins in a box and that randomly drawing a coin and flipping it twice yields a T and a H. In addition, the probability that we selected a fair coin is 1 2 \frac{1}{2} . This problem is a perfect application of Bayes's Theorem.

We know that P ( fair heads and tails ) = 1 2 P(\text{fair} | \text{heads and tails}) = \frac{1}{2} and, by application of Bayes's Theorem, P ( fair heads and tails ) = P ( fair and heads and tails ) P ( heads and tails ) P(\text{fair} | \text{heads and tails}) = \frac{P(\text{fair and heads and tails})}{P(\text{heads and tails})} . P ( fair and heads and tails ) = 2 p ( 1 2 ) 2 P(\text{fair and heads and tails}) = 2p(\frac{1}{2})^2 where p p is the probability of selecting a fair coin and P ( heads and tails ) = 2 p ( 1 2 ) 2 + 2 ( 1 p ) ( 2 3 ) ( 1 3 ) P(\text{heads and tails}) = 2p(\frac{1}{2})^2 + 2(1 - p)(\frac{2}{3})(\frac{1}{3}) . Thus, 1 2 = 2 p ( 1 2 ) 2 2 p ( 1 2 ) 2 + 2 ( 1 p ) ( 2 3 ) ( 1 3 ) \displaystyle \frac{1}{2}=\frac{2p\left(\frac{1}{2}\right)^{2}}{2p\left(\frac{1}{2}\right)^{2}+2\left(1-p\right)\left(\frac{2}{3}\right)\left(\frac{1}{3}\right)} 1 4 p + 2 9 ( 1 p ) = 1 2 p \displaystyle \frac{1}{4}p+\frac{2}{9}\left(1-p\right)=\frac{1}{2}p 2 9 = 17 36 p \displaystyle \frac{2}{9}=\frac{17}{36}p p = 8 17 p=\frac{8}{17}

The value of p p we have found is the reduced ratio of fair coins to the total number of coins. The total number of coins could be any multiple of 17. But since the question asks what the minimum number of coins in the box is, we can simply conclude that the minimum is 17 \boxed{17}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...