Conditional probability (urns and balls)
From an urn, containing 6 white and 12 black balls, one takes balls randomly one by one until the second white ball appears.
What is the probability that:
1) second white ball appears on the second step
2) second white ball appears on the third step
3) second white ball appears on the k-th step
My solution is the following.
The probability of the second white ball is
$$Pr(X=2)=frac{6}{18}frac{5}{17}$$
The probability of the third white ball is
$$Pr(X=3)=frac{6}{18}frac{12}{17}frac{5}{16}+ frac{12}{18}frac{6}{17}frac{5}{16} = frac{2⋅6⋅5⋅12}{18⋅17⋅16} $$
Therefore, the probability
$$Pr(X=k)=frac{(k-1)⋅6⋅5⋅(18-k)!⋅12!}{18!⋅(12-k+2)!}$$
Could somebody, please, check my solution, especially the third part. Thank you.
probability balls-in-bins
add a comment |
From an urn, containing 6 white and 12 black balls, one takes balls randomly one by one until the second white ball appears.
What is the probability that:
1) second white ball appears on the second step
2) second white ball appears on the third step
3) second white ball appears on the k-th step
My solution is the following.
The probability of the second white ball is
$$Pr(X=2)=frac{6}{18}frac{5}{17}$$
The probability of the third white ball is
$$Pr(X=3)=frac{6}{18}frac{12}{17}frac{5}{16}+ frac{12}{18}frac{6}{17}frac{5}{16} = frac{2⋅6⋅5⋅12}{18⋅17⋅16} $$
Therefore, the probability
$$Pr(X=k)=frac{(k-1)⋅6⋅5⋅(18-k)!⋅12!}{18!⋅(12-k+2)!}$$
Could somebody, please, check my solution, especially the third part. Thank you.
probability balls-in-bins
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40
add a comment |
From an urn, containing 6 white and 12 black balls, one takes balls randomly one by one until the second white ball appears.
What is the probability that:
1) second white ball appears on the second step
2) second white ball appears on the third step
3) second white ball appears on the k-th step
My solution is the following.
The probability of the second white ball is
$$Pr(X=2)=frac{6}{18}frac{5}{17}$$
The probability of the third white ball is
$$Pr(X=3)=frac{6}{18}frac{12}{17}frac{5}{16}+ frac{12}{18}frac{6}{17}frac{5}{16} = frac{2⋅6⋅5⋅12}{18⋅17⋅16} $$
Therefore, the probability
$$Pr(X=k)=frac{(k-1)⋅6⋅5⋅(18-k)!⋅12!}{18!⋅(12-k+2)!}$$
Could somebody, please, check my solution, especially the third part. Thank you.
probability balls-in-bins
From an urn, containing 6 white and 12 black balls, one takes balls randomly one by one until the second white ball appears.
What is the probability that:
1) second white ball appears on the second step
2) second white ball appears on the third step
3) second white ball appears on the k-th step
My solution is the following.
The probability of the second white ball is
$$Pr(X=2)=frac{6}{18}frac{5}{17}$$
The probability of the third white ball is
$$Pr(X=3)=frac{6}{18}frac{12}{17}frac{5}{16}+ frac{12}{18}frac{6}{17}frac{5}{16} = frac{2⋅6⋅5⋅12}{18⋅17⋅16} $$
Therefore, the probability
$$Pr(X=k)=frac{(k-1)⋅6⋅5⋅(18-k)!⋅12!}{18!⋅(12-k+2)!}$$
Could somebody, please, check my solution, especially the third part. Thank you.
probability balls-in-bins
probability balls-in-bins
edited Nov 28 '18 at 11:07
asked Nov 27 '18 at 19:26
Makhayama
262
262
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40
add a comment |
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40
add a comment |
1 Answer
1
active
oldest
votes
I used the hypergeometric distribution for the $(k-1)$-th draw.
The probability to draw one white ball and $k-2$ black balls in $k-1$ drawings is
$$frac{binom{6}{1}cdot binom{12}{k-2}}{binom{18}{k-1}}=frac{6cdot 12!cdot (k-1)!cdot (19-k)!}{18!cdot (k-2)!cdot (14-k)!}=frac{6cdot 12!cdot (k-1)cdot (19-k)!}{18!cdot (14-k)!}$$
At the k-th draw we have to pick a white ball. The probability is $frac{5}{19-k}$. In total I get
$$P(X=k)=frac{5cdot 6cdot 12!cdot (k-1)cdot (18-k)!}{18!cdot (14-k)!}$$
This is the same result you got.
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
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%2f3016199%2fconditional-probability-urns-and-balls%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I used the hypergeometric distribution for the $(k-1)$-th draw.
The probability to draw one white ball and $k-2$ black balls in $k-1$ drawings is
$$frac{binom{6}{1}cdot binom{12}{k-2}}{binom{18}{k-1}}=frac{6cdot 12!cdot (k-1)!cdot (19-k)!}{18!cdot (k-2)!cdot (14-k)!}=frac{6cdot 12!cdot (k-1)cdot (19-k)!}{18!cdot (14-k)!}$$
At the k-th draw we have to pick a white ball. The probability is $frac{5}{19-k}$. In total I get
$$P(X=k)=frac{5cdot 6cdot 12!cdot (k-1)cdot (18-k)!}{18!cdot (14-k)!}$$
This is the same result you got.
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
add a comment |
I used the hypergeometric distribution for the $(k-1)$-th draw.
The probability to draw one white ball and $k-2$ black balls in $k-1$ drawings is
$$frac{binom{6}{1}cdot binom{12}{k-2}}{binom{18}{k-1}}=frac{6cdot 12!cdot (k-1)!cdot (19-k)!}{18!cdot (k-2)!cdot (14-k)!}=frac{6cdot 12!cdot (k-1)cdot (19-k)!}{18!cdot (14-k)!}$$
At the k-th draw we have to pick a white ball. The probability is $frac{5}{19-k}$. In total I get
$$P(X=k)=frac{5cdot 6cdot 12!cdot (k-1)cdot (18-k)!}{18!cdot (14-k)!}$$
This is the same result you got.
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
add a comment |
I used the hypergeometric distribution for the $(k-1)$-th draw.
The probability to draw one white ball and $k-2$ black balls in $k-1$ drawings is
$$frac{binom{6}{1}cdot binom{12}{k-2}}{binom{18}{k-1}}=frac{6cdot 12!cdot (k-1)!cdot (19-k)!}{18!cdot (k-2)!cdot (14-k)!}=frac{6cdot 12!cdot (k-1)cdot (19-k)!}{18!cdot (14-k)!}$$
At the k-th draw we have to pick a white ball. The probability is $frac{5}{19-k}$. In total I get
$$P(X=k)=frac{5cdot 6cdot 12!cdot (k-1)cdot (18-k)!}{18!cdot (14-k)!}$$
This is the same result you got.
I used the hypergeometric distribution for the $(k-1)$-th draw.
The probability to draw one white ball and $k-2$ black balls in $k-1$ drawings is
$$frac{binom{6}{1}cdot binom{12}{k-2}}{binom{18}{k-1}}=frac{6cdot 12!cdot (k-1)!cdot (19-k)!}{18!cdot (k-2)!cdot (14-k)!}=frac{6cdot 12!cdot (k-1)cdot (19-k)!}{18!cdot (14-k)!}$$
At the k-th draw we have to pick a white ball. The probability is $frac{5}{19-k}$. In total I get
$$P(X=k)=frac{5cdot 6cdot 12!cdot (k-1)cdot (18-k)!}{18!cdot (14-k)!}$$
This is the same result you got.
answered Nov 27 '18 at 21:02
callculus
17.8k31427
17.8k31427
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
add a comment |
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
1
1
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
Alternatively you seek the probability that the six white balls are distibuted one into the first $k−1$ places, one into the next place, and four into the remaining $18−k$places. Same result: $$mathsf P(X=k)=dfrac{dbinom{k−1}1dbinom11dbinom{18−k}4}{dbinom{18}6}=dfrac{6!~(k−1)~12!~(18−k)!}{4!~18!~(14−k)!}$$
– Graham Kemp
Nov 28 '18 at 1:56
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
@GrahamKemp An elegant alternative approach.
– callculus
Nov 28 '18 at 2:39
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3016199%2fconditional-probability-urns-and-balls%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
In the $Pr(x = 3)$ case, you meant to say the probability that the second white ball is selected on the third draw.
– N. F. Taussig
Nov 27 '18 at 19:34
Yes, the calculation looks fine to me.
– DavidPM
Nov 27 '18 at 19:38
Yes, exactly. The first white ball can be selected either on the first or second draw and the second white ball is selected on the third draw. Thus, Pr(x=3). X is the random variable showing the number of the step on which the second white ball is selected.
– Makhayama
Nov 27 '18 at 19:40