AP Statistics · Lesson 22 of 30
StatsIQ · AP Statistics

Lesson 22: Hypothesis Tests for One Proportion

Unit 3 · Phase 4 · Statistical Practice:** 3 — Analyze Data; 4 — Interpret Results
Topics:** The one-sample z-test for a proportion; hypotheses `H0: p = p0` vs. `Ha: p <, >, or ≠ p0`; conditions (Random, 10%, Large Counts using p0); the test statistic; finding the p-value from z; decision at α and conclusion in context; the full PANIC sequence.
Calculator:** TI-84 `STAT → TESTS → 1-PropZTest` — entering p0, x, n, choosing the tail, and reading z and p.
Objectives:
  • Set up the correct null and alternative hypotheses and check all three conditions for a one-proportion z-test.
  • Compute the test statistic using the **null value p0** in the standard error, and find the p-value with `normalcdf` or `1-PropZTest`.
  • Make a decision at a stated significance level and write a complete conclusion in context.

(a) Warm-Up

A local news station claims that 60% of teens in your town get their news online rather than from TV or print. You're skeptical — it feels higher than that to you. So you survey a random sample of 350 teens, and 230 of them say they get their news online. That's about 65.7%.

Here's the question that makes or breaks AP Statistics: Is 65.7% convincingly higher than 60%, or could a sample this far off easily happen by random chance even if the true proportion really is 60%?

In Lesson 21 you learned the logic of hypothesis testing — null vs. alternative, p-values, significance levels. Now we make it concrete for proportions. You'll learn to turn "I'm skeptical" into a number, the test statistic, and then into a p-value that measures how surprising your data would be if the claim were true.

One warning before we start, because it's the #1 mistake on this entire topic: the standard error for a test uses the claimed value p0, not your sample . Keep that in your back pocket. We'll hammer it home.


(b) Core Concept

The one-sample z-test for a proportion

We use a one-sample z-test for a proportion when we want to test a claim about a single population proportion p. The data is one categorical variable (success/failure), summarized by a count of successes x out of a sample size n, giving the sample proportion p̂ = x/n.

The whole procedure follows PANIC: Parameter, Assumptions, Name the procedure, Interval/test, Conclusion in context. Let's run the warm-up scenario through it.

P — Parameter and hypotheses

Define the parameter in words: let p = the true proportion of all teens in the town who get their news online.

State the hypotheses:

The claimed value, 0.60, is called the null value and we label it p0. The direction of Ha comes from the question, not from the data. Here we suspected "higher," so it's a one-sided (right-tailed) test.

A — Assumptions (conditions)

Three conditions, every time:

  1. Random. The data must come from a random sample (or randomized experiment). Here: "a random sample of 350 teens." ✓
  2. 10% condition (independence). The sample must be no more than 10% of the population: n ≤ 0.10N. There are surely more than 350 × 10 = 3,500 teens in the town, so ✓.
  3. Large Counts. This is where the test differs from the interval. Use p0, the null value, to check that the expected numbers of successes and failures are both at least 10:

- np0 = 350(0.60) = 210 ≥ 10

- n(1 − p0) = 350(0.40) = 140 ≥ 10

Because we assume H0 is true while testing, we use p0 here — not .

N — Name the procedure

One-sample z-test for a proportion, Ha: p > 0.60, α = 0.05.

I — Inference: the test statistic and p-value

The test statistic measures how many standard errors sits from the claimed p0:

z = (p̂ − p0) / sqrt( p0(1 − p0) / n )

The denominator is the standard error under the null. Notice the formula uses p0 inside the square root — because we build the sampling distribution assuming the null is true. This is the crux of the lesson:

TEST   (this lesson):   SE = sqrt( p0(1 − p0) / n )    ← uses the CLAIMED p0
INTERVAL (Lesson 20):   SE = sqrt( p̂(1 − p̂) / n )     ← uses the SAMPLE p̂

Plug in p̂ = 230/350 = 0.65714, p0 = 0.60, n = 350:

SE = sqrt( 0.60 × 0.40 / 350 ) = sqrt( 0.24 / 350 ) = sqrt(0.00068571) = 0.026186

z  = (0.65714 − 0.60) / 0.026186 = 0.05714 / 0.026186 = 2.182

Now the p-value: the probability of getting a z this extreme or more so, in the direction of Ha, if H0 were true. Since Ha: p > 0.60 is right-tailed, we want the area to the right of z = 2.182:

TI-84:  normalcdf(2.182, 1E99, 0, 1) = 0.0145

So p-value ≈ 0.0146. (Reading off the standard normal, the area above z = 2.18 is about 0.0146 — a small probability.)

Confirming with 1-PropZTest

TI-84: STAT → TESTS → 1-PropZTest
Input:  p0 = 0.60
        x   = 230
        n   = 350
        prop:  > p0     (right tail, matches Ha)
        Calculate
Output: z  = 2.1822
        p  = 0.0145
        p̂ = 0.6571429

The calculator's z = 2.182 and p = 0.0145 match our by-hand work exactly. (Note: x must be a whole number. If a problem gives you a percentage, compute x = p̂ × n and round to the nearest integer before entering it.)

C — Conclusion in context

Compare the p-value to α = 0.05:

Because the p-value ≈ 0.0146 < α = 0.05, we reject H0. There is convincing statistical evidence that the true proportion of teens in the town who get their news online is greater than 0.60.

A few rules for the conclusion that AP readers insist on:

That's the entire procedure. Every one-proportion test you'll ever do is this same five-step PANIC march. Change the numbers, change the tail, but the skeleton never moves.


(c) Worked Examples

Example 1 — A full one-sided test (medium)

Problem. A vaccine manufacturer claims that at most 45% of a certain age group will accept a new flu shot. A public-health researcher believes the acceptance rate is actually higher. In a random sample of 150 adults from this group, 78 say they would accept the shot. Test at α = 0.05.

P. Let p = the true proportion of adults in this age group who would accept the shot.

H0: p = 0.45 vs. Ha: p > 0.45. (One-sided, right tail — the researcher suspects higher.)

A. Random: random sample ✓. 10%: 150 is surely ≤ 10% of all adults in the age group ✓. Large Counts (use p0): np0 = 150(0.45) = 67.5 ≥ 10 ✓ and n(1 − p0) = 150(0.55) = 82.5 ≥ 10 ✓.

N. One-sample z-test for a proportion.

I. p̂ = 78/150 = 0.520.

SE = sqrt(0.45 × 0.55 / 150) = sqrt(0.001650) = 0.040620
z  = (0.520 − 0.45) / 0.040620 = 0.070 / 0.040620 = 1.723
p-value = normalcdf(1.723, 1E99, 0, 1) = 0.0424
1-PropZTest (p0=.45, x=78, n=150, prop >p0):  z = 1.7233,  p = 0.0424

C. Since p-value ≈ 0.0424 < 0.05, we reject H0. There is convincing evidence that more than 45% of adults in this age group would accept the flu shot.

Example 2 — A two-sided test (medium-hard)

Problem. A coin is suspected of being unfair — in either direction. It's flipped 80 times and lands heads 34 times. Is there convincing evidence at α = 0.05 that the coin is not fair?

P. Let p = the true probability the coin lands heads.

H0: p = 0.50 vs. Ha: p ≠ 0.50. ("Not fair, in either direction" → two-sided.)

A. Random: flips are independent and identically distributed ✓ (10% condition is unnecessary for a physical process — flips aren't drawn from a finite population, so we just need independence, which physical coin flips give us). Large Counts: np0 = 80(0.50) = 40 ≥ 10 ✓, n(1 − p0) = 40 ≥ 10 ✓.

N. One-sample z-test for a proportion.

I. p̂ = 34/80 = 0.425.

SE = sqrt(0.50 × 0.50 / 80) = sqrt(0.003125) = 0.055902
z  = (0.425 − 0.50) / 0.055902 = −0.075 / 0.055902 = −1.342

Because Ha is two-sided, the p-value is both tails — double the one-tail area:

p-value = 2 × normalcdf(−1E99, −1.342, 0, 1) = 2 × 0.0899 = 0.1797
1-PropZTest (p0=.50, x=34, n=80, prop ≠p0):  z = −1.3416,  p = 0.1797

C. Since p-value ≈ 0.180 > 0.05, we fail to reject H0. There is not convincing evidence that the coin is unfair. (We do not conclude the coin is fair — absence of evidence is not evidence of absence.)

Example 3 — Conditions check and interpreting a p-value (short)

Problem. A nutritionist tests H0: p = 0.30 vs. Ha: p < 0.30 with a random sample of n = 40, where p0 = 0.30. (a) Are the Large Counts conditions met? (b) The test gives a p-value of 0.018. Interpret this p-value in context, where p is the proportion of customers who order dessert.

Solution. (a) np0 = 40(0.30) = 12 ≥ 10 ✓ and n(1 − p0) = 40(0.70) = 28 ≥ 10 ✓ — both met. (b) Interpretation: If the true proportion of customers who order dessert really were 0.30, there is only about a 0.018 probability of getting a sample proportion as low as — or lower than — the one observed, just by random sampling variation. Because that's small, it's evidence against H0.

A p-value is P(data this extreme or more | H0 true) — it is not the probability that H0 is true.

Example 4 — Relating a test decision to a confidence interval (AP-style)

Problem. In a random sample of 200 voters, 112 support a ballot measure. (a) Test H0: p = 0.50 vs. Ha: p ≠ 0.50 at α = 0.05. (b) A 95% confidence interval from the same data is (0.491, 0.629). Explain how the interval is consistent with your test decision.

Solution.

(a) p̂ = 112/200 = 0.560. Test SE uses p0 = 0.50:

SE = sqrt(0.50 × 0.50 / 200) = 0.035355
z  = (0.560 − 0.50) / 0.035355 = 1.697
p-value = 2 × normalcdf(1.697, 1E99, 0, 1) = 2 × 0.0448 = 0.0897
1-PropZTest (p0=.50, x=112, n=200, prop ≠p0):  z = 1.6971,  p = 0.0897

Since 0.0897 > 0.05, fail to reject H0 — not convincing evidence that p ≠ 0.50.

(b) The 95% confidence interval (0.491, 0.629) contains 0.50. For a two-sided test at α = 0.05, "the C% interval contains p0" corresponds to "fail to reject H0 at α = 1 − C." Since 0.50 is a plausible value inside the interval, we don't reject it — perfectly consistent. (Heads-up: the interval's SE uses p̂ = 0.56, while the test's SE uses p0 = 0.50, so the agreement is close but not algebraically perfect. The directional logic always matches; borderline cases can occasionally differ.)


(d) Common Mistakes

  1. Using p̂ instead of p0 in the standard error. This is THE big one. For a test, SE = sqrt(p0(1−p0)/n) — the claimed value. Students who plug in get the wrong z and a wrong p-value. (The interval is the one that uses .) Memorize: test → p0, interval → p̂.
  1. Using the wrong tail for the p-value. If Ha: p > p0, take the area to the right of z. If Ha: p < p0, area to the left. A negative z with Ha: p > should make you suspicious — your data went the wrong way and the p-value will be large.
  1. Doubling (or not doubling) for two-sided tests. For Ha: p ≠ p0, you must double the one-tail area: p-value = 2 × P(Z > |z|). Forgetting to double makes the result look twice as significant as it is. Conversely, don't double a one-sided test.
  1. Saying "accept H0." When the p-value is large, you fail to reject H0 — you never accept or prove it. You simply lack evidence against it.
  1. Omitting context in the conclusion. "Reject H0" alone earns little credit. You must name the parameter, the direction, and link the decision to the comparison of p-value vs. α: "Because 0.0146 < 0.05, we reject H0; there is convincing evidence that p > 0.60."

(e) Practice Problems

MC 1. For a one-proportion z-test of H0: p = 0.40, which is the correct standard error?

MC 2. A test has Ha: p > 0.25 and yields z = 1.88. The p-value is closest to:

MC 3. A two-sided test gives z = −2.05. The p-value is closest to:

MC 4. Which condition for a one-proportion z-test is checked using the null value p0 rather than the sample proportion?

MC 5. A researcher tests H0: p = 0.50 vs. Ha: p ≠ 0.50 and obtains a p-value of 0.12 at α = 0.05. The correct conclusion is:

MC 6. In a one-proportion z-test, decreasing the p-value (making it smaller) corresponds to:

MC 7. A 1-PropZTest with Ha: p < p0 returns z = 0.90. Without computing, the p-value is:

MC 8. A manufacturer claims 5% of its chips are defective. A quality inspector suspects the rate is higher and samples 400 chips, finding 28 defective. The standard error used in the test statistic is:

Short Answer 9 (in context). A polling firm claims that 70% of adults support a new park. A city council member suspects support is lower. In a random sample of 240 adults, 168 support the park. Carry out a full PANIC test at α = 0.05. (This is the FRQ scenario worked below — try it first, then check.)

Short Answer 10 (in context). Explain, in one or two sentences, why a one-proportion test uses p0 in its standard error while a one-proportion confidence interval uses .

Short Answer 11. A two-sided test gives z = 1.40. Find the p-value and state the decision at α = 0.05.

Short Answer 12. A right-tailed test (Ha: p > 0.30) of a random sample with n = 200, x = 72 is run. Check Large Counts, compute z, and find the p-value.


(f) FRQ Practice (10 points)

Statistical Practices 3 (Analyze) + 4 (Interpret)

A coffee shop's loyalty program advertises that 75% of its customers return within a week of their first visit. A regional manager suspects the true return rate is lower than advertised. She takes a random sample of 240 first-time customers and finds that 168 of them returned within a week.

(a) State the hypotheses for an appropriate significance test, defining any parameter. (2 pts)

(b) Identify the appropriate test and verify that the conditions for inference are met. (3 pts)

(c) Calculate the test statistic and the p-value. (3 pts)

(d) At the α = 0.05 significance level, state your conclusion in the context of the problem. (2 pts)

Model Response

(a) Parameter and hypotheses.

Let p = the true proportion of all first-time customers at this coffee shop who return within a week.

H0: p = 0.75 vs. Ha: p < 0.75

The alternative is one-sided (left-tailed) because the manager suspects the rate is lower than the advertised 0.75.

(b) Procedure and conditions.

Procedure: a one-sample z-test for a proportion.

(c) Test statistic and p-value.

p̂ = 168/240 = 0.700. Standard error uses the null value p0 = 0.75:

SE = sqrt( 0.75 × 0.25 / 240 ) = sqrt(0.00078125) = 0.027951
z  = (0.700 − 0.75) / 0.027951 = −0.050 / 0.027951 = −1.789

Because Ha: p < 0.75 is left-tailed, the p-value is the area to the left of z = −1.789:

p-value = normalcdf(−1E99, −1.789, 0, 1) = 0.0368
1-PropZTest (p0=.75, x=168, n=240, prop <p0):  z = −1.7889,  p = 0.0368,  p̂ = 0.70

(d) Conclusion in context.

Because the p-value ≈ 0.0368 < α = 0.05, we reject H0. There is convincing statistical evidence that the true proportion of first-time customers who return within a week is less than 0.75 (lower than the advertised 75%).

Point-by-Point Rubric (sums to 10)

PartCriterionPoints
(a)Correctly defines parameter p in context (the true proportion of first-time customers who return)1
(a)Correct hypotheses H0: p = 0.75, Ha: p < 0.75 (left-tailed)1
(b)Names the one-sample z-test for a proportion1
(b)States Random and 10% conditions and ties them to the context1
(b)Checks Large Counts using p0: np0 = 180 ≥ 10 and n(1−p0) = 60 ≥ 101
(c)Correct SE using p0 and correct test statistic z ≈ −1.791
(c)Correct tail / setup for the p-value (left tail)1
(c)Correct p-value ≈ 0.0371
(d)Correct decision linked to comparing p-value with α (0.037 < 0.05 → reject H0)1
(d)Conclusion in context with direction (evidence that p < 0.75)1
Total10

Where Students Lose Points


🔑 Answer Key

Multiple Choice

MC 1 — (A). A test uses SE = sqrt(p0(1−p0)/n) = sqrt(0.40 × 0.60 / n). (B) is the interval's SE (uses ) — the classic trap. (C) multiplies by n instead of dividing. (D) is not a standard error at all.

MC 2 — (A). Right-tailed: p-value = normalcdf(1.88, 1E99) = 0.0301. (B) doubles it (that's the two-sided value). (C) and (D) give the area to the left of z — wrong tail.

MC 3 — (B). Two-sided: 2 × normalcdf(−1E99, −2.05) = 2 × 0.0202 = 0.0404. (A) is the one-tail area (forgot to double). (C)/(D) are left-over complements — wrong region entirely.

MC 4 — (C). Large Counts uses p0 because we test under the assumption H0 is true. (A) Random and (B) 10% don't involve any proportion value. (D) is not a condition for this procedure.

MC 5 — (C). 0.12 > 0.05 → fail to reject H0; not convincing evidence that p ≠ 0.50. (A)/(B) wrongly reject. (D) says "accept H0," which is never correct.

MC 6 — (B). A smaller p-value = stronger evidence against H0 (data more surprising under the null). (A) is backwards. (C) and (D) are unrelated to p-value size.

MC 7 — (C). Ha: p < p0 wants the left tail, but z = +0.90 is on the right side — data went against Ha — so the left-tail p-value is large: normalcdf(−1E99, 0.90) = 0.816. (A)/(B)/(D) all understate it.

MC 8 — (B). Test SE uses the claimed p0 = 0.05: sqrt(0.05 × 0.95 / 400). (A)/(D) use p̂ = 28/400 = 0.07 — the interval's value, wrong for a test. (C)/(D) wrongly use 28 instead of 400 in the denominator.

Short Answer

SA 9. This is the FRQ scenario. Full solution: p = true proportion of first-time customers who return within a week; H0: p = 0.75, Ha: p < 0.75. Conditions: Random ✓, 10% (N ≥ 2400) ✓, Large Counts np0 = 180 ≥ 10, n(1−p0) = 60 ≥ 10 ✓. p̂ = 0.700; SE = sqrt(0.75×0.25/240) = 0.027951; z = (0.700 − 0.75)/0.027951 = −1.789; left-tailed p-value = 0.0368. Since 0.0368 < 0.05, reject H0 — convincing evidence the return rate is below 75%. (1-PropZTest confirms z = −1.7889, p = 0.0368.)

SA 10. A test assumes H0 is true, so we build the null sampling distribution using the hypothesized value p0 — hence SE = sqrt(p0(1−p0)/n). A confidence interval makes no claim about p; it estimates p from the data, so it uses the best available estimate — hence SE = sqrt(p̂(1−p̂)/n).

SA 11. Two-sided: p-value = 2 × normalcdf(1.40, 1E99) = 2 × 0.0808 = 0.1615. Since 0.1615 > 0.05, fail to reject H0 — not convincing evidence that p ≠ p0.

SA 12. p̂ = 72/200 = 0.360. Large Counts: np0 = 200(0.30) = 60 ≥ 10 ✓, n(1−p0) = 200(0.70) = 140 ≥ 10 ✓. SE = sqrt(0.30×0.70/200) = sqrt(0.00105) = 0.032404; z = (0.360 − 0.30)/0.032404 = 1.852; right-tailed p-value = normalcdf(1.852, 1E99) = 0.0320. At α = 0.05, reject H0 — evidence that p > 0.30.

FRQ

See the model response and rubric in section (f). Key recomputed values: p̂ = 0.700, SE = sqrt(0.75 × 0.25 / 240) = 0.027951 (uses p0 = 0.75), z = −1.789, left-tailed p-value = 0.0368. Verified against 1-PropZTest: z = −1.7889, p = 0.0368. Decision: 0.0368 < 0.05reject H0; convincing evidence the return rate is below 0.75.

StatsIQ · Lesson 22 of 30 · Unit 3: Inference for Categorical Data: Proportions · Phase 4

This lesson is study material aligned to the new 2026–27 AP Statistics Course and Exam Description (first exam May 2027). "AP" is a trademark of the College Board, which was not involved in the production of and does not endorse this product.

Accuracy review: All test statistics and p-values were recomputed independently and confirmed against TI-84 1-PropZTest output. The test standard error uses the null value p0 throughout, distinct from the confidence-interval SE (which uses p̂). Reviewed for statistical accuracy by a retired actuary.

← Lesson 21
Lesson 23 →
Score: 0/0 correct