[Math] Probability of G Good elements and B Bad elements.

probabilitystatistics

A box contains 3 red balls, 4 blue balls, and 6 green balls. Balls are drawn one-by-one without replacement until all the red balls are drawn. Let $D$ be the number of draws made.

Calculate:

a)$P(D\le 9)$

b)$P(D=9)$

c)$E(D)$

For part a) I know the answer should be $\binom{10}{6}/\binom{13}{9}$ but not sure how to get this.

And I am wondering the relationship between (a) and (b). And how to calculate hypergeometric distribution in general.

For part c) I could use the basic definition to get the answer but I am sure there is an easier way to do this.

Best Answer

You can look at red and not red.

For (a), you want the three red balls to be in the first nine positions. I would have thought there were $\binom{9}{3}$ ways of choosing these positions which you divide by the total number of ways of positioning the red balls $\binom{13}{3}$. This gives the same numerical answer as you have, suggesting there is more than one approach.

For (b), you can either look at $\Pr(D \le 9) - \Pr(D \le 8)$, or look at two red balls in the first eight positions and one in the ninth.

For (c), following the definition might be easiest to understand and calculate electronically. An alternative approach for (c) would be to say that the expected number of balls before the first red, strictly between the first and second red, strictly between the second and third red, and after the third red are each the same and so are each $\frac{6+4}{4}=2.5$, and so taking three of these plus the three red balls gives $E[D]=3\times 2.5+3$.