Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a box with $A$ red balls and $B$ blue balls, from which I sample with replacement with uniform probability for each ball. This would imply that the probability of selecting a blue ball would simply be $\frac{B}{A+B}$. I keep sampling with replacement until I select a blue ball exactly $k$ times, and as such, the mean for the total number of times I need to sample from the box for this to occur, $M$, should be $Mean[M] = \frac{k*(A+B)}{B}$.

However, how does the variance for $M$, the total number of samplings required to observe a blue ball $k$ times, change as a function of $k$?

share|improve this question
add comment

1 Answer

What you are sampling is sum of $k$ independent variables with geometric distribution. So, for $p=\frac{B}{A+B}$, the variance of this sum will be $k\frac{1-p}{p^2}$.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.