01 / 20

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.

College Statistics

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 \)?

\( Z \)-Score
Requires knowing the true population \( \sigma \). Works well for large samples (\( n \geq 30 \)) where \( s \approx \sigma \).
\( t \)-Score
Uses the sample \( s \) in place of \( \sigma \). Accounts for extra uncertainty: heavier tails mean wider confidence intervals.

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

\( \bar{x} - \mu_0 \)
How far the sample mean is from the hypothesized value
\( s / \sqrt{n} \)
The standard error: estimated variability of the sample mean
\( \text{df} = n - 1 \)
Degrees of freedom that determine the exact shape of the curve

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

1
Population \( \sigma \) is unknown and must be estimated with the sample \( s \).
2
Small sample size (typically \( n < 30 \)), so the Central Limit Theorem provides less assurance.
3
Population is approximately normal (or at least not heavily skewed), since the t-test assumes normality.
4
Constructing confidence intervals for the mean: replace \( z^* \) with \( t^* \) from the t-table using \( \text{df} = n - 1 \).

Step-by-Step t-Test Procedure

1
State hypotheses: \( H_0: \mu = \mu_0 \) vs \( H_a: \mu \neq \mu_0 \) (or one-sided).
2
Check conditions: random sample, independence, population approximately normal (or \( n \geq 30 \)).
3
Compute the test statistic: \( t = \dfrac{\bar{x} - \mu_0}{s / \sqrt{n}} \) with \( \text{df} = n - 1 \).
4
Find the p-value using the t-table or technology with \( \text{df} = n - 1 \).
5
Make a decision: if \( p\text{-value} < \alpha \), reject \( H_0 \). Otherwise, fail to reject.

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

One-Sample \( t \)
\( \text{df} = n - 1 \)
Paired \( t \)
\( \text{df} = n_{\text{pairs}} - 1 \)
Two-Sample \( t \) (pooled)
\( \text{df} = n_1 + n_2 - 2 \)

Common Mistakes

✕ Using \( Z \) instead of \( t \)
When \( \sigma \) is unknown and you use \( s \), you must use the t-distribution, not the normal.
✕ Wrong df
For a one-sample test, df = \( n - 1 \), not \( n \). Using the wrong df changes the critical value and p-value.
✕ Ignoring normality
The t-test assumes the population is roughly normal. With small \( n \) and heavy skew, results are unreliable.

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?