Carrying Out a Test
for a Population Mean
Master the one-sample \(t\)-test: from stating hypotheses to computing \(p\)-values and drawing conclusions about \(\mu\).
What Is a Hypothesis Test?
A hypothesis test is a formal procedure for deciding whether sample data provide convincing evidence against a claim about a population parameter. When the parameter is a population mean \(\mu\), we use the one-sample \(t\)-test.
The Big Picture of a \(t\)-Test
Why the \(t\)-Distribution?
When the population standard deviation \(\sigma\) is unknown (which is almost always), we replace it with the sample standard deviation \(s\). This extra uncertainty makes the sampling distribution wider than a normal curve: it follows a \(t\)-distribution with \(df = n - 1\).
The Test Statistic Formula
$$ t = \frac{\bar{x} - \mu_0}{\dfrac{s}{\sqrt{n}}} $$
Conditions for the \(t\)-Test
One-Tailed vs Two-Tailed Tests
| One-Tailed | Two-Tailed | |
|---|---|---|
| \(H_a\) | \(\mu > \mu_0\) or \(\mu < \mu_0\) | \(\mu \neq \mu_0\) |
| Tail(s) shaded | 1 tail (right or left) | Both tails |
| \(p\)-value | Area in one tail | \(2 \times\) area in one tail |
| When to use | Directional claim | "Different from" claim |
Understanding the \(p\)-Value
The \(p\)-value is the probability of obtaining a test statistic as extreme as (or more extreme than) the observed value, assuming \(H_0\) is true.
How to Carry Out the Test
tcdf with appropriate bounds.Example 1: Coffee Shop Wait Times
A coffee shop claims the mean wait time is \(\mu = 4\) minutes. A random sample of \(n = 25\) customers has \(\bar{x} = 4.8\) min and \(s = 1.5\) min. At \(\alpha = 0.05\), is there evidence the mean wait is longer than 4 minutes?
Example 1: Finding the \(p\)-Value
Example 2: Body Temperature
Is the mean human body temperature different from \(98.6^\circ\text{F}\)? A random sample of \(n = 50\) healthy adults has \(\bar{x} = 98.26\) and \(s = 0.73\). Test at \(\alpha = 0.05\).
Example 2: Two-Tailed \(p\)-Value
Example 3: Failing to Reject \(H_0\)
A battery manufacturer claims batteries last \(\mu = 500\) hours. A sample of \(n = 16\) batteries gives \(\bar{x} = 492\) hours and \(s = 25\) hours. Test \(H_a\!: \mu < 500\) at \(\alpha = 0.05\).
Common Mistakes to Avoid
Summary: Decision Rules
| Scenario | Decision | Template Conclusion |
|---|---|---|
| \(p < \alpha\) | Reject \(H_0\) | There is convincing evidence that \(\mu\) [direction] \(\mu_0\). |
| \(p \geq \alpha\) | Fail to reject \(H_0\) | There is not convincing evidence that \(\mu\) [direction] \(\mu_0\). |
Question 1 of 5
A researcher tests \(H_0\!: \mu = 50\) vs \(H_a\!: \mu > 50\) with a sample of \(n = 36\), \(\bar{x} = 53\), and \(s = 9\). What is the value of the test statistic?
Question 2 of 5
A \(t\)-test yields \(p = 0.032\) with \(\alpha = 0.05\). What is the correct conclusion?
Question 3 of 5
For a two-tailed \(t\)-test, a calculator gives a one-tail area of \(0.018\). What is the \(p\)-value?
Question 4 of 5
Which of the following is not a condition that must be verified before performing a one-sample \(t\)-test?
Question 5 of 5
A sample of \(n = 20\) gives \(t = -1.85\) for \(H_a\!: \mu < 100\) with \(df = 19\). Using a \(t\)-table, the \(p\)-value is between 0.025 and 0.05. At \(\alpha = 0.05\), what do you conclude?