Skip to content

Hypothesis Testing Framework

Set up hypothesis tests with null and alternative hypotheses, significance level, and p-values.

Written and reviewed by the Study Mondo Education TeamLast updated
🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson →

⚖️ Hypothesis Testing Framework

Setting Up Hypotheses

Null Hypothesis (H0H_0):

  • Statement of "no effect," "no difference," or "no change"
  • What we assume true unless evidence suggests otherwise
  • Always uses = sign

Alternative Hypothesis (HaH_a):

  • Statement we're testing for
  • What we'd conclude if H0H_0 is rejected
  • Can be one-sided (<, >) or two-sided (≠)

Types of Hypotheses: One-Sided vs Two-Sided

Two-sided test (most common initially):

  • H0:p=0.5H_0: p = 0.5 vs Ha:p≠0.5H_a: p \neq 0.5
  • Tests for any difference (either direction)
  • Uses both tails of distribution

One-sided test (left):

  • H0:p=0.5H_0: p = 0.5 vs Ha:p<0.5H_a: p < 0.5
  • Tests if parameter less than null value
  • Uses left tail only

One-sided test (right):

  • H0:p=0.5H_0: p = 0.5 vs Ha:p>0.5H_a: p > 0.5
  • Tests if parameter greater than null value
  • Uses right tail only

Test Statistic

The test statistic measures how far the sample statistic is from the null value, in standard errors.

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

For means (t-test): t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}

p-Value

The p-value is:

  • Probability of observing test statistic as extreme or more extreme, given H0H_0 is true
  • Measures evidence against H0H_0
  • Smaller p-value → stronger evidence against H0H_0

Interpretation:

  • p-value = 0.03 means: If H0H_0 were true, we'd see results this extreme 3% of the time

Significance Level (α)

The significance level is the threshold for rejecting H0H_0.

Common choices:

  • α = 0.05 (most common; 5% risk of Type I error)
  • α = 0.01 (more stringent; 1% risk)
  • α = 0.10 (less stringent; 10% risk)

Decision Rule

Compare p-value to α:

  • If p-value < α: Reject H0H_0 (statistically significant; evidence for HaH_a)
  • If p-value ≥ α: Fail to reject H0H_0 (not enough evidence)

Worked Example

Claim: A coin is fair. Test at α = 0.05.

  • H0:p=0.5H_0: p = 0.5 (fair coin)
  • Ha:p≠0.5H_a: p \neq 0.5 (unfair coin, two-sided)
  • Flip 100 times, get 62 heads

Calculate test statistic: z=0.62−0.50.5⋅0.5100=0.120.0025=0.120.05=2.4z = \frac{0.62 - 0.5}{\sqrt{\frac{0.5 \cdot 0.5}{100}}} = \frac{0.12}{\sqrt{0.0025}} = \frac{0.12}{0.05} = 2.4

Find p-value: For z = 2.4 (two-sided): p-value ≈ 0.0164

Decision: p-value (0.0164) < α (0.05) → Reject H0H_0

Conclusion: There is significant evidence that the coin is not fair.

Conclusion in Context

Always state conclusion in terms of original problem:

  • ✅ "At the 5% significance level, there is sufficient evidence that the mean GPA has increased."
  • ❌ "We reject the null hypothesis."

Include context; address the original claim.

Common Mistakes

  1. Confusing p-value with probability of H0H_0: p-value is conditional on H0H_0 being true
  2. Stating wrong hypotheses: HaH_a should match the research question
  3. One-sided vs two-sided: Determine direction before collecting data
  4. Ignoring assumptions: Check independence, randomness, and normality

AP Exam Tip

Free-response hypothesis test questions follow a four-step format:

  1. State: H0H_0 and HaH_a (or state conditions and parameter)
  2. Plan: Name the test and check conditions
  3. Do: Calculate test statistic and p-value
  4. Conclude: Decision and interpretation in context

Show all work and use appropriate notation.

📚 Practice Problems

1Problem 1easy

❓ Question:

Explain the difference between the null hypothesis and the alternative hypothesis.

💡 Show Solution

The null hypothesis H0H_0 assumes no effect or no difference—it is the claim being tested. The alternative hypothesis HaH_a is what we hope to find evidence for; it proposes the effect or difference exists. In a test whether a drug is effective, H0:drug has no effectH_0: \text{drug has no effect} and Ha:drug has an effectH_a: \text{drug has an effect}. We collect data to evaluate whether H0H_0 is plausible.

2Problem 2medium

❓ Question:

Define a p-value and explain what it represents in a hypothesis test.

💡 Show Solution

The p-value is the probability of observing a test statistic as extreme as or more extreme than the one computed from the sample, assuming H0H_0 is true. A small p-value (typically < 0.05) suggests the sample data is unlikely under H0H_0, providing evidence to reject it. A large p-value indicates the observed data is consistent with H0H_0. The p-value measures the strength of evidence against the null hypothesis.

3Problem 3hard

❓ Question:

A biologist tests H0:μ=10H_0: \mu = 10 versus Ha:μ≠10H_a: \mu \ne 10 at α=0.05\alpha = 0.05 and obtains p-value = 0.12. Interpret the result and state the conclusion.

💡 Show Solution

Since the p-value = 0.12 is greater than α=0.05\alpha = 0.05, we fail to reject H0H_0. The p-value of 0.12 means that if the population mean is truly 10, there is a 12% probability of observing a sample mean as extreme as (or more extreme than) the one we obtained. This is not unusual under H0H_0. Conclusion: There is insufficient evidence to conclude that the population mean differs from 10. The data is consistent with μ=10\mu = 10.

Explain using:

⚠️ Common Mistakes: Hypothesis Testing Framework

Avoid these 3 frequent errors

📌 Related Topics in Unit 7: Inference for Quantitative Data — Means

❓ Frequently Asked Questions

What is Hypothesis Testing Framework?▾
Set up hypothesis tests with null and alternative hypotheses, significance level, and p-values.
How can I study Hypothesis Testing Framework effectively?▾
Start by reading the study notes and working through the examples on this page. Then use the flashcards to test your recall. Practice with the 3 problems provided, checking solutions as you go. Regular review and active practice are key to retention.
Is this Hypothesis Testing Framework study guide free?▾
Yes — all study notes, flashcards, and practice problems for Hypothesis Testing Framework on Study Mondo are free to access. No account is needed.
What course covers Hypothesis Testing Framework?▾
Hypothesis Testing Framework is part of the AP Statistics course on Study Mondo, specifically in the Unit 7: Inference for Quantitative Data — Means section. You can explore the full course for more related topics and practice resources.
Are there practice problems for Hypothesis Testing Framework?▾
Yes, this page includes 3 practice problems with detailed solutions. Each problem includes a step-by-step explanation to help you understand the approach.