Topic 4.5 Notes – Carrying Out a Test for a Population Mean or Population Mean Difference
The One-Sample t-Test for a Mean or Mean Difference
A one-sample t-test is used when you want to test a population mean and the population standard deviation is unknown. That’s why this is a t procedure instead of a z procedure. You use the sample standard deviation to estimate .
For matched pairs, you do one more step first. Turn each pair into a single difference, then test the population mean of those differences, . After that, it is still a one-sample t-test.
For paired data,
Usually for paired data, .
What the t-statistic means:
- It tells you how many estimated standard errors your sample mean is from the null value.
- Positive means the sample mean is above the null value.
- Negative means the sample mean is below the null value.
- The sign always matches , or for pairs.
When you find a P-value, you use the t-distribution and look at the tail area beyond your test statistic. This graph shows a two-sided test, with equal shaded areas in both tails for -values equally far from 0.

Two-tailed P-value on a t-distribution
Conditions and Setup You Still Need to Carry Through
Even though this topic is about calculations and conclusions, a complete test still includes the earlier setup:
- parameter
- hypotheses
- procedure name
- conditions
The conditions are the same ones you’ve been checking:
- Random
Data came from a random sample or randomized experiment. - Independence
If sampling without replacement, use the 10% condition. - Sample data condition for t procedures
- If population is approximately normal, okay.
- If , usually okay unless the distribution is extremely skewed.
- If , the sample data should have no strong skewness and no outliers.
For matched pairs, check the shape of the differences, not the two original lists.
Good graph language sounds like this:
- “The distribution of sample differences is roughly symmetric with no apparent outliers.”
That is much better than just saying “it looks normal.”
This topic is not the two-sample t-test for two independent means.
Carrying Out the Test
Here’s the flow of the calculation.
- Compute the estimated standard error.
or - Calculate the test statistic.
Report and . - Find the p-value using the alternative hypothesis, not the sample result.
- If , use
- If , use
- If , use
Quick example
Suppose , , , and .
So . If , the p-value is the right-tail probability for with 24 df.
Using a t-table
- Use the row for .
- Most tables give upper-tail areas.
- For a two-sided test, double the one-tail area.
- If your exact df is missing, use the next smaller df. That gives a conservative p-value.
Using technology
Enter:
- correct alternative
Still show the formula setup in your work.
Interpreting the p-Value and Making the Decision
A p-value is the probability, assuming is true, of getting a result as extreme or more extreme than the one observed, in the direction of .
A strong AP Stats interpretation includes:
- the null assumption
- “as extreme or more extreme”
- the direction from the alternative
- the parameter and variable in context
- the random process
Example in context:
- “If the true mean fill weight of all cereal boxes from this shift is 500 grams, then the probability of getting a sample mean at least this far from 500 grams, in either direction, from a random sample of 25 boxes is 0.0245.”
Decision rule:
- If p-value , reject
- If p-value , fail to reject
Statistical significance means evidence against . It does not tell you the effect is large or important.
Writing the Conclusion and Avoiding Common Mistakes
Use AP-style wording.
- If you reject
“Because the p-value is less than or equal to , reject . There is convincing evidence that...” - If you fail to reject
“Because the p-value is greater than , fail to reject . There is not convincing evidence that...”
Your conclusion must name:
- the population
- the response variable
- the parameter
- the direction or difference from
For matched pairs, be careful:
- Define the subtraction order.
- Reversing the order flips the signs of , , and the directional alternative.
- is the number of pairs, not total measurements.
Common mistakes:
- using the wrong tail(s)
- choosing from the sample direction
- saying “the null is true” or “the null is false”
- concluding “greater than” when was “different from”
- treating paired data like two independent samples
Key Takeaways
t Statistic for a One-Sample Mean Test
t = (x̄ − μ₀)/(s/√n)
t Statistic for a Matched-Pairs Mean Difference Test
t = (x̄_d − μ_d,0)/(s_d/√n), usually with μ_d,0 = 0; n is the number of pairs
Degrees of Freedom for a One-Sample t-Test
Df = n − 1
Estimated Standard Error of the Sample Mean
SEx̄ = s/√n
t-Distribution
Null distribution for the one-sample t statistic when σ is unknown; if H₀ is true and conditions are met, t has a t-distribution with df = n − 1
Meaning of the Sign of t
Positive t means x̄ > μ₀, negative t means x̄ < μ₀; for paired data, the sign depends on how differences were defined
p-Value
Probability, assuming H₀ is true, of getting a test statistic as extreme or more extreme than the observed one in the direction of H_a
Upper-Tailed p-Value for a t-Test
For H_a: μ > μ₀, p-value = P(T ≥ t_obs)
Lower-Tailed p-Value for a t-Test
For H_a: μ < μ₀, p-value = P(T ≤ t_obs)
Two-Sided p-Value for a t-Test
For H_a: μ ≠ μ₀, p-value = P(|T| ≥ |t_obs|) = 2P(T ≥ |t_obs|)
Alternative Hypothesis Determines the Tail
Use the tail or tails specified by H_a, not the side where the sample mean happened to fall
Using a t-Table
Use the row for df = n − 1; locate |t_obs| to get the upper-tail area, double it for a two-sided test, and if df is missing use the next smaller df for a conservative p-value
Using Technology for a One-Sample t-Test
Enter μ₀, x̄, s, n, and the alternative, or use raw data; report the test statistic t, the p-value, and df
Significance Level
α, the cutoff for deciding whether the evidence against H₀ is strong enough; it should be chosen before examining the data
Decision Rule for a Hypothesis Test
If p-value ≤ α, reject H₀; if p-value > α, fail to reject H₀.
Statistically Significant
A result is statistically significant at level α if p-value ≤ α.
Reject H₀
Conclude the data provide convincing statistical evidence for the claim in H_a, not proof that H_a is true
Fail to Reject H₀
Conclude the data do not provide convincing evidence for H_a, not that H₀ is true
Matched Pairs
Design with dependent observations within each pair; calculate a difference for each pair and analyze those differences with a one-sample t-test
Population Mean Difference
μ_d, the population mean of the paired differences
Subtraction Order for Paired Differences
Define d consistently, such as first measurement − second measurement; reversing the order changes the signs of x̄_d, t, and any directional H_a
One-Sample t-Test
Significance test for a population mean μ when σ is unknown, or for a matched-pairs population mean difference μ_d using the pair differences; uses t = (x̄ − μ₀)/(s/√n) with df = n − 1
Conclusion in Context
State the decision and a non-definitive conclusion consistent with H_a, naming the population, response variable, and population mean or mean paired difference; use wording like “there is convincing evidence” or “there is not convincing evidence,” not “proved” or “definitely is.”
Randomization Condition
Data come from a random sample or a randomized experiment
10% Condition
When sampling without replacement, n/N ≤ 0.10 so observations can be treated as approximately independent
Sample Data Condition
If n ≥ 30, the t procedure is generally okay unless the population is extremely skewed; if n < 30, the sample data should be free from strong skewness and outliers
Notes
t Statistic for a One-Sample Mean Test
t = (x̄ − μ₀)/(s/√n)
t Statistic for a Matched-Pairs Mean Difference Test
t = (x̄_d − μ_d,0)/(s_d/√n), usually with μ_d,0 = 0; n is the number of pairs
Degrees of Freedom for a One-Sample t-Test
Df = n − 1
Estimated Standard Error of the Sample Mean
SEx̄ = s/√n
t-Distribution
Null distribution for the one-sample t statistic when σ is unknown; if H₀ is true and conditions are met, t has a t-distribution with df = n − 1
Meaning of the Sign of t
Positive t means x̄ > μ₀, negative t means x̄ < μ₀; for paired data, the sign depends on how differences were defined
p-Value
Probability, assuming H₀ is true, of getting a test statistic as extreme or more extreme than the observed one in the direction of H_a
Upper-Tailed p-Value for a t-Test
For H_a: μ > μ₀, p-value = P(T ≥ t_obs)
Lower-Tailed p-Value for a t-Test
For H_a: μ < μ₀, p-value = P(T ≤ t_obs)
Two-Sided p-Value for a t-Test
For H_a: μ ≠ μ₀, p-value = P(|T| ≥ |t_obs|) = 2P(T ≥ |t_obs|)
Alternative Hypothesis Determines the Tail
Use the tail or tails specified by H_a, not the side where the sample mean happened to fall
Using a t-Table
Use the row for df = n − 1; locate |t_obs| to get the upper-tail area, double it for a two-sided test, and if df is missing use the next smaller df for a conservative p-value
Using Technology for a One-Sample t-Test
Enter μ₀, x̄, s, n, and the alternative, or use raw data; report the test statistic t, the p-value, and df
Significance Level
α, the cutoff for deciding whether the evidence against H₀ is strong enough; it should be chosen before examining the data
Decision Rule for a Hypothesis Test
If p-value ≤ α, reject H₀; if p-value > α, fail to reject H₀.
Statistically Significant
A result is statistically significant at level α if p-value ≤ α.
Reject H₀
Conclude the data provide convincing statistical evidence for the claim in H_a, not proof that H_a is true
Fail to Reject H₀
Conclude the data do not provide convincing evidence for H_a, not that H₀ is true
Matched Pairs
Design with dependent observations within each pair; calculate a difference for each pair and analyze those differences with a one-sample t-test
Population Mean Difference
μ_d, the population mean of the paired differences
Subtraction Order for Paired Differences
Define d consistently, such as first measurement − second measurement; reversing the order changes the signs of x̄_d, t, and any directional H_a
One-Sample t-Test
Significance test for a population mean μ when σ is unknown, or for a matched-pairs population mean difference μ_d using the pair differences; uses t = (x̄ − μ₀)/(s/√n) with df = n − 1
Conclusion in Context
State the decision and a non-definitive conclusion consistent with H_a, naming the population, response variable, and population mean or mean paired difference; use wording like “there is convincing evidence” or “there is not convincing evidence,” not “proved” or “definitely is.”
Randomization Condition
Data come from a random sample or a randomized experiment
10% Condition
When sampling without replacement, n/N ≤ 0.10 so observations can be treated as approximately independent
Sample Data Condition
If n ≥ 30, the t procedure is generally okay unless the population is extremely skewed; if n < 30, the sample data should be free from strong skewness and outliers