Agresti-Coull Interval Calculator
Proportion intervals
- Plus-four adjustment: the Agresti-Coull method adds z^2 = 3.84 pseudo-observations, half of them successes, lifting the sample from 120 to 123.84.
- Adjusted proportion: (38 + 1.92) / 123.84 = 32.24 %, the centre of the interval rather than the raw 31.67 %.
- Adjusted Wald interval: the ordinary standard-error formula around the adjusted centre gives a half-width of 8.23 percentage points.
- Agresti-Coull interval result: 32.24 %, 95% CI 24.00 % to 40.47 %.
Here is a small scandal of elementary statistics: the confidence interval every textbook teaches for a proportion - the Wald interval, p-hat plus or minus z standard errors - performs terribly, with coverage that lurches above and below the advertised level as the true proportion moves. In 1998 Alan Agresti and Brent Coull published the disarmingly simple fix that now bears their names: before applying the Wald formula, pad the data. Add z-squared pseudo-observations, half of them successes. For a 95 percent interval z-squared is about 3.84, so the recipe is the famous 'plus-four' rule: add two successes and two failures, then proceed as if nothing happened.
The padding does two jobs at once. It pulls the centre of the interval from the raw sample proportion toward one half - exactly the shrinkage the Wald interval needs near the edges - and it inflates the effective sample size, widening the interval where the data are thin. The result tracks the coverage of the more elaborate Wilson score interval closely enough that Brown, Cai and DasGupta's authoritative 2001 review recommended Agresti-Coull (or Wilson) as the default for small to moderate samples. Enter successes, trials and a confidence level, and the calculator returns the adjusted proportion with its interval and the padded sample size.
The paper's title deserves quoting because it is also the method's philosophy: 'Approximate is better than exact for interval estimation of binomial proportions.' Agresti and Coull were pushing against two orthodoxies at once - the Wald interval that textbooks taught despite its erratic coverage, and the Clopper-Pearson 'exact' interval whose guaranteed coverage is bought with width that wastes information. Their plus-four construction threaded between them: a formula a student can compute by hand whose actual coverage behaves like the sophisticated methods. Few three-page papers have changed as many lecture slides.
The paper's title deserves quoting because it is also the method's philosophy: 'Approximate is better than exact for interval estimation of binomial proportions.' Agresti and Coull were pushing against two orthodoxies at once - the Wald interval that textbooks taught despite its erratic coverage, and the Clopper-Pearson 'exact' interval whose guaranteed coverage is bought with width that wastes information. Their plus-four construction threaded between them: a formula a student can compute by hand whose actual coverage behaves like the sophisticated methods. Few three-page papers have changed as many lecture slides.
The paper's title deserves quoting because it is also the method's philosophy: 'Approximate is better than exact for interval estimation of binomial proportions.' Agresti and Coull were pushing against two orthodoxies at once - the Wald interval that textbooks taught despite its erratic coverage, and the Clopper-Pearson 'exact' interval whose guaranteed coverage is bought with width that wastes information. Their plus-four construction threaded between them: a formula a student can compute by hand whose actual coverage behaves like the sophisticated methods. Few three-page papers have changed as many lecture slides.
Worked examples
38 successes in 120 trials at 95%
(38 · 120 · 95% (z = 1.96))
| Adjusted proportion | 32.24 % |
| 95% CI lower | 24.00 % |
| 95% CI upper | 40.47 % |
| Adjusted sample size | 123.84 |
A 40-trial pilot with 7 successes
(7 · 40 · 95% (z = 1.96))
| Adjusted proportion | 20.35 % |
| 95% CI lower | 8.43 % |
| 95% CI upper | 32.26 % |
| Adjusted sample size | 43.84 |
264 of 500 at 99% confidence
(264 · 500 · 99% (z = 2.576))
| Adjusted proportion | 52.76 % |
| 99% CI lower | 47.05 % |
| 99% CI upper | 58.48 % |
| Adjusted sample size | 506.64 |
The plus-four idea
Why should fake data improve real inference? Because the Wald formula's flaw is its centre: it builds the interval around p-hat and estimates the standard error at p-hat too, so when the sample happens to land at 0 or 1 the interval collapses to a point at exactly the place where uncertainty is greatest. Padding moves the centre to the adjusted proportion - (x + z^2/2) / (n + z^2) - a weighted compromise between the observed rate and one half, with the compromise fading as n grows. At n in the thousands the adjustment is invisible; at n = 40 it is the difference between a defensible interval and a fiction.
The first worked example shows the shift concretely: 38 successes in 120 trials is a raw 31.67 percent, but the adjusted centre is 32.24 percent on a padded sample of 123.84. The movement is small because 120 trials is already respectable. The second example, 7 in 40, moves from 17.50 percent raw to a 20.35 percent centre - a correction nobody analysing a 40-person pilot should skip.
- Add z^2 pseudo-observations, half successes: for 95%, the 'plus-four' rule.
- Centre = adjusted proportion, not the raw p-hat.
- Standard error uses the adjusted proportion and padded n.
Why the centre moves
Statisticians will recognise the padding as a Bayesian-flavoured shrinkage: the adjusted proportion is the posterior mean under a particular weakly informative prior concentrated near one half. Agresti and Coull's contribution was not the idea of shrinkage but the calibration - choosing the padding to make a frequentist interval behave. Their simulations, and the Brown-Cai-DasGupta review after them, found coverage oscillating tightly around the nominal level instead of Wald's wild swings.
The interval is not magic at the extremes. With zero successes in very few trials, every asymptotic method strains, and exact (Clopper-Pearson) or Jeffreys intervals are safer. But for the broad middle of practice - polls, conversion rates, defect rates, pilot studies - Agresti-Coull delivers Wilson-grade honesty at Wald-grade effort, which is why it has become the teaching default.
| Method | Centre | Coverage behaviour |
|---|---|---|
| Wald | Raw p-hat | Erratic, often far below nominal |
| Agresti-Coull | Adjusted proportion | Near nominal for n >= about 40 |
| Wilson score | Shrunk toward 1/2 | Near nominal, slightly asymmetric |
| Clopper-Pearson | Exact inversion | Guaranteed at least nominal (wide) |
Worked examples
The opening example sets 32.24 % as the headline adjusted proportion, with supporting values 95% CI lower 24.00 %; 95% CI upper 40.47 %; Adjusted sample size 123.84.
Compare the centre with the raw rate you would have computed by habit: the gap between them is the correction doing its work, and it widens exactly as the sample shrinks.
The opening example sets 20.35 % as the headline adjusted proportion, with supporting values 95% CI lower 8.43 %; 95% CI upper 32.26 %; Adjusted sample size 43.84.
Compare the centre with the raw rate you would have computed by habit: the gap between them is the correction doing its work, and it widens exactly as the sample shrinks.
The opening example sets 52.76 % as the headline adjusted proportion, with supporting values 99% CI lower 47.05 %; 99% CI upper 58.48 %; Adjusted sample size 506.64.
Compare the centre with the raw rate you would have computed by habit: the gap between them is the correction doing its work, and it widens exactly as the sample shrinks.
Agresti-Coull vs Wilson
The two intervals are close cousins: both centre near a shrunk proportion and both earned the Brown-Cai-DasGupta endorsement. Wilson is a touch more accurate and naturally asymmetric; Agresti-Coull is symmetric around the adjusted centre and can be computed on a napkin. In the third worked example - 264 of 500 at 99 percent confidence - Agresti-Coull gives 52.76 percent with limits 47.05 to 58.48; Wilson would land within a few tenths of the same place.
Choose Agresti-Coull when you must show your working, teach the method, or sanity-check software output by hand. Choose Wilson when the last decimal of coverage matters or the asymmetry itself is informative. Either way, the era of reporting the raw Wald interval for a single proportion should be over - this page exists to make the better habit effortless.
Teaching and reporting practice
Introductory courses increasingly introduce the plus-four interval as the default for a single proportion, and the reason is visible in the worked examples: every step is auditable. A student can see the padding enter, watch the centre move from 31.67 to 32.24 percent, and recompute the limits with a hand calculator. Methods that cannot be recomputed by their users tend to be misused by them, and the Agresti-Coull interval's transparency is a genuine statistical virtue, not merely a pedagogical one.
In reporting, the convention is to name the method: '95% Agresti-Coull interval' in the methods section, because interval constructions differ enough at small samples that an unnamed interval cannot be checked. If a journal's house style demands Wilson or exact intervals instead, the differences at moderate n are small - but at the n of a pilot study they are not, and the choice belongs in the open.
A final mechanical note: the interval can extend a whisker beyond 0 or 100 percent in extreme cases, since it is a Wald formula around a shifted centre. Truncating the reported limit at the boundary is standard practice and changes nothing about the coverage story.
Teaching and reporting practice
Introductory courses increasingly introduce the plus-four interval as the default for a single proportion, and the reason is visible in the worked examples: every step is auditable. A student can see the padding enter, watch the centre move from 31.67 to 32.24 percent, and recompute the limits with a hand calculator. Methods that cannot be recomputed by their users tend to be misused by them, and the Agresti-Coull interval's transparency is a genuine statistical virtue, not merely a pedagogical one.
In reporting, the convention is to name the method: '95% Agresti-Coull interval' in the methods section, because interval constructions differ enough at small samples that an unnamed interval cannot be checked. If a journal's house style demands Wilson or exact intervals instead, the differences at moderate n are small - but at the n of a pilot study they are not, and the choice belongs in the open.
A final mechanical note: the interval can extend a whisker beyond 0 or 100 percent in extreme cases, since it is a Wald formula around a shifted centre. Truncating the reported limit at the boundary is standard practice and changes nothing about the coverage story.
Teaching and reporting practice
Introductory courses increasingly introduce the plus-four interval as the default for a single proportion, and the reason is visible in the worked examples: every step is auditable. A student can see the padding enter, watch the centre move from 31.67 to 32.24 percent, and recompute the limits with a hand calculator. Methods that cannot be recomputed by their users tend to be misused by them, and the Agresti-Coull interval's transparency is a genuine statistical virtue, not merely a pedagogical one.
FAQs
What adjusted proportion centres the first interval?
32.24 percent. The raw rate is 38/120 = 31.67 percent; padding with 3.84 pseudo-observations (half successes) lifts the centre and the sample size to 123.84.
Why is it called the plus-four interval?
At 95 percent confidence, z = 1.96 and z-squared is about 3.84 - very nearly 4. Adding two successes and two failures to the sample before applying the Wald formula reproduces the method almost exactly.
What is the upper limit of the first interval?
40.47 percent, with a lower limit of 24.00 percent. The interval is symmetric around the adjusted centre of 32.24 percent, unlike the Wilson interval's natural asymmetry.
How does the padding change with confidence level?
The pad is z-squared: about 2.71 at 90 percent (z = 1.645), 3.84 at 95 percent, and 6.63 at 99 percent (z = 2.576). The third worked example pads 500 trials to 506.64 at the 99 percent level.
When does Agresti-Coull still struggle?
At the very edges with tiny samples - zero successes in ten trials, say - where exact or Jeffreys intervals are safer. For n of roughly 40 and up across most proportions, its coverage is dependably near nominal.
Is the adjusted proportion a better estimate of the true rate?
For reporting the rate itself, use the raw sample proportion. The adjusted proportion is a device for centring the interval; quoting it as the estimate would bias reports toward one half.