Probability-Bayes's rule
up vote
0
down vote
favorite
Here is the question:
There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.
We choose randomly a basket and take out a ball after another with returning.
a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?
b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?
ok,here is my approach:
a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $
I don't know how to get rid of the sigma
b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
$frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$
here too I could'nt get rid of i from the whole equation.any help please?
probability
add a comment |
up vote
0
down vote
favorite
Here is the question:
There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.
We choose randomly a basket and take out a ball after another with returning.
a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?
b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?
ok,here is my approach:
a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $
I don't know how to get rid of the sigma
b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
$frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$
here too I could'nt get rid of i from the whole equation.any help please?
probability
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Here is the question:
There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.
We choose randomly a basket and take out a ball after another with returning.
a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?
b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?
ok,here is my approach:
a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $
I don't know how to get rid of the sigma
b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
$frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$
here too I could'nt get rid of i from the whole equation.any help please?
probability
Here is the question:
There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.
We choose randomly a basket and take out a ball after another with returning.
a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?
b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?
ok,here is my approach:
a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $
I don't know how to get rid of the sigma
b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
$frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$
here too I could'nt get rid of i from the whole equation.any help please?
probability
probability
asked Nov 25 at 16:56
Adddison
826
826
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
$$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
$$
The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.
For (b), the denominator is
$$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
=frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$
Similarly you should arrive in $frac{2N+1}{3N}$.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
$$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
$$
The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.
For (b), the denominator is
$$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
=frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$
Similarly you should arrive in $frac{2N+1}{3N}$.
add a comment |
up vote
0
down vote
accepted
For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
$$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
$$
The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.
For (b), the denominator is
$$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
=frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$
Similarly you should arrive in $frac{2N+1}{3N}$.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
$$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
$$
The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.
For (b), the denominator is
$$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
=frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$
Similarly you should arrive in $frac{2N+1}{3N}$.
For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
$$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
$$
The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.
For (b), the denominator is
$$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
=frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$
Similarly you should arrive in $frac{2N+1}{3N}$.
answered Nov 25 at 21:40
Michael Hoppe
10.7k31834
10.7k31834
add a comment |
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%2f3013080%2fprobability-bayess-rule%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