01 / 20
\( \text{t} \)

The t-Distribution

Master the probability distribution used when sample sizes are small and population standard deviation is unknown: the foundation of real-world biostatistics.

Biostatistics

What Is the t-Distribution?

The t-distribution (also called Student's t) is a family of symmetric, bell-shaped curves that resemble the standard normal distribution but have heavier tails. It was developed by William Sealy Gosset in 1908 while working at the Guinness brewery.

Key Parameters and Vocabulary

Degrees of Freedom
Written \( \nu = n - 1 \). Controls the shape of the curve: fewer df means heavier tails.
Sample Mean \( \bar{x} \)
The average of your observed data values, used as the point estimate for the population mean \( \mu \).
Sample SD \( s \)
Estimates the unknown \( \sigma \). Adds extra uncertainty, which is why tails are heavier than the normal curve.

Visualizing the Shape

Why the Heavier Tails?

When you replace the known \( \sigma \) with the estimated \( s \), you introduce extra variability. The sample standard deviation \( s \) itself varies from sample to sample. This additional source of uncertainty means extreme values are more likely than the normal distribution predicts.

1
Small \( n \): \( s \) is a rough estimate of \( \sigma \), so the t-curve has very heavy tails.
2
Large \( n \): \( s \approx \sigma \), so the extra uncertainty shrinks and the t-curve converges to the normal.
3
Critical values are larger: For a given confidence level, \( t^* > z^* \), producing wider confidence intervals.

The \(t\)-Statistic Formula

Numerator
The difference \( \bar{x} - \mu_0 \): how far your sample mean is from the hypothesized value.
Denominator
The standard error \( \text{SE} = s / \sqrt{n} \): measures precision of \( \bar{x} \).

Confidence Interval for \( \mu \)

The margin of error is \( t^* \cdot \text{SE} \). Because \( t^* > z^* \) for small samples, t-based intervals are wider than z-based intervals, reflecting greater uncertainty.

\(t\) vs. \(Z\): When to Use Which

Feature \(t\)-Distribution \(Z\) (Normal)
Population \( \sigma \) Unknown Known
Sample size Any, but especially \( n < 30 \) Large \( n \geq 30 \) (or \( \sigma \) known)
Tail weight Heavier (depends on \( \nu \)) Fixed
Critical value (95%) \( t^*_{0.025,9} = 2.262 \) \( z^* = 1.960 \)
Assumption Population ~ Normal (or \( n \) moderate) CLT or known normality

How to Apply the \(t\)-Test

1
State hypotheses: \( H_0: \mu = \mu_0 \) vs. \( H_a: \mu \neq \mu_0 \) (or one-sided).
2
Check conditions: Random sample, independence, and population approximately normal (or \( n \geq 15 \) with no extreme skew).
3
Compute: Calculate \( t = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} \) and \( \nu = n - 1 \).
4
Find the p-value: Use the t-table or software with \( \nu \) degrees of freedom.
5
Decide: If \( p \leq \alpha \), reject \( H_0 \). Otherwise, fail to reject.

Example 1: Blood Pressure Study

A researcher measures systolic blood pressure in \( n = 12 \) patients after a new drug. She finds \( \bar{x} = 118 \) mmHg and \( s = 10 \) mmHg. Test whether the mean differs from the healthy baseline \( \mu_0 = 120 \) at \( \alpha = 0.05 \).

Example 2: Confidence Interval

A clinical trial of \( n = 8 \) patients finds a mean recovery time of \( \bar{x} = 5.3 \) days with \( s = 1.2 \) days. Construct a 95% confidence interval for the true mean recovery time.

We are 95% confident the true mean recovery time is between 4.30 and 6.30 days.

Example 3: One-Sided Test

A lab claims a new assay detects biomarker levels above \( \mu_0 = 50 \) pg/mL. In \( n = 15 \) samples, \( \bar{x} = 54.2 \) and \( s = 6.8 \). Test \( H_a: \mu > 50 \) at \( \alpha = 0.01 \).

How Degrees of Freedom Affect Critical Values

Conditions for Using the \(t\)-Test

1
Random sampling: Data must come from a random sample or randomized experiment.
2
Independence: Observations are independent. For sampling without replacement, \( n < 10\% \) of the population.
3
Normality: The population is approximately normal, or \( n \geq 15 \) with no strong skew, or \( n \geq 30 \) (CLT kicks in).

Common Mistakes to Avoid

✕ Using Z when \( \sigma \) is unknown
If you estimate \( \sigma \) with \( s \), you must use the t-distribution, not the normal, even for moderate \( n \).
✕ Wrong degrees of freedom
For a one-sample t-test, \( \nu = n - 1 \), not \( n \). Using \( \nu = n \) gives the wrong critical value.
✕ Ignoring normality with tiny \( n \)
With \( n < 15 \) and a clearly skewed distribution, the t-test assumptions break down. Always check a histogram or normal probability plot.

Question 1 of 5

A researcher collects a sample of \( n = 10 \) observations and does not know the population standard deviation. What distribution should she use to test a hypothesis about the mean?

Question 2 of 5

Which of the following best describes how the t-distribution differs from the standard normal distribution?

Question 3 of 5

Given \( n = 20 \), \( \bar{x} = 85 \), \( s = 12 \), and \( \mu_0 = 80 \), what is the value of the t-statistic?

Question 4 of 5

For a 95% confidence interval with \( \nu = 7 \), the critical value is \( t^* = 2.365 \). If \( \bar{x} = 5.3 \) and \( \text{SE} = 0.424 \), what is the confidence interval?

Question 5 of 5

As the degrees of freedom \( \nu \) increase toward infinity, the t-distribution: