Point Estimate Calculator: p-hat, Laplace, Jeffreys and Wilson Estimates
By FindMySum · Last reviewed
A point estimate is a single best guess of a population value from a sample: the share of all voters who support a candidate, the completion rate of a task in a usability test, or the average height of a population. This calculator gives four point estimates of a proportion, picks the best one for your data, and builds three kinds of confidence interval around it. It also handles the mean of a sample from its average, standard deviation and size. The opening example is 18 successes in 30 trials at 95% confidence.
The sample proportion, p-hat
The simplest estimate of a proportion is the fraction of successes in the sample:
p̂ = x ÷ n
With 18 successes in 30 trials, p̂ = 0.600. This is the maximum likelihood estimate (MLE): of all possible values of p, 0.6 makes the observed result most likely. It is also unbiased, so over many samples it averages out to the true value.
When x ÷ n misleads
The trouble comes with small samples and extreme results. If five people try a task and all five succeed, p̂ = 1: the estimate says the task never fails. Nobody really believes that after only five tries. Similarly, 0 failures in 20 inspections does not prove a defect rate of zero.
Several adjusted estimates pull the proportion slightly towards one half. They all have the same form, with a constant c:
estimate = (x + c²/2) ÷ (n + c²)
| Method | c | Formula | 18 of 30 |
|---|---|---|---|
| Maximum likelihood | 0 | x ÷ n | 0.6000 |
| Jeffreys | 1 | (x + ½) ÷ (n + 1) | 0.5968 |
| Laplace | √2 | (x + 1) ÷ (n + 2) | 0.5938 |
| Wilson | z | (x + z²/2) ÷ (n + z²) | 0.5886 |
The Wilson estimate uses the z value of the confidence level (1.96 at 95%) and is the centre of the Wilson interval. With a large sample the four estimates are almost identical; with a small one they can differ a lot. For five out of five, Laplace gives 6 ÷ 7 = 0.857 and Jeffreys 5.5 ÷ 6 = 0.917.
Choosing the best estimate
James Lewis and Jeff Sauro compared these estimators by simulation for small-sample usability studies (Journal of Usability Studies, 2006). Their recommendations, as point-estimate calculators usually apply them, depend on the observed proportion:
- p̂ ≤ 0.5: use the Wilson estimate;
- 0.5 < p̂ < 0.9: use the plain proportion (MLE);
- 0.9 ≤ p̂ < 1: use the smaller of the Laplace and Jeffreys estimates;
- p̂ = 1: use the Laplace estimate.
For the default example p̂ = 0.6 falls in the middle band, so the best estimate is simply 0.600. The calculator shows which rule applied and lists all four estimates, so you can report a different one if your field has its own convention.
Confidence intervals for a proportion
A point estimate says nothing about precision. A confidence interval does. The calculator gives three:
Wald: p̂ ± z × √(p̂(1 − p̂) ÷ n). This is the textbook formula and the one behind the "margin of error" in opinion polls. For the example, 0.6 ± 1.96 × √(0.6 × 0.4 ÷ 30) = 0.6 ± 0.175, so 0.425 to 0.775. It is easy, but Brown, Cai and DasGupta (2001) showed that its actual coverage is often far below the stated 95%, erratically so, and it collapses to a zero-width interval when x is 0 or n.
Wilson score: [p̂ + z²/2n ± z√(p̂(1 − p̂)/n + z²/4n²)] ÷ (1 + z²/n). It comes from inverting the score test, stays between 0 and 1, and has coverage close to the nominal level even for small samples. For the example it is 0.423 to 0.754, and it is the calculator's recommended interval.
Agresti–Coull: add z²/2 successes and z²/2 failures, then use the Wald formula on the adjusted counts: ñ = n + z², p̃ = (x + z²/2) ÷ ñ, p̃ ± z√(p̃(1 − p̃)/ñ). At 95% that is close to "add two successes and two failures". It gives 0.423 to 0.754 for the example, almost identical to Wilson, and is slightly more conservative at the extremes.
Raising the confidence level widens every interval: the z value is 1.645 at 90%, 1.960 at 95% and 2.576 at 99%.
Point estimate of a mean
For a numerical measurement, the sample mean x̄ is the point estimate of the population mean. Its precision is the standard error:
SE = s ÷ √n
where s is the sample standard deviation. Because s is itself estimated, the confidence interval uses Student's t distribution with n − 1 degrees of freedom instead of the normal distribution:
x̄ ± t × SE
For a sample of 25 with mean 50 and standard deviation 8, SE = 8 ÷ 5 = 1.6, t at 95% with 24 degrees of freedom is 2.064, and the interval is 50 ± 3.30, or 46.70 to 53.30. With larger samples t approaches z and the interval narrows in proportion to 1 ÷ √n.
Assumptions
All these methods assume the observations are independent and come from a random sample of the population you care about. They do not fix a biased sample: a survey of only your most loyal customers will give a precise but wrong estimate of all customers. For proportions in a small, fully known population, a finite-population correction narrows the interval; for complex surveys with weights or clusters, use survey software. The t interval for a mean is robust to moderate non-normality, but very skewed data or outliers in small samples call for a transformation or a bootstrap.
More questions
Is a point estimate the same as a statistic?
A point estimate is a statistic used for a particular purpose: estimating a population parameter. The sample mean, the sample proportion and the sample standard deviation are statistics; when you use them as your best single guess of the population's mean, proportion or standard deviation, they are point estimates.
What sample size do I need for a given margin of error?
For a proportion, n = z² × p(1 − p) ÷ E², where E is the margin of error you want. With no prior idea of p, use 0.5, which gives the largest n: for ±5 percentage points at 95% confidence, n = 1.96² × 0.25 ÷ 0.05² ≈ 385. Halving the margin of error needs four times the sample.
Can a confidence interval for a proportion go below zero?
The Wald interval can, because it is symmetric around p̂: 1 success in 20 gives 0.05 ± 0.096, a lower limit of −0.046. That impossible value is a sign the method is unsuitable. The Wilson interval always stays between 0 and 1, which is one reason it is preferred; this calculator clips Wald limits at 0 and 1 and shows Wilson as the recommended interval.
What is an unbiased estimator?
One whose average over many samples equals the true value. The sample proportion x ÷ n is unbiased for p. Laplace, Jeffreys and Wilson estimates are slightly biased towards 0.5, but in small samples they are usually closer to the true value, which is a better trade-off when you have only a handful of observations.
How is the Jeffreys estimate related to Bayesian statistics?
It is the posterior mean of p when you start from the Jeffreys prior, a Beta(½, ½) distribution, and observe x successes in n trials: (x + ½) ÷ (n + 1). The Laplace estimate is the posterior mean from a uniform Beta(1, 1) prior. Both are ways of encoding mild prior uncertainty.
Sources
- J. R. Lewis and J. Sauro, When 100% really isn't 100%: improving the accuracy of small-sample estimates of completion rates, Journal of Usability Studies 1(3), 2006
- L. D. Brown, T. T. Cai and A. DasGupta, Interval Estimation for a Binomial Proportion, Statistical Science 16(2), 2001
- A. Agresti and B. A. Coull, Approximate is better than 'exact' for interval estimation of binomial proportions, The American Statistician 52(2), 1998
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.2.2.1 Confidence limits for the mean
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.