| Study Guides
AP · Carrying Out a Hypothesis Test for a Proportion · 14 min read · Updated 2026-05-10

Carrying Out a Hypothesis Test for a Proportion — AP Statistics Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: One-proportion z-test hypothesis testing, including null/alternative hypothesis formulation, random/independence/normality conditions, z-test statistic calculation, p-value calculation, significance decision making, and context-based conclusions.

You should already know: Basics of null and alternative hypotheses, properties of the normal distribution, sampling distributions for sample proportions.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Carrying Out a Hypothesis Test for a Proportion?

Carrying out a hypothesis test for a proportion (often called a one-proportion z-test, or 1-prop z-test for short) is the core inference procedure for testing a claim about an unknown population proportion when you have a single sample of binary categorical data. According to the AP Statistics Course and Exam Description (CED), Unit 6 (Inference for Categorical Data: Proportions) makes up 12-15% of the overall AP exam score, and this topic accounts for roughly half of that unit, or 6-8% of total exam points.

This topic appears on both multiple-choice (MCQ) and free-response (FRQ) sections: it is common to see a full 4-point standalone FRQ on this topic, or 1-2 MCQ questions testing conditions or decision-making. The core goal is to quantify how unlikely your observed sample result is if the null claim about the population proportion is true, allowing you to make a statistically justified conclusion about the original claim. Standard notation conventions used across the exam are: = true unknown population proportion, = hypothesized population proportion from the null, = sample proportion, = sample size.

2. Stating Hypotheses and Checking Inference Conditions

The first step of any hypothesis test for a proportion is defining your parameter of interest and stating your hypotheses, then verifying that the conditions for z inference are satisfied. First, hypotheses are always about the unknown population parameter , not the observed sample . The null hypothesis is always a claim of no effect or no change, so it takes the fixed form , where is the hypothesized value given in the problem. The alternative hypothesis reflects the claim we seek evidence for, and can be one-sided ( or ) or two-sided () depending on the problem wording.

Next, three conditions must be met for the test to be valid:

  1. Random: The sample is drawn randomly from the population of interest, or comes from a randomized experiment.
  2. Independence: Individual observations are independent. When sampling without replacement, this requires the 10% condition: , where is the population size.
  3. Normal/Large Counts: The sampling distribution of under the null hypothesis is approximately normal. For hypothesis tests, this requires and we use , not , here because we assume is true.

Worked Example

A coffee roaster claims that 85% of its coffee beans are free of defect before roasting. A quality control inspector suspects the true defect-free proportion is lower than 85%. The inspector takes a random sample of 120 beans, and 96 are defect-free. Define the parameter, state hypotheses, and check all conditions for inference.

Solution:

  1. Define parameter: Let = the true proportion of all coffee beans from this roaster that are defect-free before roasting.
  2. State hypotheses: , (one-sided, matching the inspector's suspicion of a lower proportion).
  3. Check conditions:
    • Random: The problem explicitly states the sample is random, so this condition is met.
    • Independence: The total population of beans is far larger than , so the 10% condition is satisfied.
    • Normal/Large Counts: , , so the normal condition is met. All conditions are satisfied for inference.

Exam tip: Never skip listing all three conditions on an FRQ—AP readers require you to explicitly check each to earn full credit for the test, even if one seems obvious.

3. Calculating the Test Statistic and P-Value

Once hypotheses are stated and conditions are confirmed, the next step is to calculate how far your observed sample result is from the hypothesized value, in units of standard deviation of the sampling distribution under . This standardized value is called the z-test statistic, and the formula is: Intuition for the formula: The numerator measures the gap between what we observed in our sample () and what we expect to see if the null hypothesis is true (). The denominator is the standard deviation of the sampling distribution of when is true, so it tells us how much natural sampling variation we expect around . We use (not ) in the denominator because we calculate all probabilities under the assumption that is true.

After calculating , we find the p-value: the probability of getting a sample result as extreme or more extreme than the one we observed, if is true. The p-value calculation depends on the alternative hypothesis:

  • One-sided, : p-value = (area left of in the standard normal distribution)
  • One-sided, : p-value = (area right of )
  • Two-sided, : p-value = (double the tail area, since extreme results can be in either direction)

Worked Example

Using the coffee bean defect problem above: , , , 96 defect-free beans. Calculate the z-test statistic and p-value.

Solution:

  1. Calculate sample proportion: .
  2. Plug into the z formula:
  3. Find p-value: For , p-value = .

Exam tip: On the AP exam, you do not need to show manual p-value calculation from a z-table if you correctly report the p-value from a calculator—just make sure you show the z calculation to earn the process point.

4. Making a Decision and Writing a Conclusion in Context

The final step of a hypothesis test is comparing your p-value to the pre-specified significance level (alpha), making a decision, and writing a conclusion that answers the original question in context. The significance level is the threshold for how unlikely our result needs to be to reject ; if no is given, the standard default is .

The decision rule is straightforward:

  • If p-value : Reject . We have convincing statistical evidence for the alternative hypothesis.
  • If p-value : Fail to reject . We do not have convincing statistical evidence for the alternative hypothesis.

The most important rule for conclusions is that you never accept the null hypothesis. We cannot prove is true—we only lack enough evidence to reject it. For example, a high p-value could mean the null is true, or it could mean we had a sample size too small to detect a real difference. AP exam readers strictly penalize incorrect wording for non-rejections.

Worked Example

Using the coffee bean problem: p-value = 0.0630, . State your decision and write a full conclusion in context.

Solution:

  1. Compare p-value to alpha: , so we fail to reject the null hypothesis .
  2. Conclusion in context: At the significance level, there is not convincing statistical evidence that the true proportion of defect-free beans from this roaster is lower than the 85% claimed by the roaster.

Exam tip: Always tie your conclusion back to the original problem's context—a conclusion that only says "reject H0" will not earn the conclusion point on an FRQ.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Using instead of when checking the Large Counts condition for a hypothesis test. Why: Students confuse hypothesis tests with confidence intervals, which use to check normality. Correct move: Always use the hypothesized proportion when checking Large Counts for a 1-prop z-test; only use for confidence intervals.
  • Wrong move: Stating hypotheses in terms of instead of . Why: Students mix up the known sample statistic with the unknown population parameter we are actually testing. Correct move: Always write hypotheses about the population proportion , never the observed sample proportion .
  • Wrong move: Claiming that a p-value greater than proves the null hypothesis is true. Why: Students interpret failing to reject as confirmation of the null, when we can only rule out the null, not confirm it. Correct move: Always use "fail to reject " and state "we do not have convincing evidence for the alternative", never "we accept " or "the null is true".
  • Wrong move: Using in the denominator of the z-test statistic. Why: Students again confuse hypothesis tests with confidence intervals, which use for the standard error. Correct move: For a 1-prop z-test, always use in the denominator's standard deviation calculation, because we assume is true when calculating the test statistic.
  • Wrong move: Forgetting to check the 10% condition for independence when sampling without replacement. Why: Students often only remember the Large Counts condition and skip the independence check. Correct move: Always check all three conditions (Random, Independent, Normal) in order on FRQs to earn full credit.
  • Wrong move: Calculating a one-sided p-value for a two-sided alternative hypothesis. Why: Students forget that extreme results can occur in either tail for two-sided tests. Correct move: Always double the one-tailed p-value when working with a two-sided alternative hypothesis.

6. Practice Questions (AP Statistics Style)

Question 1 (Multiple Choice)

A college claims that 40% of its students participate in at least one varsity sport. An administrator believes the true proportion is different from 40%. A random sample of 200 students finds 94 participate in varsity sports. What is the value of the correct z-test statistic for this test? A) 1.52 B) 1.81 C) 2.06 D) 2.45

Worked Solution: First, identify the values: , , . The correct z-test formula for a hypothesis test uses in the denominator: . Plugging in gives , which rounds to 2.06. The correct answer is C.


Question 2 (Free Response)

A toothpaste company claims that 75% of dentists recommend their brand of toothpaste. A consumer group suspects the true proportion of dentists who recommend the brand is lower than 75%. The group takes a random sample of 80 dentists, and 54 of the sampled dentists recommend the brand. Use a significance level of . (a) Define the parameter of interest and state the appropriate null and alternative hypotheses. (b) Check all conditions for inference and confirm if the test is appropriate. (c) Calculate the test statistic and p-value, then state your conclusion in context.

Worked Solution: (a) Let = the true proportion of all dentists who recommend this brand of toothpaste. Hypotheses: , . (b) Conditions: 1) Random: The problem states the sample is random, so this is met. 2) Independence: The population of dentists is far larger than , so the 10% condition is met. 3) Large Counts: , , so normality is satisfied. All conditions are met, and the test is appropriate. (c) . Test statistic: . P-value: . Since , we fail to reject . At the 0.05 significance level, there is not convincing statistical evidence that the true proportion of dentists who recommend this toothpaste is lower than the 75% claimed by the company.


Question 3 (Application / Real-World Style)

A plant biologist knows that 20% of wild sunflowers in a region produce more than 100 seeds per head. After a wildfire, the biologist suspects that the proportion of sunflowers producing more than 100 seeds is higher than the baseline 20%, because reduced competition can increase seed production. A random sample of 75 post-wildfire sunflowers finds 22 produce more than 100 seeds per head. Carry out a full hypothesis test at the significance level, and interpret your result in context.

Worked Solution:

  1. Parameter: Let = the true proportion of post-wildfire sunflowers in this region that produce more than 100 seeds per head. Hypotheses: , , .
  2. Conditions: Random sample is given; the population of post-wildfire sunflowers is more than ; , , so all conditions are met.
  3. . Test statistic: .
  4. P-value = . Since , we reject . Interpretation: At the 0.10 significance level, there is convincing evidence that the proportion of sunflowers producing more than 100 seeds per head is higher after the wildfire than the baseline 20%, supporting the hypothesis that reduced competition after wildfire increases seed production.

7. Quick Reference Cheatsheet

Category Formula Notes
Null Hypothesis Always includes an equals sign for a 1-prop test
1-Sided Alternative or Use when problem claims proportion is higher/lower than hypothesized
2-Sided Alternative Use when problem claims proportion is different from hypothesized
10% Condition Required for independence when sampling without replacement
Large Counts Condition Use , not , for hypothesis tests
Z-Test Statistic in denominator because we assume is true
2-Sided P-Value $2 \times P(Z > z
Decision Rule Reject if p-value Use if no significance level is given

8. What's Next

Carrying out a one-proportion hypothesis test is the foundation for all subsequent inference on proportions in AP Statistics. Immediately after mastering this topic, you will move on to comparing two proportions from independent samples, which extends the same logic of hypothesis testing to test for a difference between two population proportions. Without a solid understanding of the conditions, test statistic calculation, and conclusion-writing for one-proportion tests, you will struggle to generalize these skills to the two-proportion setting, which is also a common FRQ topic on the AP exam. This topic also builds on your earlier knowledge of sampling distributions and confidence intervals, and feeds into the broader AP Statistics goal of making justified conclusions from data, which is assessed on nearly every section of the exam.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →