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

Hypothesis test

Hypothesis test appears in 33 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 Hypothesis test is tested

Example 1Easier
A quality control engineer wants to test whether the defect rate of a manufacturing process has decreased from the historical rate of 8%. She inspects 250 items and finds 12 defective. Which are the appropriate null and alternative hypotheses?
  1. AH0: p = 0.08, Ha: p ≠ 0.08
  2. BH0: p < 0.08, Ha: p = 0.08
  3. CH0: p = 0.08, Ha: p < 0.08Correct
  4. DH0: p = 0.048, Ha: p < 0.048

Why C is right

The null hypothesis should state the parameter equals the historical value: H0: p = 0.08. Because the engineer suspects the rate has decreased, the alternative hypothesis is one-sided: Ha: p < 0.08. The sample proportion of 12/250 = 0.048 is the observed statistic, not a hypothesis value.
Why the other 3 choices miss
A
Incorrect because the engineer specifically wants to test whether the rate has decreased, making this a one-sided test (Ha: p < 0.08), not a two-sided test (Ha: p ≠ 0.08).
B
Incorrect because the null hypothesis must contain the equality (H0: p = 0.08), and the alternative contains the inequality. The roles are reversed here.
D
Incorrect because the hypotheses should reference the historical rate of 0.08, not the sample proportion of 0.048. Hypotheses are statements about the population parameter, not the sample statistic.
Example 2Medium
A student claims that because a 95% confidence interval for μ is (45.2, 52.8), the null hypothesis H₀: μ = 50 should not be rejected at α = 0.05 in a two-tailed test. Is this reasoning correct?
  1. ANo, because confidence intervals and hypothesis tests use different assumptions.
  2. BYes, because 50 is within the confidence interval, so it is a plausible value for μ.Correct
  3. CYes, but only if the sample size exceeds 30.
  4. DNo, because the confidence interval only applies to one-sided tests.

Why B is right

A 95% confidence interval and a two-sided hypothesis test at α = 0.05 are mathematically equivalent for the same data. If the null value μ₀ falls within the 95% CI, then the p-value > 0.05 and we fail to reject H₀. Since 50 is within (45.2, 52.8), we correctly fail to reject H₀: μ = 50.
Why the other 3 choices miss
A
Incorrect because for the same test conditions (two-sided, α = 0.05, same data), the confidence interval and hypothesis test are dual procedures and yield identical decisions.
C
Incorrect because the equivalence between confidence intervals and hypothesis tests holds regardless of sample size, as long as both use the same distribution (t or z) and the same α.
D
Incorrect because a two-sided confidence interval corresponds exactly to a two-sided hypothesis test; one-sided tests require one-sided intervals for duality.
Example 3Medium
A study examines whether caffeine affects typing speed. Ten participants type a passage with and without caffeine (order randomized). The differences (caffeine - no caffeine) in words per minute are: 3, -1, 5, 2, 7, 0, 4, 6, -2, 1. The paired t-test statistic is t = 2.77 with df = 9. At alpha = 0.05 (two-sided critical value t* = 2.262), what is the conclusion?
  1. AReject H0; there is convincing evidence caffeine affects typing speedCorrect
  2. BFail to reject H0; the effect size is too small
  3. CFail to reject H0; caffeine has no effect on typing speed
  4. DReject H0; caffeine decreases typing speed

Why A is right

The test statistic t = 2.77 exceeds the two-sided critical value of 2.262 for df = 9 at alpha = 0.05. Therefore, we reject H0 and conclude there is convincing evidence that caffeine affects typing speed.
Why the other 3 choices miss
B
Incorrect because the hypothesis test assesses statistical significance, not effect size. The test statistic exceeds the critical value, so we reject H0.
C
Incorrect because t = 2.77 > 2.262, so we reject H0 rather than fail to reject.
D
Incorrect because the mean difference is positive (caffeine - no caffeine), indicating caffeine increases typing speed, not decreases it.

Studied alongside

Other concepts from Inference for Categorical Data: Proportions.