Expected number of different colors of balls obtained before getting the first red ball

1.4k Views Asked by At

An urn contains red, green, and blue balls. Balls are chosen randomly with replacement (each time, the color is noted and then the ball is put back). Let $r,\ g,\ b$ be the probabilities of drawing a red, green, blue ball, respectively $(r + g + b = 1)$.

(a) Find the expected number of balls chosen before obtaining the first red ball, not including the red ball itself.
(b) Find the expected number of different colors of balls obtained before getting the first red ball.
(c) Find the probability that at least $2$ of $n$ balls drawn are red, given that at least $1$ is red.

I could solve (a) (Geom$(r)$) and (c) (Bin$(n,r)$), but not be able to know where to start in (b). I don't even know what the number of different colors refer to. Isn't it the same like (a)? I found this question but it's very general and abstract. May you help?

2

There are 2 best solutions below

3
On BEST ANSWER

For (b)

  • the probability of seeing blue before red is $\frac{b}{b+r}$
  • the probability of seeing green before red is $\frac{g}{g+r}$

so the expected number of distinct colours seen before red is simply $\frac{b}{b+r}+\frac{g}{g+r}$

4
On

If $D$ denotes the number of different colors of balls contained before getting the first red ball then $D$ takes values in $\{0,1,2\}$.

Then: $$\mathsf ED=\mathsf P(D=1)+2\mathsf P(D=2)=\mathsf P(D=1)+2(1-\mathsf P(D=0)-\mathsf P(D=1))=$$$$2-2\mathsf P(D=0)-\mathsf P(D=1)=2-2r-\mathsf P(D=1)$$

Can you find $\mathsf P(D=1)$ yourself?