t-Distribution &
Degrees of Freedom
Understand how the t-distribution handles uncertainty in small samples, and why degrees of freedom shape every inference you make.
What Is the t-Distribution?
When we estimate a population mean from a small sample and use the sample standard deviation \( s \) instead of the population standard deviation \( \sigma \), the resulting test statistic does not follow a normal distribution. It follows a t-distribution: a bell-shaped curve that is shorter and wider than the standard normal.
Why Not Just Use \( Z \)?
Comparing \( Z \) and \( t \) Curves
What Are Degrees of Freedom?
Degrees of freedom (df) represent the number of independent pieces of information available to estimate a parameter. When you compute the sample mean \( \bar{x} \) from \( n \) observations, you "use up" one piece of information, leaving \( n - 1 \) free values to estimate variability.
The \( t \)-Statistic Formula
How df Shapes the Curve
\( t \) vs \( Z \): Side by Side
| \( t \)-Distribution | \( Z \)-Distribution | |
|---|---|---|
| Population \( \sigma \) | Unknown (use \( s \)) | Known |
| Shape | Heavier tails | Standard normal |
| Depends on \( n \)? | Yes (via df) | No (always same shape) |
| Typical use | \( n < 30 \) or \( \sigma \) unknown | \( n \geq 30 \) with known \( \sigma \) |
| As \( n \to \infty \) | Approaches \( Z \) | Is \( Z \) |
When to Use the t-Distribution
Step-by-Step t-Test Procedure
Example 1: One-Sample t-Test
A factory claims its light bulbs last \( \mu = 1000 \) hours on average. You test \( n = 12 \) bulbs and find \( \bar{x} = 980 \) hours with \( s = 40 \) hours. At \( \alpha = 0.05 \), is there evidence the true mean is less than 1000?
Example 2: Confidence Interval
Using the same data (\( n = 12 \), \( \bar{x} = 980 \), \( s = 40 \)), construct a 95% confidence interval for the true mean bulb lifetime.
Example 3: Two-Tailed Test
A nutritionist claims a diet plan results in an average loss of \( \mu = 5 \) kg. A sample of \( n = 8 \) participants shows \( \bar{x} = 6.2 \) kg with \( s = 1.8 \) kg. Test at \( \alpha = 0.05 \).
Degrees of Freedom in Context
Common Mistakes
Question 1 of 5
A researcher collects a sample of \( n = 20 \) observations and wants to test a hypothesis about the population mean. The population standard deviation is unknown. What are the degrees of freedom for the t-test?
Question 2 of 5
Compared to the standard normal \( Z \)-distribution, the t-distribution with small degrees of freedom has:
Question 3 of 5
You have a sample of \( n = 10 \) with \( \bar{x} = 52 \), \( s = 6 \), and you are testing \( H_0: \mu = 50 \). What is the value of the t-statistic?
Question 4 of 5
As the degrees of freedom increase toward infinity, the t-distribution:
Question 5 of 5
In a paired t-test, 15 subjects are measured before and after a treatment. What are the degrees of freedom?