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.










share|cite|improve this question




















  • 3




    Your set contains $100$ elements but you are working with $10$. Is there a typo?
    – Anurag A
    2 hours ago










  • @Anurag A yes it was a typo, set has 10 elements not 100
    – Toby
    1 hour ago















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.










share|cite|improve this question




















  • 3




    Your set contains $100$ elements but you are working with $10$. Is there a typo?
    – Anurag A
    2 hours ago










  • @Anurag A yes it was a typo, set has 10 elements not 100
    – Toby
    1 hour ago













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.










share|cite|improve this question
















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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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
    2 hours ago










  • @Anurag A yes it was a typo, set has 10 elements not 100
    – Toby
    1 hour ago














  • 3




    Your set contains $100$ elements but you are working with $10$. Is there a typo?
    – Anurag A
    2 hours 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
2 hours ago




Your set contains $100$ elements but you are working with $10$. Is there a typo?
– Anurag A
2 hours 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










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.







share|cite|improve this answer





















  • 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


















up vote
2
down vote














  1. 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.


  2. $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)$.


  3. $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.







share|cite|improve this answer























  • 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











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',
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
});


}
});














draft saved

draft discarded


















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

























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.







share|cite|improve this answer





















  • 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















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.







share|cite|improve this answer





















  • 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













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.







share|cite|improve this answer












$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.








share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










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


















  • 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










up vote
2
down vote














  1. 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.


  2. $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)$.


  3. $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.







share|cite|improve this answer























  • 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















up vote
2
down vote














  1. 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.


  2. $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)$.


  3. $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.







share|cite|improve this answer























  • 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













up vote
2
down vote










up vote
2
down vote










  1. 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.


  2. $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)$.


  3. $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.







share|cite|improve this answer















  1. 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.


  2. $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)$.


  3. $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.








share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








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


















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python