U7.5 One-Sample t-Test for a Mean
Master the one-sample t-test for a population mean: set up hypotheses, check conditions, compute the t-statistic and p-value, and conclude in context.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on U7.5 One-Sample t-Test for a Mean, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
You have already built a confidence interval for a mean using the -distribution. Now you will use that same machinery to answer a yes-or-no question: is there convincing evidence that a population mean differs from some claimed value? That is the job of the one-sample -test.
This lesson walks through the full four-step significance test the exam rewards: state hypotheses, check the conditions, calculate the test statistic and -value, and write a conclusion tied to the context. Nail these steps and you will pick up nearly all the points on any mean-testing FRQ, because the AP rubric grades the process almost as much as the final answer.
This lesson walks through the full four-step significance test the exam rewards: state hypotheses, check the conditions, calculate the test statistic and -value, and write a conclusion tied to the context. Nail these steps and you will pick up nearly all the points on any mean-testing FRQ, because the AP rubric grades the process almost as much as the final answer.
Setting Up the Hypotheses
Every significance test starts with two competing claims about a parameter, here the true population mean . The null hypothesis always states no effect or no difference: , where is the specific value from the problem (a manufacturer's claim, a historical average, a target). The alternative hypothesis expresses what you are trying to find evidence for, and it takes one of three forms:
Three rules save easy points. First, hypotheses are about the population mean , never the sample mean — writing loses credit. Second, define in words in context (" = the true mean battery life, in hours, of all batteries"). Third, decide the direction from the research question, not from your data. Choosing a one-sided alternative after seeing which way the sample came out is a serious error. If the question only asks whether the mean "differs" or "changed," use the two-sided form.
| Alternative | When to use it | Wording clue |
|---|---|---|
| one-sided, upper | "greater than," "increased" | |
| one-sided, lower | "less than," "decreased" | |
| two-sided | "differs," "changed" |
Checking the Conditions
Before you trust any -procedure, verify three conditions and state them explicitly with evidence from the problem.
The Random condition requires that the data come from a random sample or randomized experiment. Quote the design: "The problem states a random sample of 30 students was selected." This lets you generalize to the population.
The Independence (10% condition) requires that individual observations are independent. When sampling without replacement, check that the sample is at most 10% of the population: . State it: "It is reasonable to assume there are more than 300 students in the population."
The Normal/Large Sample condition protects the sampling distribution of . It is met if the population is stated to be approximately normal, OR the sample size is large () by the Central Limit Theorem, OR — for small samples — a graph of the data (dotplot, boxplot, histogram) shows no strong skew and no outliers. On the exam, if and no distribution is given, you must reference the provided graph.
A common misconception: the Normal condition is about the shape of the population or the sampling distribution, not the sample itself. Also, never skip stating conditions to save time; the FRQ rubric usually has a dedicated point for correctly verifying all three.
The Random condition requires that the data come from a random sample or randomized experiment. Quote the design: "The problem states a random sample of 30 students was selected." This lets you generalize to the population.
The Independence (10% condition) requires that individual observations are independent. When sampling without replacement, check that the sample is at most 10% of the population: . State it: "It is reasonable to assume there are more than 300 students in the population."
The Normal/Large Sample condition protects the sampling distribution of . It is met if the population is stated to be approximately normal, OR the sample size is large () by the Central Limit Theorem, OR — for small samples — a graph of the data (dotplot, boxplot, histogram) shows no strong skew and no outliers. On the exam, if and no distribution is given, you must reference the provided graph.
A common misconception: the Normal condition is about the shape of the population or the sampling distribution, not the sample itself. Also, never skip stating conditions to save time; the FRQ rubric usually has a dedicated point for correctly verifying all three.
Computing the t-Statistic and p-Value
Because we estimate the population standard deviation with the sample standard deviation , we standardize using the -distribution rather than the normal. The test statistic measures how many standard errors the observed mean sits from the hypothesized mean:The quantity is the standard error of the mean. The relevant -distribution has degrees of freedom. A larger means the data are farther from and give stronger evidence against it.
The -value is the probability of getting a test statistic at least as extreme as the observed , assuming is true. Find it from the -distribution with degrees of freedom:
On a calculator, tcdf or T-Test gives the -value directly. If using a table, you can only bracket the -value between two columns — that is acceptable for the FRQ as long as you report the interval, e.g. .
The -value is the probability of getting a test statistic at least as extreme as the observed , assuming is true. Find it from the -distribution with degrees of freedom:
| Alternative | p-value |
|---|---|
| area to the right of | |
| area to the left of | |
| area beyond |
Making a Conclusion in Context
The conclusion compares your -value to the significance level (use unless the problem specifies otherwise) and always links back to the alternative hypothesis in context. Use a two-part template.
If : "Because the -value of ___ is less than ___, we reject . There is convincing evidence that [statement of in context]."
If : "Because the -value of ___ is greater than ___, we fail to reject . There is not convincing evidence that [statement of in context]."
Two phrasings cost points on the exam. Never say you "accept " — failing to reject means the data are consistent with , not that is proven true. And never conclude about the sample; the conclusion is a claim about the population mean .
Remember the interpretation of the -value itself, which readers frequently ask you to state: it is the probability, computed assuming is true, of observing a sample mean as extreme as or more extreme than the one obtained. A small -value means such data would be surprising if were true, which is why it counts as evidence against .
If : "Because the -value of ___ is less than ___, we reject . There is convincing evidence that [statement of in context]."
If : "Because the -value of ___ is greater than ___, we fail to reject . There is not convincing evidence that [statement of in context]."
Two phrasings cost points on the exam. Never say you "accept " — failing to reject means the data are consistent with , not that is proven true. And never conclude about the sample; the conclusion is a claim about the population mean .
Remember the interpretation of the -value itself, which readers frequently ask you to state: it is the probability, computed assuming is true, of observing a sample mean as extreme as or more extreme than the one obtained. A small -value means such data would be surprising if were true, which is why it counts as evidence against .
Key terms
- Null hypothesis ().
- The default claim of no effect, stated as , that the test assumes true when computing the p-value.
- Alternative hypothesis ().
- The claim you seek evidence for, written as , , or .
- Standard error of the mean.
- An estimate of the variability of the sample mean, equal to , used in the denominator of the t-statistic.
- t-statistic.
- The standardized distance of from : , evaluated with degrees of freedom.
- Degrees of freedom.
- The parameter that selects the specific t-distribution for a one-sample test.
- p-value.
- The probability, assuming is true, of getting a test statistic at least as extreme as the observed value.
- Significance level ().
- The threshold, often 0.05, against which the p-value is compared to decide whether to reject .
Worked example
A cereal company claims its boxes contain a mean of 18 ounces of cereal. A consumer group suspects the true mean is less. They randomly sample 25 boxes and find ounces with ounces. A dotplot of the 25 weights shows no strong skew or outliers. Test the consumer group's claim at .
Step 1 — Hypotheses. Let = the true mean weight, in ounces, of all cereal boxes. Because the group suspects the mean is less than the claim, use a one-sided test: versus .
Step 2 — Conditions. Random: the 25 boxes were randomly sampled. Independence: it is reasonable that the company produces more than boxes, so the 10% condition holds. Normal: , but the dotplot shows no strong skew and no outliers, so the sampling distribution of is approximately normal. All conditions are met, so a one-sample -test is appropriate.
Step 3 — Test statistic and p-value. The standard error is . Then with . For a lower-tailed test, the -value is the area to the left of : .
Step 4 — Conclusion. Because the -value of about is less than , we reject . There is convincing evidence that the true mean weight of the cereal boxes is less than 18 ounces.
Step 2 — Conditions. Random: the 25 boxes were randomly sampled. Independence: it is reasonable that the company produces more than boxes, so the 10% condition holds. Normal: , but the dotplot shows no strong skew and no outliers, so the sampling distribution of is approximately normal. All conditions are met, so a one-sample -test is appropriate.
Step 3 — Test statistic and p-value. The standard error is . Then with . For a lower-tailed test, the -value is the area to the left of : .
Step 4 — Conclusion. Because the -value of about is less than , we reject . There is convincing evidence that the true mean weight of the cereal boxes is less than 18 ounces.
Practice questions
A researcher runs a one-sample t-test with , a sample of , and computes . Which of the following correctly describes how to find the p-value?
- Find the area to the right of using 16 degrees of freedom
- Find the area to the right of using 15 degrees of freedom
- Double the area to the right of using 15 degrees of freedom
- Double the area to the right of using 16 degrees of freedom
Answer: Double the area to the right of using 15 degrees of freedom
The degrees of freedom for a one-sample t-test are , not . Because the alternative is two-sided (), the p-value is the combined area in both tails, which equals twice the area beyond .
A quality inspector tests whether the mean fill volume of a bottling machine differs from the target of 500 mL. From a random sample of 40 bottles she finds mL and mL. State the hypotheses, compute the test statistic, and describe how you would reach a conclusion at .
Answer: , ; with 39 df; two-sided p-value , so reject .
Let be the true mean fill volume. Since the question asks whether the mean 'differs,' the alternative is two-sided. The standard error is , so with . The two-sided p-value is about , which is less than , so you would reject and conclude there is convincing evidence the mean fill volume differs from 500 mL. With the Normal condition is satisfied by the Central Limit Theorem.
A test produces a p-value of 0.18 at . A student writes: 'Since , we accept the null hypothesis and conclude the population mean equals .' Identify and correct the error.
Answer: You never accept ; you fail to reject it, concluding only that there is not convincing evidence for .
Failing to reject the null does not prove it true — the data are simply consistent with it, and the true mean could still differ by an amount too small to detect. The correct wording is: 'Because , we fail to reject . There is not convincing evidence that the population mean differs from .'
FAQ
- When do I use a t-test instead of a z-test for a mean?
- Use a t-test whenever you do not know the true population standard deviation and must estimate it with the sample standard deviation — which is essentially always in AP Statistics. The z-test for a mean requires a known , a situation that almost never appears on the exam, so the one-sample t-test is your default procedure for a mean.
- What degrees of freedom do I use for a one-sample t-test?
- Use , where is the sample size. For example, a sample of 25 observations uses 24 degrees of freedom. This determines which t-distribution you use to find the p-value.
- How do I decide between a one-sided and two-sided alternative?
- Read the research question before looking at the data. If it asks whether the mean 'increased,' 'is greater than,' or 'is less than' a value, use a one-sided alternative in that direction. If it asks whether the mean 'differs,' 'changed,' or 'is not equal to,' use a two-sided alternative. Never pick the direction based on which way your sample happened to come out.
- What exactly does the p-value mean in a t-test?
- The p-value is the probability of getting a sample mean as extreme as, or more extreme than, the one you observed, assuming the null hypothesis is true. A small p-value means your data would be surprising under , which is why it counts as evidence against the null. It is not the probability that is true.
Learn this with a teacher, not a page
The Crimsora tutor teaches U7.5 One-Sample t-Test for a Mean live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.