AP® Statistics · Unit 3 · Topic 3.7

Carrying Out a One-Proportion z-Test

A one-proportion z-test measures how many standard errors your sample proportion sits from the claimed value p0, then uses that distance to find a p-value and decide if the data contradict the claim.

The test statistic uses p0, the null proportion, instead of the sample proportion phat, because the whole point is to ask how surprising phat would be if the null claim were true. The standard error measures spread under an assumption, and the assumption on trial is p0, not whatever you happened to observe. Build the standard error from phat and you would be measuring variability under a world you have no reason to believe in.

Every test for a proportion follows the same four steps. First, state hypotheses: H0: p = p0 against Ha: p < p0, p > p0, or p does not equal p0. Second, check conditions: the sample must be random, the population at least 10 times the sample size, and both n times p0 and n times (1 minus p0) at least 10, so the sampling distribution of phat is close to normal. Third, calculate: find z = (phat - p0) / √(p0(1-p0)/n), then convert z to a p-value using the normal curve. Fourth, conclude in context: compare the p-value to your significance level and state whether the data give convincing evidence against H0, always tying the answer back to the original claim.

This sits right after building confidence intervals for one proportion, and the two share the same standard error formula with one key difference: intervals use phat in the standard error because there is no claimed value to test, while tests use p0 because there is. Next comes comparing two proportions, where the same four-step logic reappears with a pooled proportion replacing p0, since under the null the two groups are assumed to share one common proportion.

Key terms

Null proportion (p0)
The claimed population proportion stated in H0, used to build the standard error for the test.
Test statistic (z)
The number of standard errors phat lies from p0, calculated as (phat - p0) divided by the standard error.
p-value
The probability of getting a sample proportion as extreme or more extreme than observed, assuming H0 is true.
Conditions for inference
Random sampling, a population at least 10 times the sample size, and np0 and n(1-p0) both at least 10.

Watch it explained

  1. How it worksWalk me through the four steps of a significance test for a proportion.
  2. Worked exampleFind the test statistic and p-value when 96 of 150 support a plan and the claim is 0.5.
  3. Worked exampleFind the p-value for testing whether a coin is fair after 62 heads in 100 flips.

Check yourself

Your turn1 of 2
A poll finds 69 of 239 people support a plan. Testing H0: p = 0.58, find the test statistic z.

End of topic.