SECTION 1
Historical Context & Motivation
Statistical hypothesis testing grew out of a practical need: how can a researcher distinguish a genuine effect from mere sampling variability? Before formal tests existed, scientists relied on informal judgment when deciding whether experimental data supported a claim about a population parameter. The development of significance testing gave researchers a structured, reproducible framework for making such decisions—one rooted in probability theory rather than intuition.
1908 • Student's t-Distribution
1925 • Fisher's Framework
1933 • Neyman–Pearson Theory
Modern Era • AP Statistics Curriculum
The central question this lesson addresses is deceptively simple: given a claim about a population mean μ, how do we translate that claim into a pair of competing hypotheses that can be evaluated with sample data? This "setup" phase—writing hypotheses, identifying the parameter, choosing the correct test, and verifying conditions—is the foundation upon which every subsequent calculation and conclusion rests. An error here propagates through the entire analysis, so mastering the setup is essential before turning to test statistics and p-values.
SECTION 2
Core Principles & Definitions
Setting up a hypothesis test for a population mean requires you to clearly define the parameter under investigation, articulate two competing claims, and verify that the sampling conditions justify the use of a t-procedure. Each of these components must be stated precisely and in context—generic or vague language is one of the most common reasons students lose points on the AP exam. The following grid introduces the four foundational ideas you need before writing a single formula.
Parameter of Interest
Null Hypothesis (H₀)
Alternative Hypothesis (Hₐ)
Conditions for Inference
KEY TAKEAWAY
SECTION 3
Visual Explanation: Anatomy of the Test Setup
The following diagram illustrates the complete process of setting up a one-sample t-test for a population mean. It traces the flow from an initial research question through defining the parameter, writing hypotheses, selecting the tail direction, and verifying conditions—all before any computation takes place.
Several points in the diagram deserve special emphasis. First, the parameter definition box explicitly requires you to state what μ represents in the context of the problem and to include units—this is not optional on the AP exam. Second, notice that the three branch options for Hₐ are mutually exclusive; the direction is dictated by the research question, not by preliminary inspection of x̄. Third, the conditions check at the bottom must be addressed with reference to the specific problem scenario—merely listing the names of the conditions without justification earns minimal credit on free-response questions.
SECTION 4
Mathematical Framework
Although the focus of this lesson is on the setup rather than computation, understanding the mathematical structure of the one-sample t-test clarifies why each element of the setup matters. The test statistic, the degrees of freedom, and the conditions all flow directly from the assumptions encoded in your hypotheses.
NULL AND ALTERNATIVE HYPOTHESES
μ is the true population mean; μ₀ is the hypothesized value (a specific number drawn from the problem context). The null always uses "=" while the alternative uses a strict inequality.
ONE-SAMPLE t TEST STATISTIC
x̄ = sample mean, s = sample standard deviation, n = sample size, μ₀ = hypothesized population mean. The denominator s / √n is the standard error of x̄. This statistic follows a t-distribution with df = n − 1 when H₀ is true and conditions are met.
DEGREES OF FREEDOM
The degrees of freedom reflect the fact that estimating σ with s costs one degree of freedom. As n increases, the t-distribution approaches the standard normal (z) distribution.
The test statistic measures how many standard errors the sample mean x̄ falls from the hypothesized value μ₀. A large absolute value of t indicates that the observed data are unlikely under H₀, which in turn provides evidence against the null. Notice that the formula uses s (sample standard deviation) rather than σ (population standard deviation), which is precisely why we need the t-distribution instead of the z-distribution—we are estimating the variability from the data itself. This distinction is critical: on the AP exam, if you are given σ (rare in practice), a z-test is appropriate; otherwise, a t-test is required.
AP Exam Tip
SECTION 5
Choosing the Correct Tail Direction
One of the most consequential decisions in setting up a hypothesis test is choosing whether the alternative hypothesis is one-tailed (left or right) or two-tailed. This choice is driven entirely by the research question and must be made before the data are analyzed. Key language clues in the problem stem guide your decision, and the following diagram and table show exactly how to match common phrasings to the correct form of Hₐ.
A common source of confusion is the distinction between a two-tailed test and two separate one-tailed tests. A two-tailed test (Hₐ: μ ≠ μ₀) is appropriate when you want to detect a deviation in either direction—for instance, when a quality control engineer needs to know whether a machine is filling bottles with too much or too little liquid. A one-tailed test is appropriate when the research question focuses on a specific directional claim, such as a pharmaceutical company testing whether a new drug lowers blood pressure. Using a two-tailed test when the question is directional reduces statistical power, while using a one-tailed test to fish for significance after seeing the data is a violation of the testing framework.
SECTION 6
Worked Example
A city health department claims that the average systolic blood pressure of adults in the city is 120 mmHg. A researcher suspects the true mean may be higher due to local dietary habits. She obtains a simple random sample of 45 adults and records their systolic blood pressures, finding x̄ = 124.3 mmHg and s = 14.8 mmHg. Set up the appropriate hypothesis test.
Setting Up a One-Sample t-Test for Systolic Blood Pressure
- 1
Step 1 — Identify the Parameter
We define the parameter of interest in context. Let μ = the true mean systolic blood pressure (in mmHg) of all adults in the city. Note that μ refers to the entire population, not just the 45 sampled adults.μ = true mean systolic blood pressure (mmHg) of all city adults - 2
Step 2 — State the Hypotheses
The health department's claim (μ = 120) becomes the null hypothesis. Because the researcher "suspects the true mean may be higher," the alternative is one-sided to the right.H₀: μ = 120 Hₐ: μ > 120 - 3
Step 3 — Identify the Test and Significance Level
Because we are testing a single population mean with σ unknown (we only have s = 14.8), the appropriate procedure is a one-sample t-test. Unless otherwise specified, we use α = 0.05.Procedure: one-sample t-test at α = 0.05 - 4
Step 4 — Check Conditions
Random: The problem states the researcher used a simple random sample of 45 adults, so this condition is met. Independence (10% condition): It is reasonable to assume the city has at least 10 × 45 = 450 adults, so the sample is less than 10% of the population; observations are approximately independent. Normal/Large Sample: Since n = 45 ≥ 30, the Central Limit Theorem ensures the sampling distribution of x̄ is approximately normal regardless of the population shape.All three conditions (Random, Independent, Normal/Large Sample) are satisfied ✓ - 5
Step 5 — Summary of Setup
The test is now fully set up. The next steps (which are beyond the scope of this lesson's focus) would involve computing the test statistic t = (124.3 − 120) / (14.8 / √45), finding the p-value from the t-distribution with df = 44, and drawing a conclusion in context.Setup complete — ready to compute t-statistic and p-value
SECTION 7
Common Errors & How to Avoid Them
Free-response scoring guides from the College Board reveal several recurring errors that cost students points on hypothesis test setup questions. The table below catalogs the most common mistakes alongside the correct approach, so you can develop habits that translate directly into exam credit.
| Common Error | Why It's Wrong | Correct Approach |
|---|---|---|
| Writing H₀: x̄ = 120 | x̄ is a sample statistic, not a parameter. Hypotheses are about the population. | H₀: μ = 120. Always use the population parameter μ. |
| Choosing tail direction after seeing data | This inflates the Type I error rate and violates the test's validity. | Determine the direction from the research question before analysis. |
| Failing to define μ in context | Without context, the reader cannot verify the hypotheses match the problem. | "Let μ = the true mean [quantity] of [population], in [units]." |
| Writing H₀: μ ≥ 120 or H₀: μ ≤ 120 | In AP Statistics, the null is always a statement of equality (μ = μ₀). | Use H₀: μ = μ₀. The inequality goes only in Hₐ. |
| Listing conditions without justification | Simply naming "Random, Normal, Independent" without connecting to the problem earns minimal credit. | Explain: "SRS is stated; n = 45 ≥ 30 so CLT applies; 45 < 10% of city population." |
Common errors in hypothesis test setup and their corrections
KEY TAKEAWAY
SECTION 8
Connection to Confidence Intervals and Two-Sample Tests
The one-sample t-test for a population mean does not exist in isolation—it belongs to a broader family of inference procedures. Understanding how the test setup connects to confidence intervals and extends to two-sample scenarios will deepen your conceptual understanding and help you navigate the full scope of AP Statistics inference questions.
| Feature | One-Sample t-Test (This Lesson) | Confidence Interval for μ | Two-Sample t-Test |
|---|---|---|---|
| Goal | Test whether μ equals a specific value μ₀ | Estimate a range of plausible values for μ | Test whether μ₁ − μ₂ equals 0 (or another value) |
| Parameter | μ (one population mean) | μ (one population mean) | μ₁ − μ₂ (difference of two means) |
| Hypotheses | H₀: μ = μ₀; Hₐ: μ (<, >, ≠) μ₀ | No formal hypotheses; instead, interpret interval | H₀: μ₁ − μ₂ = 0; Hₐ: μ₁ − μ₂ (<, >, ≠) 0 |
| Conditions | Random, Independent, Normal/Large Sample | Same three conditions | Same three conditions, checked for each sample independently |
| Key Relationship | Reject H₀ if p-value < α | If μ₀ is not in the CI, a two-tailed test would reject H₀ | Setup extends naturally; uses two x̄ values and pooled or unpooled SE |
Comparison of one-sample t-test with related inference procedures
A particularly elegant connection exists between the one-sample t-test and the confidence interval. For a two-tailed test at significance level α, rejecting H₀ is equivalent to finding that μ₀ falls outside the (1 − α) × 100% confidence interval for μ. This duality means that if you construct a 95% confidence interval and the hypothesized value μ₀ lies outside it, a two-tailed test at α = 0.05 would also reject H₀. As you progress through the AP Statistics curriculum, you will encounter paired t-tests and two-sample t-tests; the setup logic you learn here—define the parameter, write hypotheses, check conditions—transfers directly to those more complex scenarios.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
- A. H₀: x̄ = 8; Hₐ: x̄ ≠ 8
- B. H₀: μ = 8; Hₐ: μ < 8
- C. H₀: μ = 8; Hₐ: μ ≠ 8
- D. H₀: μ ≠ 8; Hₐ: μ = 8
- E. H₀: μ > 8; Hₐ: μ = 8
Show answer (C)
Question 2: BASIC CALCULATION
- A. Hₐ: μ > 35
- B. Hₐ: μ ≠ 35
- C. Hₐ: x̄ < 35
- D. Hₐ: μ < 35
- E. Hₐ: μ ≤ 35
Show answer (D)
Question 3: INTERMEDIATE
- A. One-sample z-test; the sample size of 22 is large enough by the CLT.
- B. One-sample t-test; n = 22 ≥ 30 so the CLT applies.
- C. One-sample t-test; although n = 22 < 30, the sample data are roughly symmetric with no outliers, so the Normal condition is reasonable.
- D. One-sample t-test; the population of protein bars is normally distributed.
- E. Two-sample t-test; we are comparing the sample to the labeled value.
Show answer (C)
Question 4: APPLIED
4 ptsShow answer
Question 5: CRITICAL THINKING
4 ptsShow answer
SUMMARY
Lesson Summary
Summary
Setting up a hypothesis test for a population mean requires four essential steps. First, define the parameter μ in context, specifying the population and units. Second, write the null hypothesis H₀: μ = μ₀ (always an equality) and the alternative hypothesis Hₐ with the direction (<, >, or ≠) determined by the research question, not the data. Third, identify the procedure as a one-sample t-test (since σ is almost always unknown). Fourth, verify the three conditions: Random (data from a random sample or experiment), Independence (10% condition: n ≤ 0.10N), and Normal/Large Sample (population approximately normal, or n ≥ 30 by CLT, or sample data show no strong skewness or outliers for smaller samples).
Remember that the tail direction must be chosen before examining the data, and hypotheses are always stated in terms of the population parameter μ, never the sample statistic x̄. On the AP exam, the setup is typically worth the majority of the points on inference free-response questions, so a careful, context-rich setup is your highest-return investment.