Wilson Score Interval
A confidence interval for a binomial proportion, obtained by inverting a score test. Assumes independent Bernoulli observations with a common success probability and n > 0; this is the version without continuity correction.
Formula
Variables
Example
18 successes in 20 trials give p̂ = 0.90. With z = 1.96, the Wilson interval is approximately [0.6990, 0.9721], or 69.90%–97.21%.
How it works
Eighteen successes out of twenty gives a sample rate of 90%, but a small sample does not pin down the underlying rate precisely. The Wilson interval expresses sampling uncertainty by inverting a binomial score test. Its centre is adjusted away from the raw observed proportion, helping it behave better near zero and one than a simple symmetric Wald interval.
When to use it
Estimate uncertainty in binary success rates from independent observations with a common success probability, such as a survey yes/no response or a test pass rate. It does not correct biased sampling, correlated reviews or five-star ratings treated as continuous scores.
Worked example, step by step
Step 1: Observe x = 18 successes in n = 20 independent trials. The sample proportion is p̂ = 18/20 = 0.90.
Step 2: For an approximate 95% two-sided interval, use z = 1.96 and z² = 3.8416.
Step 3: Denominator = 1 + 3.8416/20 = 1.19208.
Step 4: Adjusted centre = (0.90 + 3.8416/40)/1.19208 ≈ 0.835548.
Step 5: Half-width = 1.96 × √(0.90 × 0.10/20 + 3.8416/(4 × 20²))/1.19208 ≈ 0.136586.
Step 6: Bounds = 0.835548 ± 0.136586 ≈ [0.698962, 0.972134].
Final answer: approximately 69.90% to 97.21%.
Interpretation: the method has approximately the stated coverage over repeated samples. This does not mean there is a 95% frequentist probability that the fixed parameter lies inside this particular interval.
Common mistakes to avoid
- Using a mean-rating interval for data that are not binary.
- Reading a confidence level as a posterior probability for this one interval.
- Forgetting to divide both the centre and the margin by 1 + z²/n.
- Assuming the interval repairs sampling bias or dependent observations.
Did You Know?
Unlike the simple Wald interval, Wilson’s interval stays within the probability bounds even for samples with all successes or all failures.
Share this formula
More in Statistics & Probability
View allArithmetic Mean
BasicThe average of a data set.
Median
BasicThe middle value separating the higher and lower halves.
Variance
IntermediateAverage squared deviation from the mean.
Standard Deviation
IntermediateSquare root of the variance; typical spread.
Z-Score
IntermediateNumber of standard deviations a value is from the mean.
Bayes' Theorem
IntermediateUpdates a probability given new evidence.