Hypothesis Testing Framework
Set up hypothesis tests with null and alternative hypotheses, significance level, and p-values.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
⚖️ Hypothesis Testing Framework
Setting Up Hypotheses
Null Hypothesis ():
- Statement of "no effect," "no difference," or "no change"
- What we assume true unless evidence suggests otherwise
- Always uses = sign
Alternative Hypothesis ():
- Statement we're testing for
- What we'd conclude if is rejected
- Can be one-sided (<, >) or two-sided (≠)
Types of Hypotheses: One-Sided vs Two-Sided
Two-sided test (most common initially):
- vs
- Tests for any difference (either direction)
- Uses both tails of distribution
One-sided test (left):
- vs
- Tests if parameter less than null value
- Uses left tail only
One-sided test (right):
- vs
- 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):
For means (t-test):
p-Value
The p-value is:
- Probability of observing test statistic as extreme or more extreme, given is true
- Measures evidence against
- Smaller p-value → stronger evidence against
Interpretation:
- p-value = 0.03 means: If were true, we'd see results this extreme 3% of the time
Significance Level (α)
The significance level is the threshold for rejecting .
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 (statistically significant; evidence for )
- If p-value ≥ α: Fail to reject (not enough evidence)
Worked Example
Claim: A coin is fair. Test at α = 0.05.
- (fair coin)
- (unfair coin, two-sided)
- Flip 100 times, get 62 heads
Calculate test statistic:
Find p-value: For z = 2.4 (two-sided): p-value ≈ 0.0164
Decision: p-value (0.0164) < α (0.05) → Reject
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
- Confusing p-value with probability of : p-value is conditional on being true
- Stating wrong hypotheses: should match the research question
- One-sided vs two-sided: Determine direction before collecting data
- Ignoring assumptions: Check independence, randomness, and normality
AP Exam Tip
Free-response hypothesis test questions follow a four-step format:
- State: and (or state conditions and parameter)
- Plan: Name the test and check conditions
- Do: Calculate test statistic and p-value
- 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 assumes no effect or no difference—it is the claim being tested. The alternative hypothesis is what we hope to find evidence for; it proposes the effect or difference exists. In a test whether a drug is effective, and . We collect data to evaluate whether 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 is true. A small p-value (typically < 0.05) suggests the sample data is unlikely under , providing evidence to reject it. A large p-value indicates the observed data is consistent with . The p-value measures the strength of evidence against the null hypothesis.
3Problem 3hard
❓ Question:
A biologist tests versus at and obtains p-value = 0.12. Interpret the result and state the conclusion.
💡 Show Solution
Since the p-value = 0.12 is greater than , we fail to reject . 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 . Conclusion: There is insufficient evidence to conclude that the population mean differs from 10. The data is consistent with .
⚠️ Common Mistakes: Hypothesis Testing Framework
Avoid these 3 frequent errors
Practice with Flashcards
Rate this topic's cards with spaced repetition. Cards join your deck when you finish a topic's lesson and take its exit quiz.
Browse All Topics
Explore more AP Statistics topics