Skip to content
AP Statistics · Inference for Categorical Data: Proportions

One proportion z test

One proportion z test appears in 26 reviewed AP Statistics questions and sits in Inference for Categorical Data: Proportions. Below are worked examples showing exactly how the exam tests it, with the answer marked and every distractor explained.

How One proportion z test is tested

Example 1Medium
Which of the following conditions must be verified before performing a one-proportion z-test?
  1. AThe sample proportion equals the hypothesized proportion and the sample is large
  2. BThe data are collected from a random sample and both np0 and n(1 - p0) are at least 10Correct
  3. CThe population standard deviation is known and the sample size is at least 30
  4. DThe population is normally distributed and the sample is collected with replacement

Why B is right

The conditions for a one-proportion z-test require: (1) a random sample or random assignment, (2) the Large Counts condition that np0 >= 10 and n(1 - p0) >= 10, and (3) the 10% condition if sampling without replacement. Choice A captures the two most essential conditions.
Why the other 3 choices miss
A
Incorrect because the sample proportion does not need to equal the hypothesized proportion; in fact, the test is designed to assess whether they differ significantly.
C
Incorrect because one-proportion z-tests do not involve population standard deviations (those pertain to z-tests for means), and the sample size threshold of 30 is a rule of thumb for the Central Limit Theorem with means, not proportions.
D
Incorrect because the test does not require the population to be normally distributed; the sampling distribution of p-hat is approximately normal when the Large Counts condition is met. Sampling with replacement is not a standard requirement.
Example 2Easier
A town library's director believes that more than 40% of its patrons now check out books at the self-service kiosks. To investigate, she selects a random sample of 200 patrons and finds that 92 of them, a sample proportion of 0.46, used the kiosks. She tests H0: p = 0.40 against Ha: p > 0.40, where p is the proportion of all the library's patrons who use the kiosks, and gets a p-value of about 0.042. Which of the following is the correct interpretation of this p-value?
  1. AIf p = 0.40, a random sample of 200 patrons has about a 0.042 chance of a sample proportion of 0.46 or more.Correct
  2. BThere is about a 0.042 probability that exactly 40% of all of the library's patrons use the self-checkout kiosks.
  3. CIf more than 40% of all patrons use self-checkout, the probability of getting a sample proportion of 0.46 is about 0.042.
  4. DThe probability of rejecting the null hypothesis that 40% of patrons use self-checkout when it is actually true is about 0.042.

Why A is right

A p-value is the probability, computed assuming the null hypothesis is true, of getting a sample statistic at least as extreme as the one observed, in the direction of the alternative. Here the null value is p = 0.40, the standard deviation of p-hat is sqrt(0.40*0.60/200) = 0.0346, so z = (0.46 - 0.40)/0.0346 = 1.73 and P(Z >= 1.73) = 0.042. Choice A states all three required parts: the null (p = 0.40) is assumed true, the result is "0.46 or more," and the sample size is 200.
Why the other 3 choices miss
B
Treats the p-value as the probability that the null hypothesis is true. A p-value is computed by assuming H0 is true, so it cannot be the probability that H0 is true.
C
Assumes the alternative instead of the null and leaves out the 'or more extreme' tail. The p-value is calculated under p = 0.40 and covers every sample proportion of 0.46 or higher, not only 0.46 itself.
D
Mixes up the p-value with the significance level (the Type I error probability), alpha. Alpha is chosen before the data are collected. The p-value comes from the observed sample.
Example 3Medium
A principal at a high school with 1,200 students believes that fewer than 40% of the students eat breakfast at home on school days. She selects a random sample of 30 students, and 9 of them (p-hat = 0.30) say they eat breakfast at home on school days. She plans to test H0: p = 0.40 versus Ha: p < 0.40 and find the p-value from a normal model. Which statement correctly assesses the conditions for this test?
  1. AThe 10% condition is not met because 30 students is less than 10% of the 1,200 students, so the responses are not independent.
  2. BAll conditions are met: the sample is random, 30 is under 10% of 1,200, and expected counts 12 and 18 are at least 10.Correct
  3. CThe Random condition is not met because a sample of only 30 students is too small to represent a school of 1,200 students.
  4. DThe Large Counts condition is not met because only 9 students in the sample said yes, which is fewer than 10, so the normal-based p-value is not reliable.

Why B is right

For a significance test about a proportion, the Large Counts condition is checked with the null value p0 = 0.40, because the p-value is computed assuming H0 is true: 30(0.40) = 12 and 30(0.60) = 18, and both are at least 10. The sample is random, and n = 30 is less than 10% of the population (0.10 x 1,200 = 120), so treating the observations as independent is reasonable. Because all conditions are met, the normal-based p-value can be trusted: SE = sqrt(0.40(0.60)/30) ≈ 0.0894, z = (0.30 - 0.40)/0.0894 ≈ -1.12, and the p-value ≈ 0.13.
Why the other 3 choices miss
A
Gets the 10% condition backwards. The sample must be no more than 10% of the population, and 30 < 120, so the condition is satisfied, not violated.
C
Mixes up sample size with random selection. The Random condition is about how the sample was chosen. A random sample of 30 meets it no matter how large the school is.
D
Uses the observed count (n times p-hat = 9) to check Large Counts. For a test, the check uses the hypothesized p0, which gives expected counts 12 and 18, so the condition is met.

Studied alongside

Other concepts from Inference for Categorical Data: Proportions.