Conditional Probability of a Uniform Random Subset.
up vote
2
down vote
favorite
Question:
Let X = $({1,2,3,..,10})$ Let $Y$ be a uniformly random subset of $X$. Define the events:
A = “$Y$ contains at least $4$ elements",
B = “all elements of $Y$ are even".
What is $Pr(A|B)$?
Answer: 0.1875
Attempt:
I know that P(A $bigcap$ B) / P(B) is what I have to ultimately find.
For $P(B)$ = $frac{5}{10}$ = $frac{1}{2}$
For P(A) => Must have exactly 4, 5, 6, 7, 8, 9, 10 elements
So, I used the binomial for this by doing:
P(A) =
$10choose4$$.$ $frac{1}{10}$$^4$$.$$(1-frac{1}{10}$)$^6$ +
$10choose5$$.$ $frac{1}{10}$$^5$$.$$(1-frac{1}{10}$)$^5$ +
$10choose6$$.$ $frac{1}{10}$$^6$$.$$(1-frac{1}{10}$)$^4$ +
$10choose7$$.$ $frac{1}{10}$$^7$$.$$(1-frac{1}{10}$)$^3$ +
$10choose8$$.$ $frac{1}{10}$$^8$$.$$(1-frac{1}{10}$)$^2$ +
$10choose9$$.$ $frac{1}{10}$$^9$$.$$(1-frac{1}{10}$)$^1$ +
$10choose10$$.$ $frac{1}{10}$$^{10}$$.$$(1-frac{1}{10}$)$^0$ +
= $0.012795$
P(A $bigcap$B) = $frac{1}{2}*0.012795$
Pr(A|B) = $frac{frac{1}{2}*0.012795}{2}$
Pr(A|B) = $0.012795$
Where did I go wrong with this approach? I find finding P(A) very time consuming, I feel like there has to be a much more simpler approach.
probability probability-theory discrete-mathematics random-variables conditional-probability
add a comment |
up vote
2
down vote
favorite
Question:
Let X = $({1,2,3,..,10})$ Let $Y$ be a uniformly random subset of $X$. Define the events:
A = “$Y$ contains at least $4$ elements",
B = “all elements of $Y$ are even".
What is $Pr(A|B)$?
Answer: 0.1875
Attempt:
I know that P(A $bigcap$ B) / P(B) is what I have to ultimately find.
For $P(B)$ = $frac{5}{10}$ = $frac{1}{2}$
For P(A) => Must have exactly 4, 5, 6, 7, 8, 9, 10 elements
So, I used the binomial for this by doing:
P(A) =
$10choose4$$.$ $frac{1}{10}$$^4$$.$$(1-frac{1}{10}$)$^6$ +
$10choose5$$.$ $frac{1}{10}$$^5$$.$$(1-frac{1}{10}$)$^5$ +
$10choose6$$.$ $frac{1}{10}$$^6$$.$$(1-frac{1}{10}$)$^4$ +
$10choose7$$.$ $frac{1}{10}$$^7$$.$$(1-frac{1}{10}$)$^3$ +
$10choose8$$.$ $frac{1}{10}$$^8$$.$$(1-frac{1}{10}$)$^2$ +
$10choose9$$.$ $frac{1}{10}$$^9$$.$$(1-frac{1}{10}$)$^1$ +
$10choose10$$.$ $frac{1}{10}$$^{10}$$.$$(1-frac{1}{10}$)$^0$ +
= $0.012795$
P(A $bigcap$B) = $frac{1}{2}*0.012795$
Pr(A|B) = $frac{frac{1}{2}*0.012795}{2}$
Pr(A|B) = $0.012795$
Where did I go wrong with this approach? I find finding P(A) very time consuming, I feel like there has to be a much more simpler approach.
probability probability-theory discrete-mathematics random-variables conditional-probability
3
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Question:
Let X = $({1,2,3,..,10})$ Let $Y$ be a uniformly random subset of $X$. Define the events:
A = “$Y$ contains at least $4$ elements",
B = “all elements of $Y$ are even".
What is $Pr(A|B)$?
Answer: 0.1875
Attempt:
I know that P(A $bigcap$ B) / P(B) is what I have to ultimately find.
For $P(B)$ = $frac{5}{10}$ = $frac{1}{2}$
For P(A) => Must have exactly 4, 5, 6, 7, 8, 9, 10 elements
So, I used the binomial for this by doing:
P(A) =
$10choose4$$.$ $frac{1}{10}$$^4$$.$$(1-frac{1}{10}$)$^6$ +
$10choose5$$.$ $frac{1}{10}$$^5$$.$$(1-frac{1}{10}$)$^5$ +
$10choose6$$.$ $frac{1}{10}$$^6$$.$$(1-frac{1}{10}$)$^4$ +
$10choose7$$.$ $frac{1}{10}$$^7$$.$$(1-frac{1}{10}$)$^3$ +
$10choose8$$.$ $frac{1}{10}$$^8$$.$$(1-frac{1}{10}$)$^2$ +
$10choose9$$.$ $frac{1}{10}$$^9$$.$$(1-frac{1}{10}$)$^1$ +
$10choose10$$.$ $frac{1}{10}$$^{10}$$.$$(1-frac{1}{10}$)$^0$ +
= $0.012795$
P(A $bigcap$B) = $frac{1}{2}*0.012795$
Pr(A|B) = $frac{frac{1}{2}*0.012795}{2}$
Pr(A|B) = $0.012795$
Where did I go wrong with this approach? I find finding P(A) very time consuming, I feel like there has to be a much more simpler approach.
probability probability-theory discrete-mathematics random-variables conditional-probability
Question:
Let X = $({1,2,3,..,10})$ Let $Y$ be a uniformly random subset of $X$. Define the events:
A = “$Y$ contains at least $4$ elements",
B = “all elements of $Y$ are even".
What is $Pr(A|B)$?
Answer: 0.1875
Attempt:
I know that P(A $bigcap$ B) / P(B) is what I have to ultimately find.
For $P(B)$ = $frac{5}{10}$ = $frac{1}{2}$
For P(A) => Must have exactly 4, 5, 6, 7, 8, 9, 10 elements
So, I used the binomial for this by doing:
P(A) =
$10choose4$$.$ $frac{1}{10}$$^4$$.$$(1-frac{1}{10}$)$^6$ +
$10choose5$$.$ $frac{1}{10}$$^5$$.$$(1-frac{1}{10}$)$^5$ +
$10choose6$$.$ $frac{1}{10}$$^6$$.$$(1-frac{1}{10}$)$^4$ +
$10choose7$$.$ $frac{1}{10}$$^7$$.$$(1-frac{1}{10}$)$^3$ +
$10choose8$$.$ $frac{1}{10}$$^8$$.$$(1-frac{1}{10}$)$^2$ +
$10choose9$$.$ $frac{1}{10}$$^9$$.$$(1-frac{1}{10}$)$^1$ +
$10choose10$$.$ $frac{1}{10}$$^{10}$$.$$(1-frac{1}{10}$)$^0$ +
= $0.012795$
P(A $bigcap$B) = $frac{1}{2}*0.012795$
Pr(A|B) = $frac{frac{1}{2}*0.012795}{2}$
Pr(A|B) = $0.012795$
Where did I go wrong with this approach? I find finding P(A) very time consuming, I feel like there has to be a much more simpler approach.
probability probability-theory discrete-mathematics random-variables conditional-probability
probability probability-theory discrete-mathematics random-variables conditional-probability
edited 1 hour ago
asked 2 hours ago
Toby
656
656
3
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago
add a comment |
3
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago
3
3
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
$5$ elements of $X$ are even.
To have at least $4$ elements and all elements are even, you have either $4$ elements ($5$ ways, choose one to leave out) or $5$ elements ($1$ way).
$$frac{1+5}{2^{5}}=frac{6}{32}$$
Remark:
We are choosing uniformly over all subsets. $P(B)= frac{2^5}{2^{10}} ne frac{5}{10}$.
We don't have to find $P(A)$, what is of interest is $P(A cap B)$.
We do not have $P(A cap B)=P(A)P(B)$ in general, we need independence.
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
add a comment |
up vote
2
down vote
Why are you using binomial distribution to evaluate the probabilities for event $A$, when $Y$ is a uniformly random subset of $X$? That means that every element (ie subset of $X$) of the powerset of $X$ (the sample space) has an equal probability of being selected. Just count the favoured and total spaces.
$mathsf P(Acap B)=mathsf P(B)~mathsf P(A)$ is only true for independent events, of which these are not. Evaluate $mathsf P(Acap B)$ using a similar method as you should have evaluated $mathsf P(A)$.
$mathsf P(B) neq tfrac 12$. The event of "all the elements of $Y$ are even" is not exactly half of the sample space, which may be partitioned by "all the elements of $Y$ are even", "all of the elements of $Y$ are odd", and "some of the elements of $Y$ are even, and some are odd." Rethink.
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
$5$ elements of $X$ are even.
To have at least $4$ elements and all elements are even, you have either $4$ elements ($5$ ways, choose one to leave out) or $5$ elements ($1$ way).
$$frac{1+5}{2^{5}}=frac{6}{32}$$
Remark:
We are choosing uniformly over all subsets. $P(B)= frac{2^5}{2^{10}} ne frac{5}{10}$.
We don't have to find $P(A)$, what is of interest is $P(A cap B)$.
We do not have $P(A cap B)=P(A)P(B)$ in general, we need independence.
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
add a comment |
up vote
3
down vote
$5$ elements of $X$ are even.
To have at least $4$ elements and all elements are even, you have either $4$ elements ($5$ ways, choose one to leave out) or $5$ elements ($1$ way).
$$frac{1+5}{2^{5}}=frac{6}{32}$$
Remark:
We are choosing uniformly over all subsets. $P(B)= frac{2^5}{2^{10}} ne frac{5}{10}$.
We don't have to find $P(A)$, what is of interest is $P(A cap B)$.
We do not have $P(A cap B)=P(A)P(B)$ in general, we need independence.
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
add a comment |
up vote
3
down vote
up vote
3
down vote
$5$ elements of $X$ are even.
To have at least $4$ elements and all elements are even, you have either $4$ elements ($5$ ways, choose one to leave out) or $5$ elements ($1$ way).
$$frac{1+5}{2^{5}}=frac{6}{32}$$
Remark:
We are choosing uniformly over all subsets. $P(B)= frac{2^5}{2^{10}} ne frac{5}{10}$.
We don't have to find $P(A)$, what is of interest is $P(A cap B)$.
We do not have $P(A cap B)=P(A)P(B)$ in general, we need independence.
$5$ elements of $X$ are even.
To have at least $4$ elements and all elements are even, you have either $4$ elements ($5$ ways, choose one to leave out) or $5$ elements ($1$ way).
$$frac{1+5}{2^{5}}=frac{6}{32}$$
Remark:
We are choosing uniformly over all subsets. $P(B)= frac{2^5}{2^{10}} ne frac{5}{10}$.
We don't have to find $P(A)$, what is of interest is $P(A cap B)$.
We do not have $P(A cap B)=P(A)P(B)$ in general, we need independence.
answered 1 hour ago
Siong Thye Goh
94.7k1462114
94.7k1462114
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
add a comment |
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
How do I calculate $mathsf P(Acap B)$? I thought I can use the binomial to calculate P(A)
– Toby
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
$P(A cap B) = frac{1+5}{2^{10}}$ only those $6$ sets that I described satisfies the condition.
– Siong Thye Goh
1 hour ago
add a comment |
up vote
2
down vote
Why are you using binomial distribution to evaluate the probabilities for event $A$, when $Y$ is a uniformly random subset of $X$? That means that every element (ie subset of $X$) of the powerset of $X$ (the sample space) has an equal probability of being selected. Just count the favoured and total spaces.
$mathsf P(Acap B)=mathsf P(B)~mathsf P(A)$ is only true for independent events, of which these are not. Evaluate $mathsf P(Acap B)$ using a similar method as you should have evaluated $mathsf P(A)$.
$mathsf P(B) neq tfrac 12$. The event of "all the elements of $Y$ are even" is not exactly half of the sample space, which may be partitioned by "all the elements of $Y$ are even", "all of the elements of $Y$ are odd", and "some of the elements of $Y$ are even, and some are odd." Rethink.
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
add a comment |
up vote
2
down vote
Why are you using binomial distribution to evaluate the probabilities for event $A$, when $Y$ is a uniformly random subset of $X$? That means that every element (ie subset of $X$) of the powerset of $X$ (the sample space) has an equal probability of being selected. Just count the favoured and total spaces.
$mathsf P(Acap B)=mathsf P(B)~mathsf P(A)$ is only true for independent events, of which these are not. Evaluate $mathsf P(Acap B)$ using a similar method as you should have evaluated $mathsf P(A)$.
$mathsf P(B) neq tfrac 12$. The event of "all the elements of $Y$ are even" is not exactly half of the sample space, which may be partitioned by "all the elements of $Y$ are even", "all of the elements of $Y$ are odd", and "some of the elements of $Y$ are even, and some are odd." Rethink.
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
add a comment |
up vote
2
down vote
up vote
2
down vote
Why are you using binomial distribution to evaluate the probabilities for event $A$, when $Y$ is a uniformly random subset of $X$? That means that every element (ie subset of $X$) of the powerset of $X$ (the sample space) has an equal probability of being selected. Just count the favoured and total spaces.
$mathsf P(Acap B)=mathsf P(B)~mathsf P(A)$ is only true for independent events, of which these are not. Evaluate $mathsf P(Acap B)$ using a similar method as you should have evaluated $mathsf P(A)$.
$mathsf P(B) neq tfrac 12$. The event of "all the elements of $Y$ are even" is not exactly half of the sample space, which may be partitioned by "all the elements of $Y$ are even", "all of the elements of $Y$ are odd", and "some of the elements of $Y$ are even, and some are odd." Rethink.
Why are you using binomial distribution to evaluate the probabilities for event $A$, when $Y$ is a uniformly random subset of $X$? That means that every element (ie subset of $X$) of the powerset of $X$ (the sample space) has an equal probability of being selected. Just count the favoured and total spaces.
$mathsf P(Acap B)=mathsf P(B)~mathsf P(A)$ is only true for independent events, of which these are not. Evaluate $mathsf P(Acap B)$ using a similar method as you should have evaluated $mathsf P(A)$.
$mathsf P(B) neq tfrac 12$. The event of "all the elements of $Y$ are even" is not exactly half of the sample space, which may be partitioned by "all the elements of $Y$ are even", "all of the elements of $Y$ are odd", and "some of the elements of $Y$ are even, and some are odd." Rethink.
edited 1 hour ago
answered 1 hour ago
Graham Kemp
84.4k43378
84.4k43378
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
add a comment |
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
I'm not sure on how to calculate $mathsf P(Acap B)$? Is the binomial method applicable here? For uniformly random subsets, I take it that the binomial can't be used?
– Toby
1 hour ago
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%2f3019627%2fconditional-probability-of-a-uniform-random-subset%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
3
Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
1 hour ago
@Anurag A yes it was a typo, set has 10 elements not 100
– Toby
1 hour ago