2 ms·
Or you can use a hypergeometric calculator https://stattrek.com/online-calculator/hypergeometric.aspx https://stattrek.com/online-calculator/hypergeometric.aspx
by faeriechangling 5y ago
Or you can use a hypergeometric calculator https://stattrek.com/online-calculator/hypergeometric.aspx https://stattrek.com/online-calculator/hypergeometric.aspx
I made a recursive hypergeometric calculator in python for fun and learning. I believe there's technically more efficient ways to go about things. This comes up in many many situations where you draw without replacement.
If you are drawing WITH replacement, you can use a binomial distribution https://stattrek.com/online-calculator/binomial.aspx https://stattrek.com/online-calculator/binomial.aspx