I have a problem, which looks like a regular probability one, but has much greater numbers, then usually met. I have a 500'000 balls in a bag, one ball is white and all others are black. We draw a ball, look at it and throw it back in the bag.
How many times should one draw a ball and throw it back until a white one is drawn with probability 95%?
The regular solution with degrees doesn't work here. The 499999/500000 is too small and the power is too high. How this can be addressed?
A Poisson approximation seems appropriate given the small probability of drawing a white ball.
Let $X$ be the total number of white balls in $n$ draws. We assume $X$ follows a Poisson distribution with mean $$\lambda = n / 500,000$$ So $$P(X > 0) = 1 - \exp(-\lambda) = 1 - \exp(-n / 500,000)$$ We want $P(X>0) > 0.95$, i.e. $$1 - \exp(-n / 500,000) > 0.95 $$ so $$\begin {align} \exp(-n / 500,000) &< 0.05 \\ -n / 500,000 &< \ln(0.05) \\ n &> -500,000 \cdot \ln(.05) \approx 1.50 \times 10^6\\ \end{align}$$