# Confidence interval for the number of successes in a population

In the answer to this question

How to Calculate a Confidence Interval for Estimating a Proportion When the Population is Very Small

the method for constructing an exact 95% confidence interval for the number of successes in the population is given. This interval is exact in the sense that it uses the hypergeometric distribution to construct the interval. However, the interval may not have a coverage of exactly 95%. Can someone suggest a reference that discusses how to calculate the achieved coverage for one of these exact confidence intervals? Thanks.

• Isn't the point that you can't? Hence you have to resort to 'randomized p-values'. Dec 18, 2015 at 15:39
• I am not asking to get 95%, I am asking what I got. Is it 98.6% or what? Dec 18, 2015 at 18:43
• Ah, I see. Well, the realized coverage is very choppy for almost all types of interval, depending on the true proportion : See graphs in Brown, Cai and Dasgupta 2001 and 2002. Dec 18, 2015 at 19:32
• Those papers appear to discuss confidence intervals for the number of successes for an infinite population (the binomial distribution), not for a finite population (hypergeometric distribution). Dec 19, 2015 at 11:56
• True. However, the hypergeometric intervals seem to look rather the same - presumably for the same reasons - at least if I'm interpreting Fig. 23 of this. I'm well out of area, as you can tell, but it seems like Section 6 might possibly be relevant to your question. The author has R code too, I believe. Dec 19, 2015 at 22:48