12 out of 50, Wilson
- Input
- x = 12, n = 50, 95%
- Expected output
- 14,3% a 37,4%
Wald: 12.2% to 35.8%.
confidence interval for a proportion Wilson
In the Confidence interval tab, choose Proportion, type the successes and the total and see the four methods in the same table. Wilson is highlighted as the recommended default, and the interpretation text comes ready to copy.
Wald: 12.2% to 35.8%.
Wald: 1.6% to 58.4%.
Exact: 0% to 21.8%; Wald: 0%.
The four methods almost equal.
z = 2.5758 instead of 1.96.
For a proportion, use n₀ = z² · p · (1 − p) / E². At 95% confidence (z = 1.96), a 5% margin and p = 50%, n₀ = 384.15, so 385 people. If the population is finite, apply n = n₀ / (1 + (n₀ − 1) / N). Then multiply by the design effect, if any, and divide by the expected response rate to learn how many to invite.
It is the classic sign that Wald does not suit your case. The tool clips at 0% and 100% and warns you. Use Wilson or the exact Clopper-Pearson, which always stay between 0 and 100%.
You can: choose "Percentage and total". The tool converts to the nearest whole number of successes (30% of 100 becomes 30) and shows the count used. The exact method needs a whole count.
A common rule is at least 5 successes and 5 failures (n·p ≥ 5 and n·(1 − p) ≥ 5), and some authors ask for 10. The tool shows a warning when Wald is outside that safe zone.
When unsure, use 50%: it is the case that needs the largest sample.
1 means simple random sampling. Cluster surveys use values above 1.
How many of those invited should answer. 100% means everyone answers.
With 385 respondents, the estimate of a proportion around 50% will have a margin of error of ±5 percentage points, at 95% confidence.
z = 1.96 (95%)n₀ = z² · p · (1 − p) / E² = 1.96² · 0.5 · 0.5 / 0.05² = 384.15⌈384.15⌉ = 385| Margin | 90% | 95% | 99% |
|---|---|---|---|
| ±1% | 6,764 | 9,604 | 16,588 |
| ±2% | 1,691 | 2,401 | 4,147 |
| ±3% | 752 | 1,068 | 1,844 |
| ±4% | 423 | 601 | 1,037 |
| ±5% | 271 | 385 | 664 |
| ±7% | 139 | 196 | 339 |
| ±10% | 68 | 97 | 166 |