A process produces 20 items and 12 of them meet a quality standard. The sample proportion is , but a second run of 20 items might give 10 or 14, so the probability that an item meets the standard is not pinned down. Several interval methods answer which values of that probability fit the data, and with small samples or counts near or they give noticeably different answers. This lesson compares the Wald, Wilson and Clopper-Pearson intervals, explains what their coverage means, and shows why a count of zero still leaves real uncertainty.
Key terms
Wald interval
Definition Suppose the number of successes in trials follows , which requires a fixed number of independent trials that share one success probability , and let . Write for the standard normal quantile with upper tail area , so that for 95 percent confidence. The Wald interval for is
It comes from the normal approximation to the distribution of , with the observed substituted for the unknown in the standard error . Every interval on this page relies on the binomial model, so the model has to match how the data were collected. Outcomes repeated on the same person, a success probability that drifts, or a selected sample break it, and no interval formula repairs that. For a random sample drawn without replacement from a finite population, the binomial model is an approximation that works well when the sample is a small fraction of the population.
In plain words The recipe is estimate plus or minus a critical value times an estimated standard error. For a proportion the plug-in standard error is least reliable with small or with near or . The interval is symmetric about , it can reach below or above , and when or its width is zero.
Example For 12 successes in 20 trials, and
since the estimated standard error is . The 95 percent Wald interval is about . With 1 success in 10 trials the same recipe gives , and its lower end is not a possible probability.
Nominal and actual coverage
Definition The nominal coverage of an interval method is the confidence level it is designed for, such as 95 percent. Its actual coverage at a value is the probability, computed under the model with that as the true value, that the interval produced from the data contains . For a method that turns each count into an interval , the actual coverage is , which equals the sum of binomial probabilities
where is the set of counts whose interval contains . Coverage describes the procedure before the data are seen. Once an interval has been computed it either contains or it does not, and the 95 percent is not a probability that this particular interval is correct.
In plain words The nominal level is the promise on the label, and the actual coverage is how often its intervals contain over many repetitions of the study with the same and the same true . A count can produce only different intervals, so as moves the set of covering counts changes in jumps and the actual coverage rises and falls with . It cannot equal the nominal level at every , so what matters is whether a method stays at or above the nominal level and how far it can drop below. The Wald interval is the extreme case. For it is the single point , which misses every . At each its actual coverage is therefore at most , and this bound tends to as approaches .
Example Take and a true . Then has probability , and in that case the Wald interval misses . Checking all eleven possible counts gives the table below, where each coverage is the binomial probability of the listed counts.
| 95 percent method | Counts whose interval contains | Actual coverage |
|---|---|---|
| Wald | ||
| Wilson | ||
| Clopper-Pearson |
At this the Wald interval covers only about 40 percent of the time, Wilson falls somewhat short of 95 percent, and Clopper-Pearson exceeds it.
Wilson interval
Definition Under the same binomial model, the Wilson interval, also called the score interval, is the set of all in that pass the normal comparison
in which the standard error is computed from the candidate rather than from . Squaring turns this into a quadratic inequality in , and its solution is the interval with
The endpoints always lie in , and when the interval contains in its interior. The method still rests on a normal approximation, so its coverage is approximate.
In plain words Instead of letting supply the standard error, the Wilson interval asks of each candidate value whether the observed proportion lies within standard errors of it, with the standard error computed from the candidate itself. This keeps the endpoints inside and stops the interval from collapsing at a boundary. The center equals , a weighted average of and , so it lies between them and moves closer to as grows. The shift comes from solving the inequality, not from changing the data. Wilson is a sensible default, but its actual coverage can fall below the nominal level for some values of .
Example For 12 successes in 20 trials at 95 percent, and . Then , the center is and the half-width is , so the Wilson interval is about . Compared with the Wald interval , it is shorter here and shifted toward .
Clopper-Pearson interval
Definition Under the binomial model, observe and write for binomial probabilities computed with success probability . For , the equal-tailed Clopper-Pearson interval at level is , where the endpoints solve
When the lower endpoint is and the upper endpoint solves . When the upper endpoint is and the lower endpoint solves . Each tail probability changes continuously and strictly with , so each equation has exactly one solution. The endpoints can also be computed as quantiles of beta distributions. Under the binomial model the actual coverage of this procedure is at least for every in . It is often called the exact binomial interval, because it uses binomial probabilities instead of a normal approximation.
In plain words The lower endpoint is the smallest for which a count at least as large as the observed one still has probability at least , and the upper endpoint is the largest for which a count at least as small still has probability at least . Exact refers to the coverage guarantee under the model, not to a precise answer. Because counts are discrete, the guarantee is kept with room to spare at most values of , so the method is conservative. It covers at least as often as the nominal level and is often wider than the Wilson interval.
Example For 12 successes in 20 trials at 95 percent, the lower endpoint is the at which 12 or more successes have probability , and the upper endpoint is the at which 12 or fewer have probability . Solving numerically gives about , which contains the Wilson interval . Both are statements about procedures. Neither says that lies in its interval with probability now that the data are fixed.
Boundary proportion
Definition A boundary proportion is an observed equal to or , which happens when or . With and level , the Wald interval is the single point , the Wilson interval is , and the Clopper-Pearson interval is . With the intervals are the mirror images, reflected about . Under the model every gives positive probability, namely , so a zero count does not show that .
In plain words Seeing no successes makes large values of implausible but cannot rule out small positive ones. A method whose width is a multiple of , such as the Wald interval, sees no variability in the data and reports none, which is the wrong conclusion. A defensible report keeps the lower endpoint at and gives an upper endpoint from a method that works at the boundary, together with the method’s name. Counts close to or cause the same problems in a milder form.
Example Suppose 10 trials give no successes. The 95 percent Wald interval is . The Wilson upper endpoint is , and the Clopper-Pearson upper endpoint is
Small positive values of remain compatible with ten failures. At the probability of ten failures is , and at it has dropped to , which is exactly how the Clopper-Pearson endpoint is defined. The two upper endpoints differ because the procedures differ, and neither claims that equals its upper endpoint. Ten successes in ten trials give the mirror intervals for Wilson and for Clopper-Pearson.
Check yourself
- An inspection finds that 45 of 100 items meet a standard. Assuming independent items with a common probability , find the 95 percent Wald and Wilson intervals for .
Show the answer
The sample proportion is , and the estimated standard error is . The Wald margin is , so the Wald interval is about .
For Wilson, and the center is . Next , so . The Wilson interval is about . With 100 trials and far from and , the two methods nearly agree.
- A supplier tests 20 parts, none of which fails, and reports a 95 percent interval of to for the failure probability. What went wrong, what should the report say instead, and would testing more parts settle the question?
Show the answer
The report used the Wald interval at a boundary. With the plug-in standard error is , so the interval collapses and claims a certainty the data do not give. Under a binomial model with independent tests, a failure probability of still produces 20 passes with probability .
A defensible report gives the Wilson interval or the Clopper-Pearson interval , and names the method. More independent tests would usually narrow the interval. They would not fix a biased collection process, for example if the supplier chose which parts to test, because then the binomial model with the target failure probability does not describe the data.
- For 12 successes in 20 trials, a report states that the Clopper-Pearson interval is exact, so there is exactly a 95 percent probability that lies between and . Correct both parts of the claim. Use the fact that, for , the 95 percent Clopper-Pearson interval contains exactly when the count is between 8 and 16.
Show the answer
The 95 percent describes the procedure over repeated samples, not this one interval. With the data fixed, either lies in or it does not, and a probability statement about itself would need a Bayesian analysis with a prior.
The word exact means that under the binomial model the coverage is at least 95 percent for every , not that it equals 95 percent. If the true value is , the procedure covers it whenever , and for that probability is about . The method is conservative at this .