how many samples needed to obtain an estimate with a given confidence interval

45 Views Asked by At

Suppose an urn contains N balls of different colors. I do not know the colors nor the distributions, and I wish to determine the fraction of red balls in the urn, (R/N), to within p% with C confidence. I may repeatedly sample 1 ball with replacement. How do I know when I can stop sampling? (Note that R may equal zero.)