Combinatorial Probabilities Without Replacement

Amateurhr

Active Member
Joined
Dec 26, 2011
Messages
343
Let's say I have 40 balls in this distribution:
Type A: 25
Type B: 10
Type C: 5


If I am going to blindly pull out 10 balls without replacement, what are the chances I get AT LEAST:
5 of Type A
3 of Type B


Any ideas how to create this equation and if Excel has any formulas that make this simpler? I need an equation because I have about 100+ of these calculations to perform. If not, any idea how to create a monte carlo simulation of this?


Thanks in advance folks!


-Tommy
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
5 of Type A
3 of Type B

Are these 2 separate questions or are you looking for the probability of AT LEAST 5 A AND AT LEAST 3 B. if the latter it is much more complex
 
Upvote 0
Each row corresponds to a single choice of the quantities of the balls of each color, so that they satisfy your criteria.
Column D is the calculation of the probability of this particular combination of the quantities occurring.
The total probability is the sum over all rows.

J.Ty.


Excel 2010
ABCD
1ABCProbability
25320,075214
35410,065812
45500,015795
56310,125357
67300,068051
76400,043875
8Total prob.0,394104
Sheet1
Cell Formulas
RangeFormula
D2=(COMBIN(25,A2)*COMBIN(10,B2)*COMBIN(5,C2))/COMBIN(40,10)
D3=(COMBIN(25,A3)*COMBIN(10,B3)*COMBIN(5,C3))/COMBIN(40,10)
D4=(COMBIN(25,A4)*COMBIN(10,B4)*COMBIN(5,C4))/COMBIN(40,10)
D5=(COMBIN(25,A5)*COMBIN(10,B5)*COMBIN(5,C5))/COMBIN(40,10)
D6=(COMBIN(25,A6)*COMBIN(10,B6)*COMBIN(5,C6))/COMBIN(40,10)
D7=(COMBIN(25,A7)*COMBIN(10,B7)*COMBIN(5,C7))/COMBIN(40,10)
D8=SUM(D2:D7)
 
  • Like
Reactions: shg
Upvote 0
West Man, I am looking for AT LEAST 5 A AND AT LEAST 3 B

Looks like J Ty has created an answer but the issue is, I think I would have to write a macro to accomplish that since I have 100 of these cells to do and each seems to require that I enumerate every possible outcome (which may be 6 in this case), which changes for every combination of balls and requirements.

If that's the only possible way, then I don't mind going with that. Any idea how the formulas might change as a macro?
 
Upvote 0
I did it for the requirement "at least 5 A and and least 3 B".
As far as I understand, you have 99 other pairs (triples?) of requirements.
Can you post a representative sample?

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,583
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top