Sampling Distribution of the Sample Proportion Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the population proportion p, the sample size n and a value of the sample proportion to get the mean and standard error of p̂, its z-score and the probabilities below and above that value.
Result
P(p̂ < value)
Mean of p̂
- Standard error of p̂
- z-score of the value
- P(p̂ > value)
- n × p (expected successes)
- n × (1 − p) (expected failures)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Population proportion (p, 0 to 1): enter a number from 0 to 1.
- Sample size (n): enter 1 or more.
- Value of the sample proportion (p̂, 0 to 1): enter a number from 0 to 1.
- Read the result: P(p̂ < value); the panel also shows Mean of p̂, Standard error of p̂, z-score of the value, P(p̂ > value), n × p (expected successes) and n × (1 − p) (expected failures).
How this calculator works
The sample proportion p̂ = x ÷ n of a random sample has mean p and standard error √(p(1 − p) ÷ n). For a large enough sample its distribution is close to normal (central limit theorem), so z = (p̂ − p) ÷ SE and P(p̂ < value) = Φ(z).
Textbooks accept the normal approximation when both n × p and n × (1 − p) are at least 10 (some use 5); the two counts are shown so you can check. Sampling without replacement from a small population also needs the finite population correction, not applied here.
The formula
| Symbol | Meaning |
|---|---|
| Population proportion (p, 0 to 1) | |
| Sample size | |
| Value of the sample proportion (p̂, 0 to 1) | |
| Standard error of p̂ | |
| z-score of the value | |
| P(p̂ < value) | |
normcdf(x, m, s) | the probability that a Gaussian variable with mean m and standard deviation s is at most x (mean zero and standard deviation one without m and s). |
Worked example
| Population proportion (p, 0 to 1) | 0.4 |
|---|---|
| Sample size (n) | 100 |
| Value of the sample proportion (p̂, 0 to 1) | 0.45 |
| Standard error of p̂ | 0.049 |
|---|---|
| z-score of the value | 1.0206 |
| P(p̂ > value) | 0.1537 |
| n × p (expected successes) | 40 |
| n × (1 − p) (expected failures) | 60 |
P(p̂ < value) 0.8463
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
If p = 0.4 and n = 100, what is the standard error of p̂?
√(0.4 × 0.6 ÷ 100) = 0.049. The chance that p̂ is below 0.45 is about 0.846 (z = 1.0206).
Why does the standard error shrink as n grows?
Because n is under the square root in the denominator: four times the sample size halves the standard error.