Abstract
The Clopper–Pearson method of constructing a confidence interval for the probability of success in a binary population that follows a Bernoulli distribution is well known. This paper pedagogically justifies the Clopper–Pearson method and extends the method to all distributions with one parameter whose cumulative probability distribution functions are monotonically continuous with respect to their single parameter. The conservativeness of Clopper–Pearson confidence intervals is proved analytically. Clopper–Pearson confidence intervals are constructed for Poisson, geometric, non-central hyper-geometric, and exponential, etc. It turns out that such extensions result in various well-known confidence intervals in the literature.
Keywords:
Clopper–Pearson; confidence interval; exponential distribution; geometric distribution; non-central hyper-geometric distribution; Poisson distribution MSC:
62F25
1. Introduction
Clopper and Pearson [1] constructed a confidence interval, often called the exact confidence interval, for the probability of success in a binary population that follows a Bernoulli distribution. Among many methods of construction, exact or approximate, the Clopper–Pearson method has been regarded as a golden standard despite its conservativeness, i.e., the actual coverage probability of a Clopper–Pearson confidence interval for any fixed parameter value is at least as high as the nominal confidence level. Exact confidence intervals such as Clopper–Pearson are usually conservative and longer, while approximate confidence intervals such as Wilson and Agresti-Coull are usually less conservative and shorter.
The basic idea of Clopper–Pearson intervals is that an observed value of the statistic, the total number of successes, which follows a binomial distribution, should be an unusual observation for any value of the success probability outside its confidence interval, where unusual observations are those that are no more or no less than the observed value. Because of such an accessible idea, Clopper–Pearson confidence intervals have been included in most statistics textbooks and have been implemented in most statistical software packages.
The literature on confidence intervals for population proportion is extensive. Agresti and Coull [2] compared the true coverage probabilities of approximate confidence intervals such as Wald and Wilson or the score with that of Clopper–Pearson and proposed modified Wald confidence intervals that have coverage probabilities close to the nominal confidence level. Brown et al. [3] reviewed the erratic behaviors of Wald confidence intervals and provided a number of alternative approximate confidence intervals. McGrath et al. [4] assessed the performance of both approximate and Clopper–Pearson confidence intervals in the context of rare events. Schilling and Doi [5] studied optimal confidence intervals by minimizing average length while maximizing coverage probabilities among all length-minimizing procedures. Thulin [6] quantified the cost of using the Clopper–Pearson confidence interval in terms of the increased expected interval length and the increased sample size required to achieve the desired expected length.
However, the pedagogical justification for the Clopper–Pearson method is not available in the literature. The purpose of this paper is twofold. One is to justify the Clopper–Pearson method pedagogically and prove its conservativeness analytically. The other is to extend the Clopper–Pearson method to all distributions with one parameter whose cumulative probability distribution functions are monotonically continuous with respect to their single parameter. We provide extensions of the Clopper–Pearson method to distributions such as Poisson, geometric, non-central hyper-geometric, and exponential, etc. It turns out that such extensions result in various confidence intervals in the literature.
The paper is structured as follows. Section 2 defines and justifies the Clopper–Pearson interval. Results from the literature are reformulated in this section for pedagogical reasons and completion. Extensions of the Clopper–Pearson interval to other distributions are presented in Section 3. Theorem 1 and Corollary 1 lay the foundation of extensions and are not available in the literature. Section 4 provides some concluding remarks.
2. Clopper–Pearson Confidence Interval
Let , , ⋯, and be independently and identically distributed as Bernoulli distribution with success probability and . Note that Y is a sufficient and complete statistic for and follows a binomial distribution with known n and unknown parameter , i.e., . Clopper and Pearson [1] constructed a two-sided confidence interval of based on the following idea: An observation of Y should be an unusual observation for any outside its confidence interval, i.e., for any outside its confidence interval,
Definition 1.
Let , , ⋯, and be independently and identically distributed as Bernoulli distribution with success probability and . A two-sided Clopper–Pearson confidence interval of π is , where and are numerically determined by and , respectively, for .
If , because and because . If , because and because .
For , is not continuous and therefore not a differentiable function of y. However, is differentiable with respect to for . Lemma 1 next justifies the method of Clopper–Pearson confidence intervals. Ramsey [7] provided a detailed proof and a simplified proof is given below for completeness.
Lemma 1.
Suppose that for .
(a). For , is continuous and strictly decreasing for .
(b). For , and , there exist and such that and , where and are unique solutions to and , respectively.
Proof.
(a) is attained by noting for , which can be verified by straightforward differentiation or by the equality
from integration by parts.
To prove (b), we note that for fixed y, is continuous and strictly decreasing with respect to , while is continuous and strictly increasing for . By the Intermediate Value Theorem in [8], there exist unique and such that and , respectively.
Next, we show that using proof by contradiction. Suppose that . Choose some such that . Since , we have
Similarly, we have
because . Therefore,
which contradicts .
Finally, by construction of the two-sided Clopper–Pearson confidence interval,
Hence,
□
In practice, the computation of the Clopper–Pearson interval is usually carried out using the or F distributions.
Let and be a random variable with parameters and , i.e., . Recall that, for ,
We have
Since , we have
Hence, , where is the -quantile of beta distribution with parameters and .
On the other hand, since
We have , where is the -quantile of beta distribution with parameters y and .
Note that, if , for and . Hence,
Therefore,
where is the p-quantile of the F distribution with and degrees of freedom for , , and . Similarly,
Therefore,
3. Extensions of Clopper–Pearson Confidence Interval
Theorem 1 and and Corollary 1 next extend the Clopper–Pearson interval to any distribution with a cumulative probability distribution that is continuous and monotonic with respect to its single parameter.
Theorem 1.
Let be the cumulative probability distribution function of a random variable Y for , where a and b are real numbers. For any observed value of Y, say, , and , suppose that is a continuous and decreasing function of , , and , there exist and such that and a two-sided Clopper–Pearson confidence interval of θ based on the observation of is , where is a solution to and is a solution to or with . If for all , take . If for , take .
A upper Clopper–Pearson confidence bound of θ based on the observation is , where is a solution to if . If for all , take .
Similarly, a lower Clopper–Pearson confidence bound of θ based on the observation is , where is a solution to if . If for all , take .
Proof.
We prove the case of two-sided confidence interval and the proofs of lower and upper confidence bounds are similar.
The existence of and in the two-sided confidence interval are attained by applying the Intermediate Value Theorem directly. We prove using proof by contradiction. Suppose that . Choose some such that . Since , because is decreasing. Note that . We know that is decreasing and . Therefore,
which contradicts .
To see that the confidence level of is at least , note that
we have
□
When the cumulative probability distribution function is a continuous and increasing function of , we have the following corollary. We omit the proof of Corollary 1 because it is similar to that of Theorem 1.
Corollary 1.
Let be the cumulative probability distribution function of a random variable Y for , where a and b are real numbers. For any observed value of Y, say, , and , suppose that is a continuous and increasing function of , , and . There exist and such that and a two-sided Clopper–Pearson confidence interval of θ based on the observation of is , where is a solution to and is a solution to or . If for all , take . If for , take .
A upper Clopper–Pearson confidence bound of θ based on the observation is , where is a solution to if . If for all , take .
Similarly, a lower Clopper–Pearson confidence bound of θ based on the observation is , where is a solution to if . If for all , take .
Figure 1 on the next page graphically displays the idea of Theorem 1 and Corollary 1 where solid lines are as functions of and dashed lines are as functions of .
Figure 1.
Clopper–Pearson confidence intervals.
Remark 1.
For a discrete or continuous random variable Y, the strictly monotonic property of results in the uniqueness of and in the confidence intervals or confidence bounds.
Remark 2.
The conclusions of Theorem 1 hold when is a continuous and monotonic function of and both and exist and are finite. In fact, let for , , and and the results are obtained by applying Theorem 1 to .
Remark 3.
Not every cumulative probability distribution function with one parameter is monotonic function of the parameter for any y in its domain. Consider a normal distribution with mean and variance . Its cumulative probability distribution function is strictly increasing for and strictly decreasing for , where is the cumulative probability distribution function of the standard normal distribution.
Since the lower and upper confidence bounds are the lower and upper limits of the two-sided confidence interval, respectively, we only construct two-sided confidence intervals in the following.
- Extension to Poisson distribution: Let , , ⋯, and be independently and identically distributed as Poisson distribution with parameter . Let . Note that Y is a sufficient and complete statistic for and follows a Poisson distribution .
Let . Consider the cumulative probability distribution function of Y, . It is straightforward to show that . Therefore, is a continuous and strictly decreasing function of for any fixed . Note that and for any fixed .
Through integration by parts, we have . Therefore, , which is a continuous and strictly decreasing function of for fixed . , where is a random variable that has a gamma distribution with shape parameter y and scale parameter 1.
A two-sided Clopper–Pearson type confidence interval for is , where , , and is the p-quantile of gamma distribution with shape parameter a and scale parameter b for , , and . Therefore, a two-sided Clopper–Pearson type confidence interval for is , where and for .
Recall that , and , where is the p-quantile of chi-square distribution with degrees of freedom for and . These are the fiducial limits proposed by Garwood [9]. Agresti and Coull [2] mentioned this idea of constructing the exact confidence interval for but no details were given. Patil and Kulkarni [10] compared the Garwood interval with other eighteen intervals in terms of coverage probability and expected length.
- Extension to geometric distribution: Let , , ⋯, be independently and identically distributed as a geometric distribution with success probability , i.e., , for , and and . Note that Y is a sufficient and complete statistic for and follows a negative binomial distribution, i.e., .
In order to show the cumulative probability distribution function of the negative binomial distribution is a continuous and strictly increasing function of , we need Lemma 2, which is first proved in [11]. We modified Rider’s proof next to make the presentation more comprehensible.
Lemma 2.
Suppose that for .
(a). For any integer , is a continuous and strictly decreasing function of . Therefore, is a continuous and strictly increasing function of .
(b). For any integer , , where is a random variable that has a beta distribution with parameters n and .
Proof.
To prove (a), consider . For , let . . For any integer ,
Therefore, is a continuous and strictly decreasing function of .
For (b), since when for any , we have
Let ,
Therefore, , where is a random variable that has a beta distribution with parameters n and y. Hence, . □
Since is a continuous and strictly increasing function of when , a two-sided confidence interval of Clopper–Pearson type for is , where , , and is the p-quantile of a beta distribution with shape parameters a and b for , , and . When , and . Hence, and .
- Extension to noncentral hypergeometric distribution: Let , , X, and Y be independent. The conditional distribution of for is Fisher’s noncentral hypergeometric distribution. For ,where is the odds ratio.
To construct a confidence interval for , we need the following Lemma 3 to show that the cumulative probability distribution function of the noncentral hypergeometric distribution is a continuous and strictly decreasing function of in .
Lemma 3.
Let be a polynomial of x of order with all positive coefficients . For any , let . Then, is a continuous and strictly decreasing function of x in , , and .
The proof of Lemma 3 is straightforward and is omitted. It can also be derived as a special case of the Appendix of [12].
For any , let where , , X and Y are independent. By Lemma 3 the cumulative probability distribution function of , , is a continuous and strictly decreasing function of for and . Therefore, a two-sided confidence interval for is where and are unique solutions to and ,, respectively, for . If , because . If , because .
The two-sided Clopper–Pearson confidence interval is the inversion of the two-sided central Fisher’s exact test in [13] by using the exact conditional tails. Since there are no explicit formulas for , and , an R [14] function using MCMCpack package [15] has been written for the numerical computation of the two-sided confidence interval and is given in Appendix A.
Example 1.
Fay [13] presented a study of CCR5 deficiency due to infection with West Nile virus. Among 15 subjects who were homozygous for CCR5 deficiency, 4 subjects had abdominal pain, while 50 had abdominal pain among 619 subjects who were heterozygous for CCR5 deficiency. The sample odds ratio of abdominal pain from homozygous subjects to heterozygous subjects is about . The Clopper–Pearson confidence interval for the population odds ratio is , which is wider than the corresponding Wald interval , the Fay exact interval in [13], and Blaker’s exact interval in [16]. Moreover, since 1 is in the Clopper–Pearson interval but not in other intervals, the population proportions of abdominal pain among homozygous and heterozygous patients are not statistically different based on the Clopper–Pearson interval, but they are statistically different based on Wald approximate interval, Blaker, and Fay exact intervals.
Figure 2 displays the true probability coverage of the four confidence intervals of the confidence level. The conservativeness of the Clopper–Pearson interval over the Blaker and Fay exact intervals and the insufficient probability coverage of the Wald interval are apparent.
Figure 2.
True Probability Coverage of Clopper–Pearson, Wald, Blaker, and Fay Intervals.
- Extension to exponential distribution: Let , , ⋯, and be independently and identically distributed as an exponential distribution with parameter or , i.e., for . Note that is a sufficient and complete statistic for and because . For any observed value of Y, say, y, , where is the cumulative probability distribution function of .
Since is a continuous and strictly increasing function of , and , a two-sided Clopper–Pearson confidence interval is , where is the unique solution to and is the unique solution to , i.e., and , where is the p-quantile of chi-square distribution with degrees of freedom for and . This two-sided confidence interval is exactly the same as the one obtained by the method of pivotal quantity with pivotal quantity , i.e., .
Recall the relationship between the exponential distribution and the two-parameter Weibull distribution when the shape parameter is known; we construct a Clopper–Pearson type of confidence interval for the rate parameter as follows. Consider a random sample , , ⋯, and from a two-parameter Weibull distribution with shape parameter and rate parameter , i.e., the probability density function is , for . When k is known, a sufficient statistic for is . Since , and . For any observed value of Y, say, y, , where is the cumulative probability distribution function of .
Since is a continuous and strictly increasing function of , and , a two-sided Clopper–Pearson confidence interval of is , where is the unique solution to and is the unique solution to , i.e., and , where is the p-quantile of chi-square distribution with degrees of freedom for and .
Note that the Rayleigh distribution with scale parameter and probability density function is a special Weibull distribution with shape parameter and rate parameter . A two-sided Clopper–Pearson confidence interval of based on a random sample , ⋯, and from the Rayleigh distribution is .
The following two extensions are from [17] and were presented there as examples of fiducial confidence intervals. Since fiducial confidence intervals are not very comprehensible among statistical practitioners, we represent them next as Clopper–Pearson confidence intervals.
- Extension to normal distribution: Let , , ⋯, be independently and identically distributed as a normal distribution with unknown mean and known standard deviation , i.e., . The sample mean is a sufficient and complete statistic for . For any observed value of , say, , consider and , where is the cumulative probability distribution function of . Since is a continuous and strictly decreasing function of , , and , the two-sided Clopper–Pearson confidence interval is , where is the -quantile of standard normal distribution. This two-sided Clopper–Pearson confidence interval is exactly the same as the one obtained by the method of pivotal quantity.
- Extension to uniform distribution: Let , , ⋯, be independently and identically distributed as a uniform distribution on for . Note that is a sufficient and complete statistic for .
For any observed value of Y, say, y, and . Since is a continuous and strictly decreasing function of on , , and , the two-sided Clopper–Pearson confidence interval is .
Although we have extended the Clopper–Pearson method to some continuous distributions above, it seems that the most popular way to construct confidence intervals for continuous distributions in practice is the method of the pivotal quantity.
4. Conclusions
We have pedagogically justified the Clopper–Pearson method in constructing confidence intervals for the success probability of a binary population that follows a Bernoulli distribution and extended the method to all distributions with one parameter whose cumulative probability distribution functions are monotonically continuous with respect to their single parameter. These extensions expand the applications of the Clopper–Pearson method extensively. One attractive feature of Clopper–Pearson confidence intervals is their conservativeness, i.e., their true coverage probabilities are at least as high as their nominal levels. We prove such conservativeness analytically. Due to such conservativeness, Clopper–Pearson confidence intervals are widely applied in quality control and clinical trials where conservative decision-making is needed. Compared with other exact intervals such as Blaker and Fay, the cost quantification of the conservativeness of the Clopper–Pearson confidence interval in terms of the increased expected length and the increased sample size makes it more appealing to practitioners.
Although we focus on two-sided confidence intervals of equal tails in this paper, unequal-tailed two-sided confidence intervals can be constructed similarly.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the author.
Acknowledgments
The author appreciates insightful comments and suggestions from editors and referees that substantially improve the presentation of the article.
Conflicts of Interest
The author declares no conflicts of interest.
Appendix A. R Function That Computes Confidence Intervals of Odds Ratios
- clopper.pearson.oddsratio<-function(x,nx,ny,t,conf.level){#Call probability mass function of noncentral hypergeometric distribution from MCMCpacklibrary(MCMCpack)stopifnot("x, nx, ny, t must be integers" = all(c(x,nx,ny,t)%%1==0),"x, nx, ny, t must be nonnegative" = all(c(x,nx,ny,t)>=0),"x must be no greater than nx, ny, and t" = all(c(nx-x,ny-x,t-x)>=0))#Cumulative probability distribution function of noncentral hypergeometric distributionpnoncenhypergeom<-function(x,nx,ny,t,psi){#nx:size of group one;ny:size of group two#t:sum of observed number of positive outcomes in both groups#psi:Odds ratio pi1(1-pi2)/((1-pi1)pi2)value.vec<-seq(max(0,t-ny),min(nx,t),by=1)n<-length(value.vec)#dnoncenhypergeom does not accept vector x and vector psiprob.vec<-rep(0,n)for(i in 1:n){prob.vec[i]<-dnoncenhypergeom(value.vec[i], n1=nx, n2=ny, m1=t, psi)}cumsum.prob.vec<-cumsum(prob.vec)for(i in 1:(n-1)){if(x<value.vec[1]) out<-0if (x>value.vec[n]) out<-1if (x>=value.vec[i] & x<value.vec[i+1]) out<-cumsum.prob.vec[i]}out}if(x>max(0,t-ny) & x<min(t,nx)){#Upper limitfun1<-function(psi) pnoncenhypergeom(x,nx,ny,t,psi)-(1-conf.level)/2CPupper<-uniroot(fun1,c(10^(-10),10^10))$root#Lower limitfun2<-function(psi) pnoncenhypergeom(x-1,nx,ny,t,psi)-(1+conf.level)/2CPlower<-uniroot(fun2,c(10^(-10),10^10))$root}if(x==min(t,nx)){CPupper<-Inf#Lower limitfun3<-function(psi) dnoncenhypergeom(x, nx, ny, t, psi)-(1-conf.level)/2CPlower<-uniroot(fun3,c(10^(-10),10^10))$root}if(x==max(0,t-ny)){CPlower<-0#Upper limitfun4<-function(psi) dnoncenhypergeom(x, nx, ny, t, psi)-(1-conf.level)/2CPupper<-uniroot(fun4,c(10^(-10),10^10))$root}sample.odds.ratio<-x*(ny-t+x)/((t-x)*(nx-x))out<-round(c(CPlower,sample.odds.ratio,CPupper,conf.level),digits=2)names(out)<-c("Clopper--Pearson Lower","sample.odds.ratio","Clopper--Pearson Upper","Confidence Level")out}#The example from Fay (2010)> clopper.pearson.oddsratio(x=4,nx=15,ny=619,t=54,conf.level=0.95)Clopper--Pearson Lower sample.odds.ratio Clopper--Pearson Upper Confidence Level0.92 4.14 14.57 0.95
References
- Clopper, C.; Pearson, E.S. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 1934, 26, 404–413. [Google Scholar] [CrossRef]
- Agresti, A.; Coull, B.A. Approximate is better than “Exact” for interval estimation of binomial proportions. Am. Stat. 1998, 52, 119–126. [Google Scholar] [CrossRef] [Scilit]
- Brown, L.D.; Cai, T.T.; DasGupta, A. Interval estimation for a binomial proportion. Stat. Sci. 2001, 16, 101–133. [Google Scholar] [CrossRef] [Scilit]
- McGrath, O.; Burke, K. Binomial Confidence intervals for rare events: Importance of defining margin of error relative to magnitude of proportion. Am. Stat. 2024, 78, 437–449. [Google Scholar] [CrossRef] [Scilit]
- Schilling, M.F.; Doi, J.A. A coverage probability approach to finding an optimal binomial confidence procedure. Am. Stat. 2014, 68, 133–145. [Google Scholar] [CrossRef] [Scilit]
- Thulin, M. The cost of using exact confidence intervals for a binomial proportion. Electron. J. Stat. 2014, 8, 817–840. [Google Scholar] [CrossRef] [Scilit]
- Ramsey, L.T. (Traditional) Exact Confidence Intervals for the Binomial Distribution. Available online: https://www.math.hawaii.edu/~ramsey/TraditionalBinomialCI.pdf (accessed on 5 February 2025).
- Stewart, J.; Clegg, D.; Watson, S. Calculus, Early Transcendentals, 9th ed.; Cengage Learning: Boston, MA, USA, 2021; p. 122. [Google Scholar]
- Garwood, F. Fiducial Limits for the Poisson Distribution. Biometrika 1936, 28, 437–442. [Google Scholar] [CrossRef] [Scilit]
- Patil, V.V.; Kulkarni, V.H. Comparison of confidence intervals for the Poisson mean: Some new aspects. REVSTAT-Stat. J. 2012, 10, 211–227. [Google Scholar]
- Rider, P.R. The negative binomial distribution and the incomplete beta function. Am. Math. Mon. 1962, 69, 302–304. [Google Scholar] [CrossRef] [Scilit]
- Mehta, C.R.; Patel, N.R.; Gray, R. Computing an exact confidence interval for the common odds ratio in several 2 × 2 contingency tables. J. Am. Stat. Assoc. 1985, 80, 969–973. [Google Scholar] [CrossRef] [Scilit]
- Fay, M.P. Confidence intervals that match Fisher’s exact or Blaker’s exact tests. Biostatistics 2010, 11, 373–374. [Google Scholar] [PubMed]
- R Core Team. A Language and Environment for Statistical Computing R Foundation for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2026. [Google Scholar]
- Martin, A.D.; Quinn, K.M.; Park, J.H. MCMCpack: Markov Chain Monte Carlo in R. J. Stat. Softw. 2011, 42, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Blaker, H. Confidence curves and improved exact confidence intervals for discrete distributions. Can. J. Stat. 2000, 28, 783–798. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.H. Fiducial intervals: What are they? Am. Stat. 2000, 54, 105–111. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.

