Lably
Skip to content

Binomial proportion confidence interval

Statistical confidence interval for success counts

  • 14 min read
  • 10 chapters

Related on Lably

Through Statistics, Bernoulli trial and Binomial distribution

There are several formulas for a binomial confidence interval, but all of them rely on the assumption of a binomial distribution. In general, a binomial distribution applies when an experiment is repeated a fixed number of times, each trial of the experiment has two possible outcomes (success and failure), the probability of success is the same for each trial, and the trials are statistically independent. Because the binomial distribution is a discrete probability distribution (i.e., not continuous) and difficult to calculate for large numbers of trials, a variety of approximations are used to calculate this confidence interval, all with their own tradeoffs in accuracy and computational intensity.

A simple example of a binomial distribution is the set of various possible outcomes, and their probabilities, for the number of heads observed when a coin is flipped ten times. The observed binomial proportion is the fraction of the flips that turn out to be heads. Given this observed proportion, the confidence interval for the true probability of the coin landing on heads is a range of possible proportions, which may or may not contain the true proportion. A 95% confidence interval for the proportion, for instance, will contain the true proportion 95% of the times that the procedure for constructing the confidence interval is employed.

Problems with using a normal approximation or "Wald interval"

A commonly used formula for a binomial confidence interval relies on approximating the distribution of error about a binomially-distributed observation, p^, with a normal distribution. The normal approximation depends on the de Moivre–Laplace theorem (the original, binomial-only version of the central limit theorem) and becomes unreliable when it violates the theorems' premises, as the sample size becomes small or the success probability grows close to either 0 or 1 .

Using the normal approximation, the success probability p is estimated by

p≈p^±zαnp^(1−p^),

where p^≡nsn is the proportion of successes in a Bernoulli trial process and an estimator for p in the underlying Bernoulli distribution. The equivalent formula in terms of observation counts is

p≈nsn±zαnnsnnfn,

where the data are the results of n trials that yielded ns successes and nf=n−ns failures. The distribution function argument zα is the 1−α2 quantile of a standard normal distribution (i.e., the probit) corresponding to the target error rate α. For a 95% confidence level, the error α=1−0.95=0.05, so that 1−α2=0.975 and z.05=1.96.

When using the Wald formula to estimate p, or just considering the possible outcomes of this calculation, two problems immediately become apparent:

  • First, for p^ approaching either 1 or 0, the interval narrows to zero width (falsely implying certainty).
  • Second, for values of p^<11+n/zα2 (probability too low / too close to 0), the interval boundaries exceed [0,1] (overshoot).

(Another version of the second, overshoot problem, arises when instead 1−p^ falls below the same upper bound: probability too high / too close to 1 .)

An important theoretical derivation of this confidence interval involves the inversion of a hypothesis test. Under this formulation, the confidence interval represents those values of the population parameter that would have large p-values if they were tested as a hypothesized population proportion. The collection of values, θ, for which the normal approximation is valid can be represented as

{θ|yα≤p^−θ1np^(1−p^)≤zα},

where yα is the lower α2 quantile of a standard normal distribution, vs. zα, which is the upper ( i.e., 1−α2) quantile.

Since the test in the middle of the inequality is a Wald test, the normal approximation interval is sometimes called the Wald interval or Wald method, after Abraham Wald, but it was first described by Laplace (1812).

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Statistics