Turn a count of successes into the sample proportion p̂, with its standard error and confidence interval, and test it against a claimed value.
p̂ = x ÷ n
p-hat (p̂) is the proportion of a sample that has some characteristic: the number of successes divided by the sample size. The hat marks it as an estimate of the unknown population proportion p.
On its own, p̂ is just a percentage. What makes it useful is knowing how far it might be from p. That comes from its standard error, √(p̂(1 − p̂) ÷ n), and the confidence interval built around it.
p̂ is also the starting point of the one-proportion z-test, which asks whether the sample is consistent with a claimed or historical value p₀.
As given in OpenStax Introductory Statistics, sections 8.3 and 9.6. See Sources.
The test uses p₀ in the standard error, because it asks how p̂ would behave if the claim were true.
The survey hints at more cycling, but 25% sits inside the interval and p ≈ 0.14. 120 commuters isn't enough to overturn the council's figure.
| Symbol | Meaning | Cycling example |
|---|---|---|
| x | Number of successes | 37 |
| n | Sample size | 120 |
| p̂ | Sample proportion | 0.3083 |
| q̂ | Sample proportion of failures | 0.6917 |
| p | True population proportion | Unknown |
| p₀ | Claimed value under test | 0.25 |
“p-hat”. The hat (circumflex) is the usual mark for an estimate of a parameter.
Yes, written as a decimal. p̂ = 0.3083 is 30.83%.
Divide by 100. To recover the count, multiply p̂ by n and round: 30.8% of 120 is 37.
The Wilson interval leans towards 50%, which keeps it inside 0–100% and gives more accurate coverage than p̂ ± 1.96 SE.
Two-sided. For a one-sided test in the direction of the data, halve the p-value.
The proportion of failures, 1 − p̂. It appears in the standard error formula as p̂q̂.
Use the A/B test calculator, which runs a two-proportion z-test on two groups.
For a target margin of error, use the sample size calculator. ±5 points at 95% needs about 385 responses.
Related Tools
Required sample size.
Estimate population parameters.
Survey accuracy measure.
Single parameter value.
Sampling variability.
Sample statistic distribution.