140 of them are green
10 of them are red
If you reach into the bag and randomly pull out 13 of them, what % of the time would all 13 of them be green?
And....go.
Quote: gravity89You have 150 marbles in a bag.
140 of them are green
10 of them are red
If you reach into the bag and randomly pull out 13 of them, what % of the time would all 13 of them be green?
There are COMBIN(140,13) ways to choose 13 marbles from the 140 green marbles.
There are COMBIN(150,13) ways to choose 13 marbles from the 150 green and red marbles.
The probability of pulling all green marbles is therefore COMBIN(140,13)/COMBIN(150,13) which is 0.392061792, so about 39.2%.
Quote: DJTeddyBearIf only 10 out of 150 are green, if you pull out 13 you will never pull out all green marbles.
10 are red, 140 are green.
Quote: DJTeddyBearZero.
Re-read the question :)
Quote: gravity89You have 150 marbles in a bag.
140 of them are green
10 of them are red
If you reach into the bag and randomly pull out 13 of them, what % of the time would all 13 of them be green?
And....go.
Short answer: JB's right.
Long answer, and long way:
(140/150) * (139/149) * (138/148) * (137/147) * (136/146) * (135/145) * (134/144) * (133/143) * (132/142) * (131/141) * (130/140) * (129/139) * (128/138) = 0.3920617916597633 or 39.2%
Same thing JB did, just expressed differently. His way is better.
Why the question?Quote: gravity89If you reach into the bag and randomly pull out 13 of them, what % of the time would all 13 of them be green?
And....go.
The Hypergeometric Distribution
JB almost showed the complete formula for it.
(he did not really need to for your exact Q)
More Qs
How about exactly:
(same draw without replacement of 13 total)
12 greens and 1 red
or
11 greens and 2 red
or
at least 11 greens
(11,12,13)
lots of math
(do not attempt this while driving
and very large numbers doing this long hand)
the complete distribution can easily be done in Excel
or even R
here is R results
(R is FREE or online FREE)
http://www.compileonline.com/execute_r_online.php
dhyper(0:13, 140, 10, 13)
[1] 0.000000e+00 0.000000e+00 0.000000e+00 2.445376e-13 8.375413e-11
[6] 1.025151e-08 6.150903e-07 2.060553e-05 4.110802e-04 5.024314e-03
[11] 3.761058e-02 1.666832e-01 3.981878e-01 3.920618e-01
or without e
options(scipen=999)
dhyper(0:13, 140, 10, 13)
[1] 0.000000000000000000000 0.000000000000000000000 0.000000000000000000000
[4] 0.000000000000244537599 0.000000000083754127661 0.000000010251505225729
[7] 0.000000615090313543749 0.000020605525503715599 0.000411080233799126572
[10] 0.005024313968655985153 0.037610578851081946650 0.166683247180931387588
[13] 0.398187757154447097285 0.392061791659763236861
Quote: 7crapsThe Hypergeometric Distribution
JB almost showed the complete formula for it.
(he did not really need to for your exact Q)
Correct, as this solution was simpler. But you could get the same result with the Excel formula =HYPGEOMDIST(13,13,140,150).
Yes, the beauty of functions.Quote: JBBut you could get the same result with the Excel formula =HYPGEOMDIST(13,13,140,150).
your use of COMBIN() can also be expanded so the OP can see how to answer a few of my Qs.
COMBIN(140,13) * COMBIN(10,0) / COMBIN(150,13)
answers the OP question also
(I can easily solve COMBIN(10,0) in my head without thinking,
the others require some thought)
still wondering why this question
(maybe a M&M type question)
trying to relate it to gambling