By the end of this lesson, you should be able to
- Explain the binomial sampling model for an observed proportion.
- Compute and interpret a Wilson interval.
- Identify the weaknesses of the simple Wald interval.
A poll finds four supporters among twenty respondents. Our observed proportion is .
Can we conclude that twenty percent of the population supports the proposal? Only if the sample design permits that inference. And even then, twenty observations carry substantial random uncertainty.
The deceptively simple interval
A textbook may suggest the approximate interval
This Wald interval is memorable and notoriously unreliable in small samples or when the true proportion lies near zero or one. In particular, if none of twenty trials succeeds, it returns : a ludicrous assertion of certainty.
The Wilson score alternative
A commonly preferable approximate interval is the Wilson score interval. With , sample size , and observed proportion , define
The interval is . For four successes in twenty independent binomial trials, a 95% Wilson interval is approximately [0.081, 0.416].
Notice how wide that is. Twenty observations leave open a considerable range of possible population proportions.
At zero observed successes, Wilson still produces a positive upper bound instead of falsely declaring the event impossible.
The assumptions are not an optional footnote
A binomial proportion requires independent Bernoulli observations with a common success probability under the model. In a clustered or weighted survey, its variance will often require a design-based calculation.
No interval, Wilson or otherwise, can fix systematic response bias. If the twenty respondents were gathered outside a political rally, the method’s mathematical sophistication does not confer representativeness.
Reproduce it
R’s prop.test performs a score-based procedure with its own implementation details, including a continuity-correction option. Software procedures need to be identified precisely rather than indiscriminately called “the 95% interval.”
prop.test(4, 20, correct = FALSE)
Compare that answer with the Wilson calculation above.
Check your understanding
- Find the sample proportion for 18 successes in 50 trials.
- Why should a zero-success sample not necessarily have a zero-width interval?
- Does choosing a different interval estimator eliminate selection bias?
Worked responses
-
0.36.
-
An unobserved event can still have a positive underlying probability.
-
No. The sampling mechanism remains a distinct issue.
Further reading: R prop.test documentation.
Wilson’s interval comes from inverting a test
For an independent binomial sample with observed proportion , a score test of a candidate uses . Retain candidate parameters satisfying
Multiplying out gives . Solving this quadratic produces the Wilson endpoints already displayed. The denominator contains the candidate under the test, rather than replacing it immediately by . This inversion explains why Wilson avoids the zero-width failure of the Wald interval when all outcomes agree.
For zero successes in ten trials and , Wilson’s lower endpoint is zero and its upper endpoint is . The sample proportion is zero, yet a wide range of positive risks remains compatible with this small sample under the procedure. If every trial succeeds, symmetry gives a lower endpoint near and upper endpoint one.
No nonrandomized binomial interval has exact nominal coverage at every parameter because its sample space is discrete. Wilson is generally better behaved than the elementary Wald interval, not universally exact. The Clopper–Pearson construction instead inverts binomial tail probabilities and is conservative in the usual coverage sense. Choose the method for its properties, and label it rather than simply calling every range a “95% interval.”
Additional practice
- Calculate the Wilson center for , , .
- Explain the Wald failure for .
- Does using Wilson repair biased recruitment?
Worked additional solutions
- , shifted toward one-half compared with the raw proportion.
- Its estimated standard error is zero, producing a misleading zero-width interval despite a finite sample.
- No. Interval calibration presumes an appropriate sampling model. It does not supply representativeness or independence absent from the design.
Keep your place
Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.
Progress is not saved unless you choose to mark the lesson complete.
Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.