From the free course AP Statistics on Lykke
4.4 Setting Up a Test for a Population Mean or Population Mean Difference
Key concepts: One-sample t-test for μ when σ is unknown · Paired design → one-sample t-test on the differences · H₀ always states equality: μ = μ₀ or μd = 0 · Alternative one-sided or two-sided, chosen from the question · Parameter defined in context before any computation · Conditions — random, 10%, and n ≥ 30 or a clean plot
A significance test for a population mean begins with a skepticism of claims. Whether a manufacturer asserts that their batteries last 50 hours or a researcher suspects a new fertilizer increases crop yield, we start by assuming the status quo is true.
A significance test for a population mean begins with a skepticism of claims. Whether a manufacturer asserts that their batteries last 50 hours or a researcher suspects a new fertilizer increases crop yield, we start by assuming the status quo is true. Setting up this test requires a precise translation of a research question into statistical hypotheses and a rigorous verification of the mathematical environment—the conditions—that allow us to use the $t$-distribution.
Identifying the Correct Procedure (Skill 2.C)
Before writing hypotheses, you must determine if the data represent a single quantitative variable from one population or a single quantitative variable of differences from a paired design. While both use the same underlying $t$-test mechanics, the "experimental unit" differs.
| Procedure | Data Structure | Example |
|---|---|---|
| One-Sample $t$-test for $\mu$ | A single sample of $n$ individuals; one measurement per individual. | Measuring the caffeine content in 30 randomly selected cups of "Decaf" coffee. |
| Paired $t$-test for $\mu_d$ | Two measurements on the same individual OR measurements on two matched individuals. | Measuring the reaction time of 20 pilots before and after consuming an energy drink. |
Key Insight: A paired $t$-test is actually a one-sample $t$-test performed on the calculated differences ($d = x_1 - x_2$). We treat the set of differences as our primary data set.
Formulating Hypotheses (Skill 2.E)
The null hypothesis ($H_0$) is the "no effect" or "no difference" claim. It always contains an equality. The alternative hypothesis ($H_a$) represents the researcher’s suspicion—the claim we seek evidence for.
For a Single Population Mean ($\mu$):
- $H_0: \mu = \mu_0$ (where $\mu_0$ is the claimed null value)
- $H_a: \mu > \mu_0$ OR $\mu < \mu_0$ OR $\mu \neq \mu_0$
For a Population Mean Difference ($\mu_d$):
In paired designs, we are almost always testing if the "true mean difference" is zero.
- $H_0: \mu_d = 0$
- $H_a: \mu_d > 0$ OR $\mu_d < 0$ OR $\mu_d \neq 0$
Contextual Example: The Commute Challenge A city claims the average commute time on the "Express Bus" is 25 minutes. A commuter group suspects it is actually longer.
- Variable: $x =$ commute time in minutes.
- Parameter: $\mu =$ the true mean commute time for all Express Bus trips.
- $H_0: \mu = 25$
- $H_a: \mu > 25$
Verifying Conditions for Inference (Skill 4.E)
We cannot use $t$-procedures unless the sampling distribution of the sample mean ($\bar{x}$) is approximately Normal. We verify this through three specific lenses:
- Randomness: The data must come from a random sample or a randomized experiment. This justifies generalizing to the population or claiming a cause-and-effect relationship.
- Independence (10% Condition): If sampling without replacement from a finite population, the sample size $n$ must be less than 10% of the population size $N$. This ensures the observations are "close enough" to independent.
- Normality (Large Sample/Normal): We need to know the sampling distribution of $\bar{x}$ is approximately Normal. This is satisfied if:
- The population distribution is stated to be Normal.
- The sample size is large ($n \geq 30$), invoking the Central Limit Theorem.
- If $n < 30$, the sample data shows no strong skewness or outliers (checked via a dotplot or boxplot).
Misconception Check: The "Data is Normal" Trap
The Error: Students often claim a test is valid because "the sample data is Normal." The Correction: We don't need the sample to be Normal; we need the sampling distribution of the mean to be Normal. If the sample size is small, we look at the sample data only to ensure the population it came from isn't so wildly non-Normal that it breaks our $t$-model.
Summary Checklist for Setup
- Define the parameter ($\mu$ or $\mu_d$) in the specific context of the problem.
- State Hypotheses using correct symbols ($H_0, H_a$) and the null value.
- Identify the test by name (e.g., "One-sample $t$-test for a population mean").
- Verify conditions with explicit evidence from the prompt (e.g., "The problem states 40 cars were randomly selected...").
Retrieval Check: A researcher wants to see if a new "Sleep-Well" pillow changes the average hours of sleep for 15 volunteers. Each volunteer sleeps one night with their old pillow and one night with the "Sleep-Well" pillow (order randomized).
- Is this a one-sample or paired $t$-test?
- If $\mu_d = \text{Sleep}{\text{New}} - \text{Sleep}{\text{Old}}$, what is the alternative hypothesis to test if the new pillow increases sleep?
- Since $n=15$, what must the researcher check in the sample data to proceed?
(Answers: 1. Paired $t$-test; 2. $H_a: \mu_d > 0$; 3. Check a graph of the 15 differences for strong skewness or outliers.)
