Maximizing Probability of Drawing a Yellow Ball from Two Urns

Click For Summary

Homework Help Overview

The discussion revolves around a probability problem involving the arrangement of black and yellow balls in two urns to maximize the likelihood of drawing a yellow ball from a randomly chosen urn. The problem is framed within the context of probability theory.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore different formulations of the probability function and discuss how to maximize it by manipulating the number of balls in each urn. Questions arise about the feasibility of certain solutions and the implications of saddle points in the context of optimization.

Discussion Status

There is an ongoing exploration of various arrangements and their probabilities. Some participants have provided alternative arrangements that yield higher probabilities than initially calculated. The discussion includes attempts to derive critical values and the implications of different configurations, with no explicit consensus reached on the optimal solution.

Contextual Notes

Participants note constraints such as the total number of balls and the requirement for integer solutions. There is also mention of the challenge in achieving a maximum probability with the given conditions.

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:

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
500