One Proportion Z Test Calculator
Use this one proportion z test calculator to test a population proportion using summary or raw binary data and find the z statistic, p-value, and critical value with a step-by-step solution.
How to Use the One Proportion Z Test Calculator
- Select the Alternative Hypothesis: ≠ p₀ (two-tailed), > p₀ (right-tailed), or < p₀ (left-tailed).
- Choose Summary Data and enter the number of successes (x), sample size (n), and the hypothesized proportion (p₀).
- Or choose Raw Data and enter a list of 0s and 1s.
- Set the Significance Level (α), then click Calculate.
What is a One Proportion Z Test?
A one proportion z-test is a hypothesis test used to determine whether a single population proportion (p) is significantly different from a specified value (p₀). It uses the standard normal (Z) distribution as its reference distribution.
When to Use the One Sample Proportion Test?
Use this test when:
- You have a single sample of binary data (e.g., success/failure, yes/no).
- You want to compare the observed proportion to a known or hypothesized proportion.
- The sample size is large enough so that np₀ ≥ 5 and n(1 − p₀) ≥ 5 (so the normal approximation is valid).
One Proportion Z Test Formula
The test statistic is calculated as:
Where:
- p̂ = sample proportion (x/n)
- p₀ = hypothesized population proportion
- n = sample size
One Proportion Z Test Example
Suppose a company claims that 60% of customers prefer their product. You survey 100 customers and find that 55 prefer it. Test at α = 0.05.
- p̂ = 55/100 = 0.55
- SE = √(0.60 × 0.40 / 100) = 0.0490
- z = (0.55 − 0.60) / 0.0490 = −1.0206
- p-value (two-tailed) = 2 × P(Z < −1.0206) ≈ 0.3074
- Since 0.3074 > 0.05, we fail to reject H₀.
Frequently Asked Questions
What's the difference between one-tailed and two-tailed tests?
A two-tailed test checks if p ≠ p₀ (different in any direction). A right-tailed test checks if p > p₀ and a left-tailed test checks if p < p₀. Use one-tailed tests only when you have a specific directional hypothesis before collecting data.
What if the normal approximation is not valid?
If np₀ < 5 or n(1 − p₀) < 5, you should use the exact binomial test instead.