Suppose I have 100 balls in a box and 10 of them are red. If I randomly take out 40 of them, what is the probability that I can get at least 6 red balls? How is this worked out?
This is the probability of exactly 6 red balls. To find the probability of at least 6 red balls, you also need to calculate the probabilities of 7, 8, 9, and 10 balls as well and then sum them all. Using Stata, I make it to be 15.4%.
I agree with Kieran Mccaul....if ur sampling scheme is without replacement then the distribution is Hypergeometric and if with replacement, it is binomial distribution....and the above probality is...P(X>=6)= 1-F(5)