AP Statistics · Topic 3.7 · Reading guide, about 4 min

Running the one-proportion test and concluding

The z test statistic, p-value, decision rule with alpha, and a conclusion written in context for a one-proportion z-test.

In one minute

This topic puts the whole one-proportion z-test together. You already know how to set up hypotheses and check conditions, and what a p-value means. Now you compute the test statistic, get the p-value, compare it with a significance level, and write a conclusion that answers the original question.

The exam rewards a clean, ordered solution: name, conditions, calculation, decision linked to α\alpha, and a conclusion in context.

Key terms

Test statistic
The standardized value z=(p^−p0)/p0(1−p0)/nz = (\hat{p} - p_0)/\sqrt{p_0(1-p_0)/n}, counting standard deviations of p^\hat{p} from the null value.
Standard normal null model
When conditions hold and H0H_0 is true, zz follows approximately a standard normal distribution.
P-value
The area in the direction of HaH_a beyond the observed zz, found from a table or technology.
Significance level α\alpha
The cutoff chosen before collecting data; commonly 0.05, 0.01 or 0.10.
Reject H0H_0
The decision when the p-value is at most α\alpha.
Fail to reject H0H_0
The decision when the p-value is greater than α\alpha.
Statistically significant
A result with a p-value at or below α\alpha.
Conclusion in context
A sentence about HaH_a, naming the parameter and population, with wording that does not claim certainty.

The four parts of a complete test

A complete solution has four parts. State: name the test and define pp, then write H0H_0, HaH_a and α\alpha. Plan: check the random, 10% and expected-count conditions in context. Do: compute zz and the p-value. Conclude: compare the p-value with α\alpha, make the decision, and write the conclusion in context. Using this order keeps you from skipping a step the graders look for.

The formulas and the decision rule

The test statistic is z=p^−p0p0(1−p0)/nz = \dfrac{\hat{p} - p_0}{\sqrt{p_0(1-p_0)/n}}. The denominator uses the null value p0p_0, since the test asks what we would see if H0H_0 were true. The p-value is the upper-tail area for Ha ⁣:p>p0H_a\colon p > p_0, the lower-tail area for a less-than alternative, or double the tail area for a not-equal alternative.

Choose α\alpha before looking at the data. The rule: if p-value ≤α\le \alpha, reject H0H_0; if p-value >α> \alpha, fail to reject H0H_0. The decision is always a comparison of two numbers, and the sentence should say so.

Decision and conclusion wording
ResultDecisionWhat to write about HaH_a
p-value ≤α\le \alphaReject H0H_0There is convincing evidence for HaH_a in context.
p-value >α> \alphaFail to reject H0H_0There is not convincing evidence for HaH_a in context.

A fully worked example

A battery maker claims 90% of its batteries last at least 10 hours. A tester suspects the rate is lower, tests a random sample of n=150n = 150 batteries from a very large shipment (invented data), and finds that 128 last at least 10 hours. Use α=0.05\alpha = 0.05.

State: this is a one-sample z-test for pp, where pp is the proportion of all batteries in this shipment that last at least 10 hours. H0 ⁣:p=0.90H_0\colon p = 0.90 and Ha ⁣:p<0.90H_a\colon p < 0.90.

Plan: the batteries were randomly sampled. The 10% condition holds because the shipment is very large compared with 150 batteries. The expected counts are np0=150(0.90)=135np_0 = 150(0.90) = 135 and n(1−p0)=150(0.10)=15n(1-p_0) = 150(0.10) = 15, both at least 10.

Do: p^=128/150≈0.85333\hat{p} = 128/150 \approx 0.85333. The standard deviation under H0H_0 is 0.90(0.10)/150=0.0006≈0.024495\sqrt{0.90(0.10)/150} = \sqrt{0.0006} \approx 0.024495. Then z=(0.85333−0.9000)/0.024495≈−1.905z = (0.85333 - 0.9000)/0.024495 \approx -1.905. The lower-tail area is about 0.0284, so the p-value is about 0.028.

Conclude: because the p-value 0.028 is less than α=0.05\alpha = 0.05, we reject H0H_0. There is convincing evidence that the true proportion of batteries in this shipment that last at least 10 hours is less than 0.90.

The result is tied to the chosen α\alpha. With α=0.01\alpha = 0.01 the same p-value of 0.028 is greater than α\alpha, so we would fail to reject H0H_0 and say the data do not give convincing evidence that the proportion is below 0.90. Failing to reject does not show that 90% is correct; it means this sample was not enough to rule it out. This is why α\alpha must be fixed in advance rather than adjusted after seeing the p-value.

How it connects

  • Back to 3.5: the setup of hypotheses and conditions feeds the first two steps.
  • Back to 3.6: the p-value is the tail area of the null distribution beyond zz.
  • Back to 3.3: a matching confidence interval would use p^\hat{p} in the standard error, not p0p_0.
  • Forward to 3.8: Type I and Type II errors describe what can go wrong with the decision.

Common mistakes

  • **Writing "accept H0H_0" or "proved."** The only decisions are reject or fail to reject, and the conclusion is about evidence for HaH_a.
  • **Using p^\hat{p} in the denominator of zz.** The test uses p0p_0.
  • **Concluding without comparing with α\alpha.** State the p-value, state α\alpha and say which is larger.
  • Using the wrong tail. The tail follows HaH_a, and a two-sided test doubles the tail area.
  • Forgetting context. Name the parameter and the population in the final sentence.

How it shows up on the exam

  • A free-response question describes a claim and a sample, and expects every step: hypotheses, conditions, test statistic, p-value, decision and conclusion in context.
  • A written task provides computer output with zz and a p-value, and asks for the decision and conclusion at a stated α\alpha.
  • A multiple-choice item asks which conclusion is justified, or how the decision changes with a different α\alpha.

Check yourself

  1. What is the decision rule, and what two numbers does it compare?
  2. Why does the denominator of the test statistic use p0p_0?
  3. A p-value is 0.07. What do you decide at α=0.05\alpha = 0.05 and at α=0.10\alpha = 0.10?
  4. Write the conclusion for a failed test so that it avoids claiming H0H_0 is true.

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.