Ending the draw

I have a bag containing 20 red balls and 16 blue balls. I uniformly randomly take balls out from the bag without replacement until all balls of a color have been removed. If the probability that the last ball I took was red can be represented as p q \frac{p}{q} , where p p and q q are coprime positive integers, find p + q p+q .


The answer is 13.

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

Ivan Koswara
Dec 29, 2016

Instead of ending after I get all balls of a color, continue until all balls are taken out.

Note that we cannot exhaust the balls in the original scenario; if we exhaust the balls, then before the last ball was taken, the balls of the other color are already gone. (For example, if the last ball was blue, then before that, the bag contains one blue ball, so the red balls were already gone.)

If the last ball taken out in the original is red, then all remaining balls are blue, so the last ball taken out in the modified version is blue, and vice versa. Thus we want to determine the probability that the last ball taken out in the modified version is blue. But this probability is easy; since the last ball taken out in the modified version is always the 36th ball, we can just assume we pick this 36th ball first, and the rest afterwards. Thus this is just the probability that we pick a blue ball, namely 16 36 = 4 9 \frac{16}{36} = \boxed{\frac{4}{9}} .

Very nice bijection!

Calvin Lin Staff - 4 years, 5 months ago

Log in to reply

P ( 36 t h = B l u e ) = 20 C 20 × 16 C 15 36 C 35 P(36th=Blue)=\frac{ { _{ 20 }{ C }_{ 20 }\times _{ 16 }{ C }_{ 15 } } }{ _{ 36 }{ C }_{ 35 } }

Is the above solution acceptable?

Lance Joseph Esquejo - 4 years, 2 months ago

Log in to reply

Depends on what you mean by "acceptable".

If you mean "Is there a solution approach that uses this fact that I stated?", then yes.
If you mean "Can a normal human understand what I'm trying to say?", then no.

IE For the solution to be understood, you have to explain why you're interested in calculating P(36=Blue), and then how the formula is obtained.

Calvin Lin Staff - 4 years, 2 months ago

Log in to reply

@Calvin Lin The only way that all the red balls will be removed before the blue balls is to show that the last ball is the blue one. The probability that the last remaining ball is a blue ball is the same as the probability of getting 20 out of 20 red balls and 15 out of 16 blue balls. Thus, P ( 36 t h b a l l = B l u e ) = 20 C 20 × 16 C 15 36 C 35 P ( 36 t h b a l l = B l u e ) = 4 9 P(36th ball = Blue) =\frac{ { _{ 20 }{ C }_{ 20 }\times _{ 16 }{ C }_{ 15 } } }{ _{ 36 }{ C }_{ 35 } }\\ P(36th ball = Blue) = \frac { 4 }{ 9 }

Does my statement make sense now?

Lance Joseph Esquejo - 4 years, 2 months ago

Log in to reply

@Lance Joseph Esquejo Yes. Can you post that as a separate solution?

Calvin Lin Staff - 4 years, 2 months ago

Log in to reply

@Calvin Lin Thank you, sir. How can I post this as separate solution? I'm sorry, I can't see any button.

Lance Joseph Esquejo - 4 years, 2 months ago

Log in to reply

@Lance Joseph Esquejo For those who answered the problem correctly (which you did not), they will be able to post a solution:

I've converted your comment into a solution.

Calvin Lin Staff - 4 years, 2 months ago

Log in to reply

@Calvin Lin Thank you, sir. Till next time.

Lance Joseph Esquejo - 4 years, 2 months ago

What do you mean by modified version ???

Kushal Bose - 4 years, 5 months ago

Log in to reply

My solution provides a modified version of the drawing. The original version, as in the problem, draws until I have all of a color; the modified version, in my solution, draws until all balls are out. I show the two are equivalent and we can find the probability asked in the problem by looking at the modified version.

Ivan Koswara - 4 years, 5 months ago

I didn't understand how the modified version is same as the original question can you please elaborate a little

Shamant Basidoni - 4 years, 2 months ago

Log in to reply

If in the original version I removed all red balls first, then in the modified version the last ball I took must be blue, and vice versa. Since we want the probability that I removed all red balls in the original version, it's enough to find the probability that the last ball I took is blue in the modified version, because the two are the same thing.

Ivan Koswara - 4 years, 2 months ago

Is this the only possible solution to this particular problem?

Lance Joseph Esquejo - 4 years, 2 months ago

Log in to reply

no because there are more down below

Jeff Lo - 2 years, 1 month ago

I am not sure how correct this solution is. I think the given answer gives the probability for only when we draw 15 blue then one red.

If we assume Hypergeometric probability and two items as here:
m -> number of total reds
i -> number of drawn red
n -> number of balls
k -> number of balls drawn in a round
P r = ( m i ) ( n m k i ) ( n k ) Pr = \frac{\binom{m}{i}\binom{n-m}{k-i}}{\binom{n}{k}}
with this formula, we can calculate the probability of drawing the red at the last round. To do this we can calculate the probability we draw all of the reds and k-i blues from 0 to 15. The correct answer would be the sum of all of these events. Here's a python code to calculate this: https://colab.research.google.com/drive/1PGqMk5FyEqxI2az0WqOyixl8GwMOXiAF?usp=sharing
If you see the print outs the probability of drawing 15 blue balls and all the reds is 0.444 which is 4 9 \frac{4}{9} .

Alihan Zıhna - 2 weeks, 2 days ago

The only way that all the red balls will be removed before the blue balls is to show that the last ball is the blue one. The probability that the last remaining ball is a blue ball is the same as the probability of getting 20 out of 20 red balls and 15 out of 16 blue balls. Thus, P ( 36 t h b a l l = B l u e ) = 20 C 20 × 16 C 15 36 C 35 P ( 36 t h b a l l = B l u e ) = 4 9 P(36th ball = Blue) =\frac{ { _{ 20 }{ C }_{ 20 }\times _{ 16 }{ C }_{ 15 } } }{ _{ 36 }{ C }_{ 35 } }\\P(36th ball = Blue) = \frac { 4 }{ 9 } .

Honestly, I don’t think so. This only guarantees that we removing all red ball before the bag is empty. However, it doesn’t garantee the last ball before the game ends is red. For example, assuming all first 20 are red and 21st-35th are blue, although it guarantees the last one is blue, this doesn’t fit the description.

Zz Z - 1 year, 9 months ago

This isn't a counterexample. The scenario you describe does fit the description: after ball 20 the game ends since all the reds have been removed, and the last ball picked was red.

Jordan Katz - 1 year, 4 months ago

Log in to reply

You are misunderstanding the solution.

What he is meant (but did not say) is that "Instead of ending after I get all balls of a color, continue until all balls are taken out."

Calvin Lin Staff - 1 year, 4 months ago
Timon Gurcke
Sep 26, 2018

As long as there are balls of both colors in the bag we take them out one by one. In the worst case scenario we take out 35 balls to end the game. Lets assume now that we don't end the game early and always take out 35 balls.

There are ( 35 20 ) {35}\choose{20} ways to pick all red balls first and ( 35 16 ) {35}\choose{16} ways to pick all blue balls first, so the probability to pick all the red balls first is:

( 35 20 ) ( 35 20 ) + ( 35 16 ) = 4 9 \frac{{35}\choose{20}}{\binom{35}{20}+\binom{35}{16}} = \boxed{\frac{4}{9}}

but the quetion was to pick the red ball at last

Gandreti Shyam Sundar cs18b015 - 4 months, 1 week ago

Log in to reply

That is the assumption of my calculation. We calculate how many ways there are to pick the first 35 balls such that the remaining ball is red.

Timon Gurcke - 3 months, 2 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...