Hypothesis Testing

AP Statistics guide to hypothesis testing: null and alternative hypotheses, p-values, significance levels, Type I and II errors, and test procedures.

# Hypothesis Testing — AP Statistics

Hypothesis testing is the formal process for deciding whether sample data provide enough evidence against a claim about a population parameter. It is one of the most heavily tested topics on the AP Statistics exam.

Key Concepts

The Hypotheses

  • Null hypothesis (H0H_0): the default claim (usually "no effect" or "no difference").
  • Alternative hypothesis (HaH_a): the claim we're looking for evidence to support.
    • Two-sided: Ha:μμ0H_a: \mu \neq \mu_0
    • One-sided: Ha:μ>μ0H_a: \mu > \mu_0 or Ha:μ<μ0H_a: \mu < \mu_0

Test Statistic

Measures how far the sample statistic is from the hypothesized parameter in standard error units.

For a proportion: z=p^p0p0(1p0)nz = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}}

For a mean: t=xˉμ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} with df=n1df = n-1.

P-Value

The probability of observing data as extreme as (or more extreme than) the sample, assuming H0H_0 is true.

  • Small p-value → evidence against H0H_0.
  • If pαp \leq \alpha: reject H0H_0.
  • If p>αp > \alpha: fail to reject H0H_0.

Significance Level (α\alpha)

Common values: α=0.05\alpha = 0.05 or α=0.01\alpha = 0.01.

Type I and Type II Errors

H0H_0 true H0H_0 false
Reject H0H_0 Type I error (α\alpha) Correct
Fail to reject Correct Type II error (β\beta)

Power = 1β1 - \beta = probability of correctly rejecting a false H0H_0.

Increase power by: increasing nn, increasing α\alpha, increasing effect size.

Four-Step Process (AP)

  1. State hypotheses and define parameters.
  2. Plan: identify the test, check conditions.
  3. Do: calculate test statistic and p-value.
  4. Conclude: make a decision in context.

Worked Example

Problem: A company claims its light bulbs last 1000 hours on average. A sample of 36 bulbs has xˉ=985\bar{x} = 985, s=40s = 40. Test at α=0.05\alpha = 0.05.

Solution:

H0:μ=1000H_0: \mu = 1000, Ha:μ<1000H_a: \mu < 1000 (one-sided).

t=985100040/36=156.67=2.25t = \frac{985 - 1000}{40/\sqrt{36}} = \frac{-15}{6.67} = -2.25

df=35df = 35. From tt-table, p-value 0.015\approx 0.015.

Since 0.015<0.050.015 < 0.05, reject H0H_0. There is convincing evidence the mean lifetime is less than 1000 hours.

Practice Questions

  1. 1. If α=0.05\alpha = 0.05 and p-value =0.03= 0.03, what is your conclusion?

    Reject H0H_0 (p < α). There is significant evidence against the null hypothesis.

    2. What is a Type I error in the light bulb example?

    Concluding the mean lifetime is less than 1000 hours when it actually is 1000 hours.

    3. How does increasing sample size affect the power of a test?

    Power increases (the test is better at detecting a real effect).

Want to check your answers and get step-by-step solutions?

Get it on Google PlayDownload on the App Store

Summary

  • Set up H0H_0 and HaH_a; calculate test statistic and p-value.
  • Reject H0H_0 if p-value ≤ α\alpha; fail to reject otherwise.
  • Type I error = false positive; Type II error = false negative.
  • Power = 1β1 - \beta; increased by larger nn, larger effect, or larger α\alpha.
  • Follow the 4-step process: State, Plan, Do, Conclude.

Ready to Ace Your AP STATISTICS statistics?

Get instant step-by-step solutions to any problem. Snap a photo and learn with Tutor AI — your personal exam prep companion.

Get it on Google PlayDownload on the App Store