Statistics & Probability · Grade 12 and undergraduate
t-Intervals and t-Tests for a Mean
Quick answer
Inference for a mean with the z formula needs the population standard deviation σ, which is almost never known. Replacing it with the sample standard deviation s adds uncertainty, and the statistic t = (x̄ − μ₀)/(s/√n) follows a t distribution with n − 1 degrees of freedom. The t curve looks like the normal curve with heavier tails, so critical values t* are larger than z*, most of all for small samples. Intervals are x̄ ± t* · s/√n, and paired data are analyzed as one sample of differences.
What you'll learn
- Explain why t replaces z when σ is estimated by s
- Find t* for a confidence level and degrees of freedom
- Build and interpret a one-sample t interval
- Carry out one-sample and paired t-tests
When σ is unknown
The z-test for a mean uses the standard error , but the population standard deviation is almost never known. Using the sample standard deviation instead gives the t statistic:
It follows a t distribution with degrees of freedom. Confidence intervals become
| df | for 90% | for 95% | for 99% |
|---|---|---|---|
| 9 | 1.833 | 2.262 | 3.250 |
| 15 | 1.753 | 2.131 | 2.947 |
| 24 | 1.711 | 2.064 | 2.797 |
| 35 | 1.690 | 2.030 | 2.724 |
| ∞ (z) | 1.645 | 1.960 | 2.576 |
Why the tails are heavier
is itself a random quantity. In some samples it comes out smaller than , which makes the denominator too small and too large. That extra wobble puts more probability far from 0 than the normal curve allows, so a result must be farther out to count as unusual. With more data, settles near and the t curve closes in on the normal: at degrees of freedom, is already close to .
- standard normal
- t, 3 df
Worked examples
Common mistakes
Practice problems
-
Find for a interval with a sample of .
Answer
Full solution
.
-
A sample of has and . Find a confidence interval for . ( for df.)
Answer
Full solution
The standard error is , and .
-
A sample of has and . Test against at .
Answer
, p-value ; fail to reject.
Full solution
The standard error is , so with df.
-
Twelve body temperatures average °F with . Test against .
Answer
, p-value ; reject at .
Full solution
The standard error is , and with df.
-
Which is larger, for with df or with df? Why?
Answer
With df
Full solution
Fewer degrees of freedom means a less reliable and heavier tails, so the cutoff sits farther out.
-
In Example 1, how would the interval change with a confidence level?
Answer
Wider: , about
Full solution
Higher confidence needs a larger ; with df it is .
-
Twins are randomly assigned, one to each of two diets. Which test compares the diets?
Answer
A paired t-test on the within-pair differences
Full solution
Each pair is matched, so the differences remove what the twins share.
-
A student builds Example 1’s interval as . What went wrong?
Answer
With in the standard error, must replace .
Full solution
The z value understates the uncertainty from estimating , giving an interval narrower than confidence allows.
Frequently asked questions
When do you use t instead of z?
For a mean whenever the population standard deviation σ is unknown and estimated by the sample standard deviation s, which is nearly always.
What are degrees of freedom?
For a one-sample t procedure, df = n − 1. Smaller df means heavier tails and larger critical values.
How is the t distribution different from the normal?
It is also symmetric and bell-shaped around 0, but with more area in the tails. As df grows it approaches the standard normal.
What is a paired t-test?
A test for data in matched pairs, such as before and after measurements on the same people. Take the difference in each pair and run a one-sample t-test on the differences.
What conditions does a t procedure need?
A random sample or randomized experiment, independent observations, and a population that is roughly normal or a sample large enough (about 30 or more) for the central limit theorem.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSS.IC.B.4Making Inferences and Justifying ConclusionsUse data from a sample survey to estimate a population mean or proportion; develop a margin of error through the use of simulation models for random sampling.