Maximizing Probability of Drawing a Yellow Ball from Two Urns

akoska
Messages
22
Reaction score
0
Urgent probability questions!

Please help!

How can 5 black and 5 yellow balls be put into two urns to maximize the probability that a yellow ball is drawn from a randomly chosen urn?

I got:
P(draw yellow)=P(draw yellow intersect urn1)+P(draw yellow intersect urn2)
=P(draw yellow|urn1)P(urn1) + P(draw yellow|urn2)P(urn2)
=1/2((y/y+k)+(5-y)/(10-y-k))

where y=number of yelow balls in urn 1 and k=number of black balls in urn 2
and y, k<=5

Then, I think I should plug in k=1, 2, 3..., differentiate the above, and set it to zero. Find critical value--but I never get a solution! I get something like -9=0...


Also, if there are b black balls and y yellow balls in an urn, and a person takes one out, replaces it, and adds in another of the same color, prove that at the nth trial, the probability of picking a black ball is b/b+y
 
Physics news on Phys.org
Let F = P(draw yellow|urn1)P(urn1) + P(draw yellow|urn2)P(urn2) = (y1/n1 + y2/n2)/2.
You also have
y1 + y2 = 5
n1 + n2 = 10.
Therefore you can write y2 = 5 - y1 and n2 = 10 - n1 and substitute into F.
Now, how do you simultaneously set y1 and n1 to maximize F?
 
EnumaElish said:
Let F = P(draw yellow|urn1)P(urn1) + P(draw yellow|urn2)P(urn2) = (y1/n1 + y2/n2)/2.
You also have
y1 + y2 = 5
n1 + n2 = 10.
Therefore you can write y2 = 5 - y1 and n2 = 10 - n1 and substitute into F.
Now, how do you simultaneously set y1 and n1 to maximize F?

This doesn't work for a couple of reasons:
  • The solution (y1=2.5, n1=5) is not an integral solution.
  • More importantly, the solution is a saddle point. Its neither a minimum nor a maximum. If you had six of each color rather than five, the derivative-based solution is acheivable but is not maximal.

The resultant resultant probability for the derivative-based approach is 50%. There are many realizable arrangements that yield a 50% probability, for example
  • One of each color in one jug, the rest in the other jug
  • Two of each color in one jug, the rest in the other jug
  • One yellow and four black balls in one jug, four yellow and one black in the other jug.

There are several arrangements that do better than 50%. For example, two yellow and four black balls in one jug, three yellow balls and one black ball in the other yields a probability of 1/3 for jug A, 3/4 for jug B, or 13/24 for a random jug. There are ways to do even better. If you think about the problem for a bit one arrangement should pop out as special. Of course, you could brute-force it; there are only 21 combinations to worry about.
 
I was wrong; y1=3, n1=5 is a saddle point. Thanks for catching it.
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top