Hypothesis Testing Framework - Complete Interactive Lesson
Part 1: Null & Alternative Hypotheses
📐 Null & Alternative Hypotheses
Part 1 of 7 — Setting Up the Test
What Is Hypothesis Testing?
Hypothesis testing is a formal procedure for using sample data to decide between two competing claims about a population parameter.
| Component | Symbol | Description |
|---|---|---|
| Null hypothesis | No effect / no difference — the status quo | |
| Alternative hypothesis | There IS an effect / difference — the research claim |
🔑 Key Idea: We assume is true and look for evidence against it. We NEVER prove true — we either reject it or fail to reject it.
Writing Hypotheses
Hypotheses are always about population parameters (, ), never about sample statistics (, ).
For means:
| Type | When to Use | ||
|---|---|---|---|
| Two-tailed | "Is there a difference?" | ||
| Right-tailed | "Is it greater than?" | ||
| Left-tailed | "Is it less than?" |
For proportions:
| Type | ||
|---|---|---|
| Two-tailed | ||
| Right-tailed | ||
| Left-tailed |
⚠️ Important: always contains the equals sign (). The alternative contains , , or .
Worked Example
Claim: "Students at this school score higher than the national average of 75."
- Parameter: = true mean score of students at this school
- (no difference from national average)
- (school average is higher)
This is a right-tailed test because the claim is "higher than."
Significance Level ()
Before testing, we choose a significance level (usually 0.05):
| Meaning | |
|---|---|
| 0.05 | Reject if the evidence would occur less than 5% of the time under |
| 0.01 | More stringent — only reject with very strong evidence |
| 0.10 | Less stringent — reject with moderate evidence |
🔑 AP Tip: Unless told otherwise, assume on the AP exam.
Hypothesis Setup 🎯
Hypothesis Identification 🧮
For each claim, identify the null value ():
1) Claim: . ?
2) Claim: . ?
3) Claim: . ?
Test Direction 🔍
Exit Quiz — Null & Alternative Hypotheses ✅
Part 2: Test Statistics
📊 Test Statistics
Part 2 of 7 — Measuring the Evidence
What Is a Test Statistic?
A test statistic measures how far the sample result falls from the null hypothesis value, expressed in standard-error units.
| Symbol | Meaning |
|---|---|
| Sample mean | |
| Null hypothesis value | |
| Sample standard deviation | |
| Sample size | |
| Standard error of |
🔑 Interpretation: tells you how many standard errors the sample mean is from the null value. Larger → stronger evidence against .
Standard Error (SE)
The standard error measures the typical distance between and due to sampling variability:
| Factor | Effect on SE |
|---|---|
| Larger (more variability) | SE increases |
| Larger (bigger sample) | SE decreases |
🔑 Key Insight: Quadrupling the sample size halves the standard error (because ).
Degrees of Freedom
For a one-sample -test:
The degrees of freedom determine which -distribution to use for finding the P-value. More degrees of freedom → the -distribution looks more like a normal distribution.
Worked Example
A school claims its average SAT math score is 500. A random sample of 36 students gives and .
Step 1 — Standard Error:
Step 2 — Test Statistic:
Step 3 — Degrees of Freedom:
Interpretation: The sample mean is 2.0 standard errors above the null value. This is moderate-to-strong evidence against .
How Large Is "Large Enough"?
| Value | Rough Guide | |:-----------:|-------------| | | Weak evidence against | | to | Moderate evidence | | | Strong evidence | | | Very strong evidence |
⚠️ Caution: These are rough guidelines. Always compute the P-value for a precise conclusion.
Test Statistic Concepts 🎯
Computing Test Statistics 🧮
1) , . What is the standard error?
2) , , . What is the -statistic?
3) . What are the degrees of freedom?
Interpreting Test Statistics 🔍
Exit Quiz — Test Statistics ✅
Part 3: P-Values
🔢 P-Values
Part 3 of 7 — How Surprising Is the Evidence?
What Is a P-Value?
The P-value is the probability of obtaining a test statistic as extreme as (or more extreme than) the one observed, assuming is true.
🔑 Plain English: "If nothing special is happening ( is true), how likely is it that we'd see data this extreme just by chance?"
Decision Rule
| Comparison | Decision | Conclusion |
|---|---|---|
| Reject | Result is statistically significant | |
| Fail to reject | Result is NOT statistically significant |
⚠️ Never say "accept ." We either reject or fail to reject.
Interpreting P-Values
| P-value Range | Strength of Evidence Against |
|---|---|
| Weak or no evidence | |
| Moderate evidence | |
| Strong evidence | |
| Very strong evidence |
One-Tailed vs Two-Tailed P-Values
| Test Type | P-value Calculation |
|---|---|
| Right-tailed () | |
| Left-tailed () | |
| Two-tailed () | $P = 2 \cdot P(t \geq |
🔑 Two-tailed tests double the one-tail probability because evidence in either direction counts.
Worked Example
, , , , right-tailed test.
Step 1 — Test statistic:
Step 2 — P-value (using calculator):
Step 3 — Decision:
Step 4 — Conclusion in context: "There is convincing evidence (, ) that the true mean SAT math score at this school is greater than 500."
Writing AP Conclusions
Always include four elements:
- Decision — Reject or fail to reject
- Evidence — Cite -statistic and P-value
- Context — Refer to the specific problem
- Direction — "Greater than," "less than," or "different from"
🔑 AP Tip: "Fail to reject" does NOT mean the null is proven true — only that we lack sufficient evidence.
P-Value Concepts 🎯
P-Value Decisions 🧮
1) The most common significance level is:
2) vs : which is more significant? (enter the P-value)
3) , . Do we reject? (enter "yes" or "no")
P-Value Interpretation 🔍
Exit Quiz — P-Values ✅
Part 4: Type I & Type II Errors
📈 Type I & Type II Errors
Part 4 of 7 — Making the Wrong Decision
Decision Table
Every hypothesis test has four possible outcomes:
| is actually true | is actually false | |
|---|---|---|
| Reject | ❌ Type I Error () | ✅ Correct Decision (Power) |
| Fail to reject | ✅ Correct Decision | ❌ Type II Error () |
Type I Error (False Positive)
Definition: Rejecting when it is actually true.
- Probability = (the significance level)
- You conclude there IS an effect when there really isn't one
Real-world example: A medical test says the patient has a disease, but they are actually healthy.
🔑 Key Connection: Choosing means you accept a 5% chance of a Type I error.
Type II Error (False Negative)
Definition: Failing to reject when it is actually false.
- Probability =
- You conclude there is NO effect when there really IS one
Real-world example: A medical test says the patient is healthy, but they actually have the disease.
Power
Definition: The probability of correctly rejecting a false .
| Factor | Effect on Power |
|---|---|
| Increase (sample size) | Power increases |
| Increase | Power increases (but more Type I risk) |
| Larger true effect size | Power increases |
| Decrease variability () | Power increases |
🔑 AP Tip: Power is typically considered adequate when it is at least 0.80 (80%).
The – Tradeoff
| Action | Type I Risk () | Type II Risk () | Power () |
|---|---|---|---|
| Lower (e.g., 0.01) | Decreases ✅ | Increases ❌ | Decreases ❌ |
| Raise (e.g., 0.10) | Increases ❌ | Decreases ✅ | Increases ✅ |
| Increase | No change | Decreases ✅ | Increases ✅ |
🔑 The only way to reduce BOTH errors is to increase the sample size.
Worked Example
A jury trial: : The defendant is innocent.
| Outcome | Error Type | Consequence |
|---|---|---|
| Convict an innocent person | Type I | Wrongful conviction |
| Acquit a guilty person | Type II | Criminal goes free |
The justice system sets a very low ("beyond reasonable doubt") because Type I errors have severe consequences.
Error Identification 🎯
Error Probabilities 🧮
1) Rejecting a true is a Type ___ error.
2) If , the probability of a Type I error is:
3) If , the power is:
Error Concepts 🔍
Exit Quiz — Type I & Type II Errors ✅
Part 5: One-Sample t-Test
🧮 One-Sample t-Test
Part 5 of 7 — The Complete Procedure
When to Use a One-Sample t-Test
Use a one-sample -test when:
- You have one quantitative variable
- You want to test a claim about the population mean
- The population standard deviation is unknown (use instead)
Conditions (CHECK EVERY TIME)
| Condition | What to Check | How to Verify |
|---|---|---|
| Random | Data from a random sample or randomized experiment | Stated in problem |
| Independence | of the population (10% condition) | |
| Normal/Large Sample | Population is approximately normal OR | Check dotplot/histogram for skew; if , CLT applies |
⚠️ AP Tip: You MUST state and verify all three conditions to earn full credit on the free response.
The Four-Step Process
Step 1 — STATE:
- Define the parameter: "Let = the true mean ..."
- Write hypotheses: vs
Step 2 — PLAN:
- Name the test: "One-sample -test"
- Check all three conditions
Step 3 — DO:
- Find P-value using -distribution with
Step 4 — CONCLUDE:
- Compare P-value to
- State conclusion in context
Worked Example
A manufacturer claims their batteries last 500 hours. A random sample of 25 batteries gives , . Test at .
STATE:
- = true mean battery life (hours)
- , (left-tailed — suspect batteries last LESS)
PLAN:
- One-sample -test
- ✅ Random: stated "random sample"
- ✅ Independent: 25 < 10% of all batteries produced
- ✅ Normal: (borderline); assume no strong skew mentioned
DO:
CONCLUDE: Since , we reject . There is convincing evidence that the true mean battery life is less than 500 hours.
t-Test vs z-Test
| Feature | z-Test | t-Test |
|---|---|---|
| known? | Yes | No (use ) |
| Distribution | Standard normal | with |
| AP Exam usage | Rare (proportions only) | Very common (means) |
t-Test Concepts 🎯
Computing a t-Test 🧮
, , , :
1) ?
2) ?
3) ?
t-Test Procedure 🔍
Exit Quiz — One-Sample t-Test ✅
Part 6: Problem-Solving Workshop
🛠️ Problem-Solving Workshop
Part 6 of 7 — Putting It All Together
Worked Example 1: Cereal Box Weights
A cereal company advertises 16 oz boxes. A consumer group suspects the boxes are underfilled. They weigh a random sample of 40 boxes and find oz, oz. Test at .
STATE:
- = true mean weight of cereal boxes (oz)
- vs (left-tailed — suspect underfilling)
PLAN:
- One-sample -test
- ✅ Random: "random sample" stated
- ✅ Independent: 40 boxes of all boxes produced
- ✅ Normal/Large: → CLT applies
DO:
CONCLUDE: Since , we reject . There is convincing evidence that the true mean weight of cereal boxes is less than 16 oz. The consumer group's suspicion is supported.
Worked Example 2: Study Hours
A college claims students study an average of 15 hours per week. A professor surveys a random sample of 50 students and finds hours, hours. Test at whether the true mean differs from 15.
STATE:
- = true mean weekly study hours for students at this college
- vs (two-tailed — "differs from")
PLAN:
- One-sample -test
- ✅ Random: "random sample" stated
- ✅ Independent: of all college students
- ✅ Normal/Large: → CLT applies
DO:
CONCLUDE: Since , we reject . There is convincing evidence that the true mean weekly study hours for students at this college differs from 15 hours.
Common AP Mistakes to Avoid
| Mistake | Correction |
|---|---|
| Not stating hypotheses in terms of | Always use population parameters |
| Skipping conditions | Must check all three explicitly |
| Saying "accept " | Say "fail to reject " |
| Conclusion without context | "There is (not) convincing evidence that [real-world statement]" |
| Using or in hypotheses | Always use or |
| Forgetting to double P for two-tailed | Two-tailed: |
Workshop Practice 🎯
Workshop Calculations 🧮
, , , :
1) ?
2) ?
3) ?
AP Process Steps 🔍
Exit Quiz — Problem-Solving Workshop ✅
Part 7: Review & Applications
🏆 Review & Applications
Part 7 of 7 — Complete Reference Guide
Formula Reference
| Formula | Expression | Purpose |
|---|---|---|
| Standard Error | Measures variability of | |
| Test Statistic | Standardizes the distance from null | |
| Degrees of Freedom | Determines the -distribution shape |
Hypothesis Test Decision Guide
| Question | Answer |
|---|---|
| "Is it greater than?" | Right-tailed: |
| "Is it less than?" | Left-tailed: |
| "Is it different from?" | Two-tailed: |
Decision Rule
Error Summary
| True | False | |
|---|---|---|
| Reject | Type I () | ✅ Correct (Power = ) |
| Fail to reject | ✅ Correct | Type II () |
Conditions Checklist
| Condition | Check |
|---|---|
| Random | SRS or randomized experiment |
| Independent | of population |
| Normal/Large | (CLT) or data approximately normal |
AP Four-Step Process
- STATE — Define parameter; write and
- PLAN — Name the test; check all three conditions
- DO — Compute SE, , , P-value
- CONCLUDE — Decision + evidence + context
Power Factors
| To Increase Power | Do This |
|---|---|
| Increase | More data → smaller SE → easier to detect effects |
| Increase | More willing to reject (but more Type I risk) |
| Larger effect size | Bigger $ |
| Decrease | Less variability → more precise estimates |
Common Mistakes on the AP Exam
| Mistake | Why It's Wrong |
|---|---|
| "Accept " | We can only "fail to reject" — never prove |
| Using in hypotheses | Hypotheses use (parameter), not (statistic) |
| No context in conclusion | Must relate conclusion to the specific problem |
| Forgetting to check conditions | All three required for full credit |
| Confusing statistical and practical significance | Small P doesn't mean the effect matters in practice |
Comprehensive Review 🎯
Quick Calculations 🧮
1) . ?
2) , . ?
3) , , . ?
Key Concepts 🔍
Exit Quiz — Hypothesis Testing Review ✅