Picking balls from urns.Selecting multiple balls of same color from different urnsDrawing balls from urnsDrawing balls from multiple urnsPick coloured balls from given urnsNumber of urns containing a ball of each color: is there a probability distribution describing this?Distributing indistinguishable coloured balls into distinguishable urnsTwo urns of balls, expected amount of remaining balls.Two urns drawing out a single ballTwo Urns ProbabilityTwo urns with different number of balls, from each urn a ball is drawn at random.
Is there an easy way to index by a binary vector / mask?
What do you call the angle of the direction of an airplane?
how to convert Timestring to seconds
What is exact meaning of “ich wäre gern”?
Has chattel slavery ever been used as a criminal punishment in the USA since the passage of the Thirteenth Amendment?
Why does the Batman "crack his knuckles" in "Batman: Arkham Origins"?
Is it bad to suddenly introduce another element to your fantasy world a good ways into the story?
How to deal with administrative duties killing the research spirit?
Data normalization before or after train-test split?
What is meant by perfect, imperfect consonance and dissonance?
Term for a character that only exists to be talked to
Bypass with wrong cvv of debit card and getting OTP
Explain how 'Sharing the burden' puzzle from Professor Layton and the Miracle Mask should be solved
What are the differences of checking a self-signed certificate vs ignore it?
Phrasing "it says" or "it reads"
Are there advantages in writing by hand over typing out a story?
Why do Klingons use cloaking devices?
What is meaning of 4 letter abbreviations in Roman names like Titus Flavius T. f. T. n. Sabinus?
Should I warn my boss I might take sick leave
Could you sell yourself into slavery in the USA?
How serious is plagiarism in a master’s thesis?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
What does the ash content of broken wheat really mean?
Is there a typical layout to blocking installed for backing in new construction framing?
Picking balls from urns.
Selecting multiple balls of same color from different urnsDrawing balls from urnsDrawing balls from multiple urnsPick coloured balls from given urnsNumber of urns containing a ball of each color: is there a probability distribution describing this?Distributing indistinguishable coloured balls into distinguishable urnsTwo urns of balls, expected amount of remaining balls.Two urns drawing out a single ballTwo Urns ProbabilityTwo urns with different number of balls, from each urn a ball is drawn at random.
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
We have 2 urns, 5 red balls and 5 green balls. We will split the 10 balls in the 2 urns in any way we like (provided that each urn has exactly 5 balls) and then will choose one urn at random, of which we will pick one ball.
If the ball is red, we will be asked to draw a second one from the other urn. If the first ball is green, we will keep it out of the urn and draw a second one from the same urn. We will win 100,000 rupees if we pick 2 balls of the same color. What is the optimum way to split the balls in the urns? (obviously the urns are identical, they are not transparent and we can’t cheat! Also, once we split the balls, the urns are taken away and brought back to us, so that we don't know which is which.)
Obviously we can't put 5 red in one urn and 5 green in the other, because if we pick the urn with the red balls, we will never pick 2 of the same color. So both jars must contain both colors but I can't figure out the optimum combination. I was told it is something about a Bayes theorem, but I am not familiar with this (although I looked it up in wiki).
Any help? Many thanks!
probability combinatorics discrete-mathematics
$endgroup$
add a comment |
$begingroup$
We have 2 urns, 5 red balls and 5 green balls. We will split the 10 balls in the 2 urns in any way we like (provided that each urn has exactly 5 balls) and then will choose one urn at random, of which we will pick one ball.
If the ball is red, we will be asked to draw a second one from the other urn. If the first ball is green, we will keep it out of the urn and draw a second one from the same urn. We will win 100,000 rupees if we pick 2 balls of the same color. What is the optimum way to split the balls in the urns? (obviously the urns are identical, they are not transparent and we can’t cheat! Also, once we split the balls, the urns are taken away and brought back to us, so that we don't know which is which.)
Obviously we can't put 5 red in one urn and 5 green in the other, because if we pick the urn with the red balls, we will never pick 2 of the same color. So both jars must contain both colors but I can't figure out the optimum combination. I was told it is something about a Bayes theorem, but I am not familiar with this (although I looked it up in wiki).
Any help? Many thanks!
probability combinatorics discrete-mathematics
$endgroup$
add a comment |
$begingroup$
We have 2 urns, 5 red balls and 5 green balls. We will split the 10 balls in the 2 urns in any way we like (provided that each urn has exactly 5 balls) and then will choose one urn at random, of which we will pick one ball.
If the ball is red, we will be asked to draw a second one from the other urn. If the first ball is green, we will keep it out of the urn and draw a second one from the same urn. We will win 100,000 rupees if we pick 2 balls of the same color. What is the optimum way to split the balls in the urns? (obviously the urns are identical, they are not transparent and we can’t cheat! Also, once we split the balls, the urns are taken away and brought back to us, so that we don't know which is which.)
Obviously we can't put 5 red in one urn and 5 green in the other, because if we pick the urn with the red balls, we will never pick 2 of the same color. So both jars must contain both colors but I can't figure out the optimum combination. I was told it is something about a Bayes theorem, but I am not familiar with this (although I looked it up in wiki).
Any help? Many thanks!
probability combinatorics discrete-mathematics
$endgroup$
We have 2 urns, 5 red balls and 5 green balls. We will split the 10 balls in the 2 urns in any way we like (provided that each urn has exactly 5 balls) and then will choose one urn at random, of which we will pick one ball.
If the ball is red, we will be asked to draw a second one from the other urn. If the first ball is green, we will keep it out of the urn and draw a second one from the same urn. We will win 100,000 rupees if we pick 2 balls of the same color. What is the optimum way to split the balls in the urns? (obviously the urns are identical, they are not transparent and we can’t cheat! Also, once we split the balls, the urns are taken away and brought back to us, so that we don't know which is which.)
Obviously we can't put 5 red in one urn and 5 green in the other, because if we pick the urn with the red balls, we will never pick 2 of the same color. So both jars must contain both colors but I can't figure out the optimum combination. I was told it is something about a Bayes theorem, but I am not familiar with this (although I looked it up in wiki).
Any help? Many thanks!
probability combinatorics discrete-mathematics
probability combinatorics discrete-mathematics
edited Jun 25 at 10:54
ArsenBerk
9,8603 gold badges14 silver badges39 bronze badges
9,8603 gold badges14 silver badges39 bronze badges
asked Jun 25 at 9:32
Carlos LopezCarlos Lopez
2007 bronze badges
2007 bronze badges
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
There will be an urn in which the number $r$ of red balls will satisfy
$rinleft 0,1,2right $.
To be found is an answer to the question: "for which of the options $r=0,1,2$ will $P(S)$ be maximal?"
Let $E$ denote the event that this
urn will be chosen at random and let $S$ denote the event that two
balls are chosen that have the same color.
If $r=0$ then $S=E$ hence $Pleft(Sright)=Pleft(Eright)=frac12$.
If $rinleft 1,2right $ then $$Pleft(Sright)=Pleft(Eright)Pleft(Smid Eright)+Pleft(E^complementright)Pleft(Smid E^complementright)=frac12left[Pleft(Smid Eright)+Pleft(Smid E^complementright)right]$$
Here $$Pleft(Smid Eright)=fracr5frac5-r5+frac5-r5frac4-r4$$
and $$Pleft(Smid E^complementright)=frac5-r5fracr5+fracr5fracr-14$$
(do you see why?).
Now substitute $r=1,2$ and draw conclusions.
$endgroup$
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
|
show 2 more comments
$begingroup$
Let $a$ be the number of red balls in the first urn. Then we have $5-a$ green balls in the first urn and $a$ green balls in the second urn (means that $5-a$ red balls in the second urn). Then, we are trying to maximize the probability of getting $2$ balls with the same color. Here, let $R$ be the event that we pick $2$ red balls and $G$ be the event that we pick $2$ green balls. Then,
$$P(R) = underbracefrac12cdot fraca5cdot frac5-a5_textif we pick first urn first+underbracefrac12cdot frac5-a5cdot fraca5_textif we pick second urn first = frac(5-a)a25$$
and
$$P(G) = underbracefrac12cdotfrac5-a5cdot frac4-a4_textif we pick first urn first+underbracefrac12cdot fraca5cdot fraca-14_textif we pick second urn first = fraca^2-5a+1020$$
Then, $P(R cup G) = P(R)+P(G)$ is the probability we are trying to maximize.
$$P(R)+P(G) = frac5a-a^225+fraca^2-5a+1020 = fraca^2-5a+50100$$
Here, we need to find maximum value of the function $f(a) = a^2-5a+50$ in the interval $a in [0,5]$ and $a in mathbbN$. Here, you can either try it for $a = 0,1,2$ or you can sketch the graph of this parabola on $[0,5]$ and see that it gets its maximum value at $a = 0$ and $a = 5$ with $50%$.
$endgroup$
add a comment |
$begingroup$
If you put the 5 red balls in one urn and the 5 greens in the other, you will win if you are presented the urn with the green balls first and loose if you are presented the urn with the red balls first. So you have a $50%$ chance to win. One can do a similar computation for the other two options, ie 4 and 1 or 3 and 2 of each color in each urn. Can you compute the probability to win for these other distributions of the balls?
$endgroup$
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3273608%2fpicking-balls-from-urns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
There will be an urn in which the number $r$ of red balls will satisfy
$rinleft 0,1,2right $.
To be found is an answer to the question: "for which of the options $r=0,1,2$ will $P(S)$ be maximal?"
Let $E$ denote the event that this
urn will be chosen at random and let $S$ denote the event that two
balls are chosen that have the same color.
If $r=0$ then $S=E$ hence $Pleft(Sright)=Pleft(Eright)=frac12$.
If $rinleft 1,2right $ then $$Pleft(Sright)=Pleft(Eright)Pleft(Smid Eright)+Pleft(E^complementright)Pleft(Smid E^complementright)=frac12left[Pleft(Smid Eright)+Pleft(Smid E^complementright)right]$$
Here $$Pleft(Smid Eright)=fracr5frac5-r5+frac5-r5frac4-r4$$
and $$Pleft(Smid E^complementright)=frac5-r5fracr5+fracr5fracr-14$$
(do you see why?).
Now substitute $r=1,2$ and draw conclusions.
$endgroup$
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
|
show 2 more comments
$begingroup$
There will be an urn in which the number $r$ of red balls will satisfy
$rinleft 0,1,2right $.
To be found is an answer to the question: "for which of the options $r=0,1,2$ will $P(S)$ be maximal?"
Let $E$ denote the event that this
urn will be chosen at random and let $S$ denote the event that two
balls are chosen that have the same color.
If $r=0$ then $S=E$ hence $Pleft(Sright)=Pleft(Eright)=frac12$.
If $rinleft 1,2right $ then $$Pleft(Sright)=Pleft(Eright)Pleft(Smid Eright)+Pleft(E^complementright)Pleft(Smid E^complementright)=frac12left[Pleft(Smid Eright)+Pleft(Smid E^complementright)right]$$
Here $$Pleft(Smid Eright)=fracr5frac5-r5+frac5-r5frac4-r4$$
and $$Pleft(Smid E^complementright)=frac5-r5fracr5+fracr5fracr-14$$
(do you see why?).
Now substitute $r=1,2$ and draw conclusions.
$endgroup$
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
|
show 2 more comments
$begingroup$
There will be an urn in which the number $r$ of red balls will satisfy
$rinleft 0,1,2right $.
To be found is an answer to the question: "for which of the options $r=0,1,2$ will $P(S)$ be maximal?"
Let $E$ denote the event that this
urn will be chosen at random and let $S$ denote the event that two
balls are chosen that have the same color.
If $r=0$ then $S=E$ hence $Pleft(Sright)=Pleft(Eright)=frac12$.
If $rinleft 1,2right $ then $$Pleft(Sright)=Pleft(Eright)Pleft(Smid Eright)+Pleft(E^complementright)Pleft(Smid E^complementright)=frac12left[Pleft(Smid Eright)+Pleft(Smid E^complementright)right]$$
Here $$Pleft(Smid Eright)=fracr5frac5-r5+frac5-r5frac4-r4$$
and $$Pleft(Smid E^complementright)=frac5-r5fracr5+fracr5fracr-14$$
(do you see why?).
Now substitute $r=1,2$ and draw conclusions.
$endgroup$
There will be an urn in which the number $r$ of red balls will satisfy
$rinleft 0,1,2right $.
To be found is an answer to the question: "for which of the options $r=0,1,2$ will $P(S)$ be maximal?"
Let $E$ denote the event that this
urn will be chosen at random and let $S$ denote the event that two
balls are chosen that have the same color.
If $r=0$ then $S=E$ hence $Pleft(Sright)=Pleft(Eright)=frac12$.
If $rinleft 1,2right $ then $$Pleft(Sright)=Pleft(Eright)Pleft(Smid Eright)+Pleft(E^complementright)Pleft(Smid E^complementright)=frac12left[Pleft(Smid Eright)+Pleft(Smid E^complementright)right]$$
Here $$Pleft(Smid Eright)=fracr5frac5-r5+frac5-r5frac4-r4$$
and $$Pleft(Smid E^complementright)=frac5-r5fracr5+fracr5fracr-14$$
(do you see why?).
Now substitute $r=1,2$ and draw conclusions.
edited Jun 25 at 10:23
answered Jun 25 at 10:18
drhabdrhab
108k5 gold badges49 silver badges138 bronze badges
108k5 gold badges49 silver badges138 bronze badges
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
|
show 2 more comments
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
$begingroup$
drhab what is Ec?
$endgroup$
– Carlos Lopez
Jun 25 at 10:23
1
1
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
$begingroup$
$E^complement$ denotes the complement of $E$. You can call it the event that event $E$ does not occur, and can identify it with the event that the urn is chosen that has more than $2$ red balls.
$endgroup$
– drhab
Jun 25 at 10:24
2
2
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
$begingroup$
Almost,...$P(E)=P(E^complement)=frac12$. Do not confuse an event with its probability to occur.
$endgroup$
– drhab
Jun 25 at 10:29
1
1
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
$begingroup$
If you made no mistakes by substitution (I will check later) then: yes. Also it agrees with the answer of Arsenberk.
$endgroup$
– drhab
Jun 25 at 10:40
1
1
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
$begingroup$
I found the same outcomes as you.
$endgroup$
– drhab
Jun 25 at 10:54
|
show 2 more comments
$begingroup$
Let $a$ be the number of red balls in the first urn. Then we have $5-a$ green balls in the first urn and $a$ green balls in the second urn (means that $5-a$ red balls in the second urn). Then, we are trying to maximize the probability of getting $2$ balls with the same color. Here, let $R$ be the event that we pick $2$ red balls and $G$ be the event that we pick $2$ green balls. Then,
$$P(R) = underbracefrac12cdot fraca5cdot frac5-a5_textif we pick first urn first+underbracefrac12cdot frac5-a5cdot fraca5_textif we pick second urn first = frac(5-a)a25$$
and
$$P(G) = underbracefrac12cdotfrac5-a5cdot frac4-a4_textif we pick first urn first+underbracefrac12cdot fraca5cdot fraca-14_textif we pick second urn first = fraca^2-5a+1020$$
Then, $P(R cup G) = P(R)+P(G)$ is the probability we are trying to maximize.
$$P(R)+P(G) = frac5a-a^225+fraca^2-5a+1020 = fraca^2-5a+50100$$
Here, we need to find maximum value of the function $f(a) = a^2-5a+50$ in the interval $a in [0,5]$ and $a in mathbbN$. Here, you can either try it for $a = 0,1,2$ or you can sketch the graph of this parabola on $[0,5]$ and see that it gets its maximum value at $a = 0$ and $a = 5$ with $50%$.
$endgroup$
add a comment |
$begingroup$
Let $a$ be the number of red balls in the first urn. Then we have $5-a$ green balls in the first urn and $a$ green balls in the second urn (means that $5-a$ red balls in the second urn). Then, we are trying to maximize the probability of getting $2$ balls with the same color. Here, let $R$ be the event that we pick $2$ red balls and $G$ be the event that we pick $2$ green balls. Then,
$$P(R) = underbracefrac12cdot fraca5cdot frac5-a5_textif we pick first urn first+underbracefrac12cdot frac5-a5cdot fraca5_textif we pick second urn first = frac(5-a)a25$$
and
$$P(G) = underbracefrac12cdotfrac5-a5cdot frac4-a4_textif we pick first urn first+underbracefrac12cdot fraca5cdot fraca-14_textif we pick second urn first = fraca^2-5a+1020$$
Then, $P(R cup G) = P(R)+P(G)$ is the probability we are trying to maximize.
$$P(R)+P(G) = frac5a-a^225+fraca^2-5a+1020 = fraca^2-5a+50100$$
Here, we need to find maximum value of the function $f(a) = a^2-5a+50$ in the interval $a in [0,5]$ and $a in mathbbN$. Here, you can either try it for $a = 0,1,2$ or you can sketch the graph of this parabola on $[0,5]$ and see that it gets its maximum value at $a = 0$ and $a = 5$ with $50%$.
$endgroup$
add a comment |
$begingroup$
Let $a$ be the number of red balls in the first urn. Then we have $5-a$ green balls in the first urn and $a$ green balls in the second urn (means that $5-a$ red balls in the second urn). Then, we are trying to maximize the probability of getting $2$ balls with the same color. Here, let $R$ be the event that we pick $2$ red balls and $G$ be the event that we pick $2$ green balls. Then,
$$P(R) = underbracefrac12cdot fraca5cdot frac5-a5_textif we pick first urn first+underbracefrac12cdot frac5-a5cdot fraca5_textif we pick second urn first = frac(5-a)a25$$
and
$$P(G) = underbracefrac12cdotfrac5-a5cdot frac4-a4_textif we pick first urn first+underbracefrac12cdot fraca5cdot fraca-14_textif we pick second urn first = fraca^2-5a+1020$$
Then, $P(R cup G) = P(R)+P(G)$ is the probability we are trying to maximize.
$$P(R)+P(G) = frac5a-a^225+fraca^2-5a+1020 = fraca^2-5a+50100$$
Here, we need to find maximum value of the function $f(a) = a^2-5a+50$ in the interval $a in [0,5]$ and $a in mathbbN$. Here, you can either try it for $a = 0,1,2$ or you can sketch the graph of this parabola on $[0,5]$ and see that it gets its maximum value at $a = 0$ and $a = 5$ with $50%$.
$endgroup$
Let $a$ be the number of red balls in the first urn. Then we have $5-a$ green balls in the first urn and $a$ green balls in the second urn (means that $5-a$ red balls in the second urn). Then, we are trying to maximize the probability of getting $2$ balls with the same color. Here, let $R$ be the event that we pick $2$ red balls and $G$ be the event that we pick $2$ green balls. Then,
$$P(R) = underbracefrac12cdot fraca5cdot frac5-a5_textif we pick first urn first+underbracefrac12cdot frac5-a5cdot fraca5_textif we pick second urn first = frac(5-a)a25$$
and
$$P(G) = underbracefrac12cdotfrac5-a5cdot frac4-a4_textif we pick first urn first+underbracefrac12cdot fraca5cdot fraca-14_textif we pick second urn first = fraca^2-5a+1020$$
Then, $P(R cup G) = P(R)+P(G)$ is the probability we are trying to maximize.
$$P(R)+P(G) = frac5a-a^225+fraca^2-5a+1020 = fraca^2-5a+50100$$
Here, we need to find maximum value of the function $f(a) = a^2-5a+50$ in the interval $a in [0,5]$ and $a in mathbbN$. Here, you can either try it for $a = 0,1,2$ or you can sketch the graph of this parabola on $[0,5]$ and see that it gets its maximum value at $a = 0$ and $a = 5$ with $50%$.
edited Jun 25 at 10:31
answered Jun 25 at 10:20
ArsenBerkArsenBerk
9,8603 gold badges14 silver badges39 bronze badges
9,8603 gold badges14 silver badges39 bronze badges
add a comment |
add a comment |
$begingroup$
If you put the 5 red balls in one urn and the 5 greens in the other, you will win if you are presented the urn with the green balls first and loose if you are presented the urn with the red balls first. So you have a $50%$ chance to win. One can do a similar computation for the other two options, ie 4 and 1 or 3 and 2 of each color in each urn. Can you compute the probability to win for these other distributions of the balls?
$endgroup$
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
add a comment |
$begingroup$
If you put the 5 red balls in one urn and the 5 greens in the other, you will win if you are presented the urn with the green balls first and loose if you are presented the urn with the red balls first. So you have a $50%$ chance to win. One can do a similar computation for the other two options, ie 4 and 1 or 3 and 2 of each color in each urn. Can you compute the probability to win for these other distributions of the balls?
$endgroup$
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
add a comment |
$begingroup$
If you put the 5 red balls in one urn and the 5 greens in the other, you will win if you are presented the urn with the green balls first and loose if you are presented the urn with the red balls first. So you have a $50%$ chance to win. One can do a similar computation for the other two options, ie 4 and 1 or 3 and 2 of each color in each urn. Can you compute the probability to win for these other distributions of the balls?
$endgroup$
If you put the 5 red balls in one urn and the 5 greens in the other, you will win if you are presented the urn with the green balls first and loose if you are presented the urn with the red balls first. So you have a $50%$ chance to win. One can do a similar computation for the other two options, ie 4 and 1 or 3 and 2 of each color in each urn. Can you compute the probability to win for these other distributions of the balls?
answered Jun 25 at 9:54
quaraguequarague
9374 silver badges13 bronze badges
9374 silver badges13 bronze badges
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
add a comment |
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
$begingroup$
We are presented with both urns and we choose which one to choose the ball(s) first.
$endgroup$
– Carlos Lopez
Jun 25 at 10:18
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3273608%2fpicking-balls-from-urns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown