Probability with pins in a box

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












The question is as follows:




There are 7 red pins, 7 black pins, and 7 green pins in a box. Pick 5 at random without replacement. What is the probability that at least one color was not picked?




My thinking is that this could happen in two ways. Either the 5 pins chosen were all of the same color, or the 5 pins chosen were two different colors. In each case, at least one color is excluded.



Clearly, there are $binom215$ ways of choosing the 5 pins from the box.



In the first case, we choose the pins so that they all have the same color. This equates to $$binom75 + binom75 + binom75= 3binom75.$$
In the second case, the 5 pins are chosen from two colors, excluding one. So, we have $14$ pins to choose from and we choose $5.$ We can either pick from the red and black, the black and green, or the red and green. This then equates to
$$binom145 + binom145 + binom145 = 3binom145.$$
The final answer would then be
$$frac3binom75+3binom145binom215 approx 2982.$$
Would this be the correct answer and the correct approach? Thanks in advance!










share|cite|improve this question



















  • 4




    When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
    – Mike Earnest
    Sep 11 at 2:06










  • Ahhh. Thank you for that comment. I can't believe I missed that.
    – StatGuy
    Sep 11 at 2:07














up vote
1
down vote

favorite












The question is as follows:




There are 7 red pins, 7 black pins, and 7 green pins in a box. Pick 5 at random without replacement. What is the probability that at least one color was not picked?




My thinking is that this could happen in two ways. Either the 5 pins chosen were all of the same color, or the 5 pins chosen were two different colors. In each case, at least one color is excluded.



Clearly, there are $binom215$ ways of choosing the 5 pins from the box.



In the first case, we choose the pins so that they all have the same color. This equates to $$binom75 + binom75 + binom75= 3binom75.$$
In the second case, the 5 pins are chosen from two colors, excluding one. So, we have $14$ pins to choose from and we choose $5.$ We can either pick from the red and black, the black and green, or the red and green. This then equates to
$$binom145 + binom145 + binom145 = 3binom145.$$
The final answer would then be
$$frac3binom75+3binom145binom215 approx 2982.$$
Would this be the correct answer and the correct approach? Thanks in advance!










share|cite|improve this question



















  • 4




    When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
    – Mike Earnest
    Sep 11 at 2:06










  • Ahhh. Thank you for that comment. I can't believe I missed that.
    – StatGuy
    Sep 11 at 2:07












up vote
1
down vote

favorite









up vote
1
down vote

favorite











The question is as follows:




There are 7 red pins, 7 black pins, and 7 green pins in a box. Pick 5 at random without replacement. What is the probability that at least one color was not picked?




My thinking is that this could happen in two ways. Either the 5 pins chosen were all of the same color, or the 5 pins chosen were two different colors. In each case, at least one color is excluded.



Clearly, there are $binom215$ ways of choosing the 5 pins from the box.



In the first case, we choose the pins so that they all have the same color. This equates to $$binom75 + binom75 + binom75= 3binom75.$$
In the second case, the 5 pins are chosen from two colors, excluding one. So, we have $14$ pins to choose from and we choose $5.$ We can either pick from the red and black, the black and green, or the red and green. This then equates to
$$binom145 + binom145 + binom145 = 3binom145.$$
The final answer would then be
$$frac3binom75+3binom145binom215 approx 2982.$$
Would this be the correct answer and the correct approach? Thanks in advance!










share|cite|improve this question















The question is as follows:




There are 7 red pins, 7 black pins, and 7 green pins in a box. Pick 5 at random without replacement. What is the probability that at least one color was not picked?




My thinking is that this could happen in two ways. Either the 5 pins chosen were all of the same color, or the 5 pins chosen were two different colors. In each case, at least one color is excluded.



Clearly, there are $binom215$ ways of choosing the 5 pins from the box.



In the first case, we choose the pins so that they all have the same color. This equates to $$binom75 + binom75 + binom75= 3binom75.$$
In the second case, the 5 pins are chosen from two colors, excluding one. So, we have $14$ pins to choose from and we choose $5.$ We can either pick from the red and black, the black and green, or the red and green. This then equates to
$$binom145 + binom145 + binom145 = 3binom145.$$
The final answer would then be
$$frac3binom75+3binom145binom215 approx 2982.$$
Would this be the correct answer and the correct approach? Thanks in advance!







probability combinatorics binomial-coefficients






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 11 at 2:15









N. F. Taussig

42.1k93254




42.1k93254










asked Sep 11 at 2:03









StatGuy

509110




509110







  • 4




    When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
    – Mike Earnest
    Sep 11 at 2:06










  • Ahhh. Thank you for that comment. I can't believe I missed that.
    – StatGuy
    Sep 11 at 2:07












  • 4




    When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
    – Mike Earnest
    Sep 11 at 2:06










  • Ahhh. Thank you for that comment. I can't believe I missed that.
    – StatGuy
    Sep 11 at 2:07







4




4




When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
– Mike Earnest
Sep 11 at 2:06




When you choose $5$ pens from the $14$ red and black pens, you may choose all five to be black, a case which was already counted in $binom75$. So you have some double counting.
– Mike Earnest
Sep 11 at 2:06












Ahhh. Thank you for that comment. I can't believe I missed that.
– StatGuy
Sep 11 at 2:07




Ahhh. Thank you for that comment. I can't believe I missed that.
– StatGuy
Sep 11 at 2:07










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










There is no need to split into two cases.



Ban a color. There are 3 ways to do this.



Now choose 5 pens from the rest 14 pens. There are $binom145$ ways to do that.



However we must be aware of double counting. If we chose 5 pens from the same color, then it's counted twice. Therefore we must subtract $binom75times3$.



Therefore the probability is $frac3times(binom145-binom75)binom215$






share|cite|improve this answer




















  • Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
    – StatGuy
    Sep 11 at 2:26






  • 1




    Yes. all 5 pens are from the same is counted, and in fact, twice.
    – abc...
    Sep 11 at 2:50






  • 1




    choose 5 pens from 14 pens does not necessarily choose both colors.
    – abc...
    Sep 11 at 2:51






  • 2




    It is ye olde Principle of Inclusion and Exclusion at work once more.
    – Graham Kemp
    Sep 11 at 3:19










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%2f2912643%2fprobability-with-pins-in-a-box%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










There is no need to split into two cases.



Ban a color. There are 3 ways to do this.



Now choose 5 pens from the rest 14 pens. There are $binom145$ ways to do that.



However we must be aware of double counting. If we chose 5 pens from the same color, then it's counted twice. Therefore we must subtract $binom75times3$.



Therefore the probability is $frac3times(binom145-binom75)binom215$






share|cite|improve this answer




















  • Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
    – StatGuy
    Sep 11 at 2:26






  • 1




    Yes. all 5 pens are from the same is counted, and in fact, twice.
    – abc...
    Sep 11 at 2:50






  • 1




    choose 5 pens from 14 pens does not necessarily choose both colors.
    – abc...
    Sep 11 at 2:51






  • 2




    It is ye olde Principle of Inclusion and Exclusion at work once more.
    – Graham Kemp
    Sep 11 at 3:19














up vote
2
down vote



accepted










There is no need to split into two cases.



Ban a color. There are 3 ways to do this.



Now choose 5 pens from the rest 14 pens. There are $binom145$ ways to do that.



However we must be aware of double counting. If we chose 5 pens from the same color, then it's counted twice. Therefore we must subtract $binom75times3$.



Therefore the probability is $frac3times(binom145-binom75)binom215$






share|cite|improve this answer




















  • Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
    – StatGuy
    Sep 11 at 2:26






  • 1




    Yes. all 5 pens are from the same is counted, and in fact, twice.
    – abc...
    Sep 11 at 2:50






  • 1




    choose 5 pens from 14 pens does not necessarily choose both colors.
    – abc...
    Sep 11 at 2:51






  • 2




    It is ye olde Principle of Inclusion and Exclusion at work once more.
    – Graham Kemp
    Sep 11 at 3:19












up vote
2
down vote



accepted







up vote
2
down vote



accepted






There is no need to split into two cases.



Ban a color. There are 3 ways to do this.



Now choose 5 pens from the rest 14 pens. There are $binom145$ ways to do that.



However we must be aware of double counting. If we chose 5 pens from the same color, then it's counted twice. Therefore we must subtract $binom75times3$.



Therefore the probability is $frac3times(binom145-binom75)binom215$






share|cite|improve this answer












There is no need to split into two cases.



Ban a color. There are 3 ways to do this.



Now choose 5 pens from the rest 14 pens. There are $binom145$ ways to do that.



However we must be aware of double counting. If we chose 5 pens from the same color, then it's counted twice. Therefore we must subtract $binom75times3$.



Therefore the probability is $frac3times(binom145-binom75)binom215$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Sep 11 at 2:18









abc...

2,177529




2,177529











  • Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
    – StatGuy
    Sep 11 at 2:26






  • 1




    Yes. all 5 pens are from the same is counted, and in fact, twice.
    – abc...
    Sep 11 at 2:50






  • 1




    choose 5 pens from 14 pens does not necessarily choose both colors.
    – abc...
    Sep 11 at 2:51






  • 2




    It is ye olde Principle of Inclusion and Exclusion at work once more.
    – Graham Kemp
    Sep 11 at 3:19
















  • Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
    – StatGuy
    Sep 11 at 2:26






  • 1




    Yes. all 5 pens are from the same is counted, and in fact, twice.
    – abc...
    Sep 11 at 2:50






  • 1




    choose 5 pens from 14 pens does not necessarily choose both colors.
    – abc...
    Sep 11 at 2:51






  • 2




    It is ye olde Principle of Inclusion and Exclusion at work once more.
    – Graham Kemp
    Sep 11 at 3:19















Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
– StatGuy
Sep 11 at 2:26




Thank you. The question says AT LEAST one color. So, two colors can be banned as well. Does this take that in to account?
– StatGuy
Sep 11 at 2:26




1




1




Yes. all 5 pens are from the same is counted, and in fact, twice.
– abc...
Sep 11 at 2:50




Yes. all 5 pens are from the same is counted, and in fact, twice.
– abc...
Sep 11 at 2:50




1




1




choose 5 pens from 14 pens does not necessarily choose both colors.
– abc...
Sep 11 at 2:51




choose 5 pens from 14 pens does not necessarily choose both colors.
– abc...
Sep 11 at 2:51




2




2




It is ye olde Principle of Inclusion and Exclusion at work once more.
– Graham Kemp
Sep 11 at 3:19




It is ye olde Principle of Inclusion and Exclusion at work once more.
– Graham Kemp
Sep 11 at 3:19

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2912643%2fprobability-with-pins-in-a-box%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards