One-Proportion Z-Test, Step by Step (Worked Example)
By Jude Wallis · Published
A one-proportion z-test takes four steps: state hypotheses about the population proportion $p$, check random, 10%, and large counts using $p_0$, compute $z = (\hat{p} - p_0)/\sqrt{p_0(1-p_0)/n}$, then find the p-value and conclude in context.
AP Statistics: Unit 3 (topics 3.5 Setting Up a Test for a Population Proportion, 3.6 p-Values, 3.7 Carrying Out a Test for a Population Proportion). This walkthrough covers Unit 3 topics 3.5 to 3.7 of the Fall 2026 AP Statistics course, where the one-sample z-test for a population proportion is set up, carried out, and justified.
The four steps of a one-proportion z-test
A one-proportion z-test asks whether a single population proportion equals some claimed value. Every version of the test runs the same four steps, and AP scoring awards points one step at a time.
- State the parameter and the two hypotheses, both about the population proportion.
- Check three conditions: random, 10%, and large counts, using the null value.
- Compute the standardized test statistic and the p-value.
- Conclude by comparing the p-value to and writing a sentence in context.
One example runs through this entire page. A game designer says a redesigned puzzle is a coin flip: half of first-time players solve it. In a random sample of 100 first-time players, 62 solve it. So , the count of successes is 62, and the hypothesized value is (read "p-naught").
Two symbols do most of the work. is the population proportion, the unknown number the claim is about. (read "p-hat") is the sample proportion, the fraction of successes you actually observed. Keeping those two apart is what the rest of this page is about.
Step 1: write hypotheses about p, never about p-hat
Define the parameter in words first, then write the two hypotheses.
Let be the true proportion of all first-time players who solve the redesigned puzzle. Then
The null hypothesis (read "H-naught") sets equal to the claimed value . The alternative states what you are collecting evidence for. Use when the question asks whether the proportion differs, and or when the question names a direction.
Never write . You already know exactly: it is 0.62 in this sample. A hypothesis is a claim about something unknown, and the only unknown here is . Guidance on wording both hypotheses is in null vs alternative hypothesis.
Pick the direction from the question before you look at the data. Choosing because landed above 0.5 is circular reasoning, and it halves your p-value for free. The AP course covers this under setting up a test for a population proportion.
Step 2: check the three conditions with the null value
The one-sample z-test for a population proportion requires three conditions, and the AP course lists them explicitly.
- Random. The data come from a random sample or a randomized experiment.
- 10%. When sampling without replacement, the population is at least 10 times the sample size, so .
- Large counts (normality). The expected counts under the null hypothesis are at least 10: and .
For the puzzle example, the 100 players are a random sample, which settles the first condition. They are fewer than 10% of all first-time players as long as the game has at least 1,000 of them. For large counts, and .
Both counts use , not . A test assumes the null hypothesis is true while it runs, so every quantity inside the test is computed under that assumption. A confidence interval assumes no null value, which is why its version of this condition uses the observed counts and instead. Why 10 successes and 10 failures explains where the threshold comes from.
Show the arithmetic. Writing "large counts met" without the two products is the most common way to lose the condition point.
Step 3: compute the test statistic
The standardized test statistic counts how many standard deviations sits from :
Work the denominator first. It is the standard deviation of the sampling distribution of when is true, and it is the piece students get wrong most often.
For the puzzle example, and
Then
A z of 2.4 says the observed sample proportion sits 2.4 standard deviations above the value the null hypothesis predicts. The proportion z-test calculator reproduces this value if you want to check your work.
Step 4: find the p-value and compare it to alpha
The p-value is the probability, computed assuming is true, of a test statistic at least as extreme as the one you got. The tail you use comes from .
- gives .
- gives .
- gives , which is twice one tail.
The puzzle test is two-sided, so use both tails. From the z-table, , so one tail is and the p-value is .
Now compare to the significance level (the Greek letter alpha), the false alarm rate you fixed in advance. With you have , so reject . For what that number does and does not say, see what does a p-value mean.
Writing the conclusion in context
A conclusion needs three pieces: the comparison, the decision, and the context. Dropping the context is what turns a full-credit answer into a partial one.
Template. Because the p-value of 0.0164 is less than , we reject . There is convincing statistical evidence that the true proportion of first-time players who solve the redesigned puzzle differs from 0.5.
If the p-value had come out above , the wording changes to "we fail to reject " and "there is not convincing statistical evidence that ...". You never accept , and you never say the proportion equals . A large p-value means the data are consistent with , not that is correct.
You can also interpret the p-value itself. If the true solve rate really were 0.5, about 1.64% of random samples of 100 players would produce a sample proportion at least as far from 0.5 as 0.62 is, in either direction.
The mistake that costs the most points: p-hat in the standard error
The single most common error on this test is using in place of inside the square root. The whole procedure runs under the assumption that is true, so the standard deviation of has to be built from the null value: .
Watch what the swap does here. The correct denominator is , giving and a two-sided p-value of 0.0164. The wrong denominator is , giving and a two-sided p-value of about 0.0135.
Both versions reject at , so this time the mistake hides. It does not always, and it does not even push in a fixed direction. Take , , and : the correct statistic is with a one-sided p-value of 0.0154, while the version gives and 0.0202. Near a cutoff, a gap that size flips the decision.
The rule worth memorizing is short: **tests use , intervals use .** An interval has no null value to borrow, so it must estimate the standard error from the sample. That difference is also why a confidence interval and a p-value can disagree in borderline cases. When the claim involves two groups rather than one, switch procedures entirely (one-proportion vs two-proportion z-test).
The full four-step test: 62 solves in 100 players
A game designer says a redesigned puzzle is a coin flip, so half of first-time players solve it. In a random sample of 100 first-time players, 62 solve it. Test at whether the true proportion of first-time players who solve the puzzle differs from 0.5.
State the parameter and hypotheses. Let be the true proportion of all first-time players who solve the redesigned puzzle. and , with .
Check the conditions. The 100 players are a random sample. They are fewer than 10% of all first-time players. Using , the expected counts are and .
Find the sample proportion. .
Find the standard deviation of under . .
Compute the test statistic. .
Find the p-value. The alternative is two-sided, so the p-value is . From the z-table, , so and the p-value is .
Compare and decide. Because , reject .
Write the conclusion in context. There is convincing statistical evidence that the true proportion of first-time players who solve the redesigned puzzle differs from 0.5.
, standard deviation , , two-sided p-value . Because , reject and conclude the solve rate differs from 0.5.
A one-sided test, where only one tail counts
A campus bike-share operator states that 30% of trips end at the main library rack. A student pulls a random sample of 200 trips from the system log and finds 74 that end there. Test at whether the true proportion of all trips ending at the library rack is greater than 0.30.
State the parameter and hypotheses. Let be the true proportion of all bike-share trips that end at the library rack. and , with .
Check the conditions. The 200 trips are a random sample and are fewer than 10% of all trips in the system log. Using , and .
Find the sample proportion. .
Find the standard deviation under . .
Compute the test statistic. .
Find the p-value. The alternative points up, so only the upper tail counts: .
Compare and conclude. Because , reject . There is convincing statistical evidence that more than 30% of bike-share trips end at the library rack.
Check the trap. Using in the denominator would give , , and a p-value of 0.0202: a different statistic from the same data.
, , one-sided p-value . Because , reject .
Frequently asked questions
Do I use p-naught or p-hat in the standard error?
Use for a hypothesis test and for a confidence interval. The test computes everything as if were true, so the standard deviation of is . An interval has no hypothesized value available, so it estimates the standard error as .
What if the large counts condition fails?
If or , the normal approximation to the sampling distribution of is not reliable, so the z-test result cannot be trusted. Say so explicitly rather than reporting a z anyway. On the AP exam, stating that a condition is not met is the correct answer when it is not met.
Can I write the hypotheses using p-hat?
No. is a number you computed from your sample, so there is nothing to hypothesize about it. Hypotheses always concern the population parameter , and a response that tests does not earn the point even if the arithmetic that follows is correct.
How do I decide between a one-sided and a two-sided alternative?
Read the question, not the data. Wording such as "differs from" or "is not equal to" calls for and two tails. Wording such as "more than" or "less than" calls for or and one tail. Deciding after seeing which way fell inflates your false alarm rate.
What does failing to reject actually let me claim?
Only that your data did not give convincing evidence against . It is not evidence that . A small sample can fail to reject a null hypothesis that is genuinely false, which is a Type II error, so a non-significant result is a statement about your evidence rather than about the world.