Learn Without Walls

Choosing the Right Test

Master the decision making process for selecting the appropriate hypothesis test

Lesson Objectives

By the end of this lesson, you will be able to:

1. The Big Picture: All Hypothesis Tests

You've now learned SEVEN different hypothesis tests across Modules 8 and 9. Here's the complete summary:

Test Name What It Tests Test Statistic Key Identifier
One sample z test (mean) One population mean (σ known) z Known σ, one group
One sample t test (mean) One population mean (σ unknown) t Unknown σ, one group
One sample z test (proportion) One population proportion z Proportion, one group
Two sample t test (independent) Two population means (independent) t Two separate groups, means
Paired t test Mean difference (dependent samples) t Same subjects twice or matched pairs
Two sample z test (proportions) Two population proportions z Two groups, proportions/percentages
The Decision Process: Choosing the right test is about asking the right questions in the right order. Follow the flowchart below to make systematic decisions!

2. Decision Flowchart

Hypothesis Test Decision Flowchart

QUESTION 1: What parameter are you testing?
← MEAN (μ) or AVERAGE
PROPORTION (p) or PERCENTAGE →

If testing a MEAN:

QUESTION 2: How many samples/groups?
← ONE sample
Is σ known?
YES → One sample z test
NO → One sample t test
TWO samples →
Independent or Paired?
INDEPENDENT → Two sample t test
PAIRED → Paired t test

If testing a PROPORTION:

QUESTION 2: How many samples/groups?
← ONE sample

One sample z test for proportion
TWO samples →

Two sample z test for proportions

3. Key Decision Questions

Question 1: Mean or Proportion?

Quick Tip: If the data can be counted as "success/failure" or "yes/no," it's a proportion. If it's measured on a scale (height, weight, score), it's a mean.

Question 2: One Sample or Two Samples?

Question 3 (For Two Samples: Means): Independent or Paired?

Most Common Mistake: Using an independent two sample test when you should use a paired test! Always check if the same subjects are measured twice.

Question 4 (For One Sample: Mean): Is σ Known?

In Practice: You'll almost always use a t test for means unless the problem explicitly tells you σ is known. Most real world scenarios have unknown population standard deviations.

4. Practice Scenarios: Identify the Test

Scenario 1

A teacher claims that the average test score in her class is 75. You randomly sample 30 students and find x̄ = 78, s = 8. Test the claim.

Answer: One sample t test

Reasoning:

  • Testing a mean (average test score)
  • One sample (one class)
  • σ unknown (we have s, not σ)

Test: H₀: μ = 75, Hₐ: μ ≠ 75

Scenario 2

A pharmaceutical company tests if Drug A lowers cholesterol more than Drug B. They give Drug A to 40 patients and Drug B to 35 different patients, measuring cholesterol after treatment.

Answer: Independent two sample t test

Reasoning:

  • Testing means (cholesterol levels)
  • Two samples (Drug A group and Drug B group)
  • Independent (different patients in each group)

Test: H₀: μ₁ = μ₂, Hₐ: μ₁ < μ₂ (or μ₁ ≠ μ₂)

Scenario 3

A weight loss program measures the weight of 25 participants before and after an 8 week program. Does the program result in significant weight loss?

Answer: Paired t test

Reasoning:

  • Testing means (weight)
  • Two measurements (before and after)
  • SAME participants measured twice → PAIRED!

Test: Calculate d = Before, After for each person, then test H₀: μd = 0, Hₐ: μd > 0

Scenario 4

A quality control manager claims that no more than 5% of products are defective. A random sample of 200 products finds 15 defective items. Test the claim.

Answer: One sample z test for proportion

Reasoning:

  • Testing a proportion (percentage defective)
  • One sample (one group of products)
  • Comparing to a claimed value (5% or p₀ = 0.05)

Test: H₀: p = 0.05, Hₐ: p > 0.05 (right tailed)

Scenario 5

A researcher wants to know if men and women differ in support for a policy. She surveys 300 men (180 support) and 250 women (165 support).

Answer: Two sample z test for proportions

Reasoning:

  • Testing proportions (support vs. not support)
  • Two samples (men and women)
  • Independent groups (different people)

Test: H₀: p₁ = p₂, Hₐ: p₁ ≠ p₂ (two tailed)

Scenario 6

Researchers measure reading speed for 12 children before and after a speed reading intervention. Does the intervention improve reading speed?

Answer: Paired t test

Reasoning:

  • Testing means (reading speed)
  • Before and after measurements
  • SAME 12 children measured twice → PAIRED!

Test: Calculate d = After, Before, test H₀: μd = 0, Hₐ: μd > 0

5. Common Mistakes and How to Avoid Them

Mistake #1: Using Independent Test for Paired Data

Wrong: Testing before/after data with a two sample t test

Right: Use a paired t test whenever the same subjects are measured twice

Why it matters: Using the wrong test loses statistical power and can lead to incorrect conclusions!

Mistake #2: Confusing Proportions with Means

Wrong: Using a t test when comparing percentages

Right: Percentages, rates, and proportions require z tests

Tip: If the data is categorical (yes/no, success/failure), it's a proportion!

Mistake #3: Not Checking Conditions

Wrong: Blindly applying a test without verifying assumptions

Right: Always check sample size, normality, and independence conditions

Why it matters: Violating conditions can make your results invalid!

Mistake #4: Using z test When σ is Unknown

Wrong: Using a z test for means when you only have sample standard deviation s

Right: Use t test when σ is unknown (which is almost always!)

Tip: If the problem gives you s (not σ), use a t test!

6. Quick Reference Summary

Scenario Test to Use Quick Check
One group, testing a mean, σ unknown One sample t test Have x̄, s, n → compare to μ₀
One group, testing a proportion One sample z test (proportion) Have p̂, n → compare to p₀
Two different groups, comparing means Independent two sample t test Two separate groups, x̄₁ vs x̄₂
Same subjects twice OR matched pairs, comparing means Paired t test Before/after or twins → calculate differences
Two groups, comparing proportions Two sample z test (proportions) p̂₁ vs p̂₂, use pooled proportion

Final Practice: Test Your Skills

Challenge 1: A company tests two ad campaigns. They show Ad A to 500 random customers and Ad B to 450 different random customers. They measure the proportion who make a purchase. Which test?

Two sample z test for proportions. Two independent groups, testing proportions (purchased vs. didn't purchase).

Challenge 2: A researcher tests if a meditation app reduces anxiety. She measures anxiety scores for 30 people before using the app and again after 4 weeks of use. Which test?

Paired t test. Same 30 people measured twice (before and after). Testing means (anxiety scores). Calculate d = Before: After.

Challenge 3: A factory claims the average widget weight is 50 grams. You sample 40 widgets and find x̄ = 48.5, s = 3.2. Which test?

One sample t test. One sample, testing a mean, σ unknown (we have s), comparing to claimed value of 50.

Key Takeaways

← Previous: Lesson 3 Next: Practice Problems →