impera Open Impera

AP Statistics · Inference for quantitative data: means

The t-distribution

1Why we need t

For inference about a mean, the standard deviation of $\bar{x}$ is $\frac{\sigma}{\sqrt{n}}$, but $\sigma$ is almost never known. We replace it with the sample SD $s$, giving the standard error:

$$SE_{\bar{x}} = \frac{s}{\sqrt{n}}$$

Because $s$ varies from sample to sample, the statistic

$$t = \frac{\bar{x} - \mu}{s/\sqrt{n}}$$

has more variability than $z$. It follows a t-distribution rather than the standard normal.

Check yourself

The standard error of x̄ is:

  • s/n

  • σ/n

  • s√n

  • s/√n

Show the answer

s/√n

σ replaced by s.

2Properties of t-distributions

  • Symmetric, single-peaked and centred at 0, like the standard normal.
  • Heavier tails (more spread) than the normal, because of the extra uncertainty from estimating $\sigma$.
  • A different curve for each value of degrees of freedom, $df = n - 1$ for one sample.
  • As $df$ increases, the t-distribution gets closer to the standard normal.

t-distributions are more spread out than the normal, especially for small df

Check yourself

Compared with the standard normal, a t-distribution has:

  • Skewed shape

  • Lighter tails

  • A different centre

  • Heavier tails

Show the answer

Heavier tails

More spread.

3Critical values t*

Critical values depend on the confidence level and the degrees of freedom. For 95% confidence:

  • $df = 9$: $t^* = 2.262$
  • $df = 19$: $t^* = 2.093$
  • $df = 29$: $t^* = 2.045$
  • $df = \infty$: $t^* = 1.960$ (the $z^*$ value)
Worked example

a sample of 16 gives $df = 15$. For 95% confidence, $t^* = 2.131$; for 99%, $t^* = 2.947$.

On a calculator, use invT(area to the left, df): for 95%, invT(0.975, 15) ≈ 2.131. If a table does not list your $df$, use the next smaller $df$ (conservative).

Check yourself

For a sample of size 20, the degrees of freedom are:

  • 18

  • 21

  • 19

  • 20

Show the answer

19

n − 1.

4Conditions for t procedures

  • Random: random sample or random assignment.
  • 10%: $n \le 10\%$ of the population.
  • Normal/Large Sample: the population is normal, or $n \ge 30$, or (for small $n$) a graph of the sample data shows no strong skewness and no outliers.
Worked example

a sample of 12 battery lifetimes has a dotplot that is roughly symmetric with no outliers, so the Normal condition is reasonably met even though $n < 30$.

t procedures are robust: they work well for moderate departures from normality, but outliers and strong skewness in small samples can make them unreliable.

Check yourself

For n = 10 with a strongly skewed sample, t procedures are:

  • Fine because t is robust

  • Not appropriate

  • Fine because n ≥ 10

  • Always exact

Show the answer

Not appropriate

Small n, strong skew.

5Going deeper: why t replaces z, degrees of freedom and checking the conditions

The problem: inference for a mean would use $z = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}$, but the population standard deviation σ is almost never known. We estimate it with the sample standard deviation s.

Standard error of the mean: $SE_{\bar{x}} = \frac{s}{\sqrt{n}}$.

Replacing σ by s adds extra uncertainty, especially in small samples, because s itself varies from sample to sample. The statistic

$$t = \frac{\bar{x} - \mu}{s / \sqrt{n}}$$

therefore does not follow a normal distribution. It follows a t distribution with n − 1 degrees of freedom.

Properties of t distributions

  • Symmetric, single-peaked, bell-shaped, centered at 0.
  • More spread out than the standard normal: heavier tails, so more area far from the center.
  • A different curve for each number of degrees of freedom (df).
  • As df increases, the t distribution approaches the standard normal. For large samples they are almost the same.

Critical values t* are larger than the matching z*, to make up for the extra uncertainty.

For 95% confidence:

  • df = 4: t* = 2.776.
  • df = 9: t* = 2.262.
  • df = 24: t* = 2.064.
  • df = 29: t* = 2.045.
  • df = 99: t* about 1.984.
  • z* = 1.960.
Worked example

find t* for a 95% confidence interval from a sample of 25.

  1. df = 25 − 1 = 24.
  2. From the table, 95% confidence (0.025 in each tail): 2.064.
  3. With a table that lacks the exact df, use the next lower df shown: this gives a slightly larger t*, which is the cautious choice.

Worked example (effect on an interval): a sample of 10 has s = 5.

  1. Standard error = 5 ÷ √10 = 1.58.
  2. With t* = 2.262: margin of error = 3.58.
  3. Had z* = 1.96 been used wrongly: 3.10: too narrow, and the stated confidence would be overstated.

Conditions for t procedures

  • Random: a random sample, or random assignment in an experiment.
  • 10%: when sampling without replacement, n ≤ 10% of the population.
  • Normal / large sample: the population distribution is normal, or the sample is large (n ≥ 30), or, for a small sample, a graph of the data shows no strong skewness and no outliers.

How to check the third condition

  • If told the population is normal: state it.
  • If n ≥ 30: cite the central limit theorem.
  • If n < 30 and the shape is unknown: draw a graph of the sample data (dotplot, boxplot, histogram or normal probability plot) and comment. "The dotplot shows no strong skewness or outliers, so it is plausible that the population is approximately normal."

Robustness: t procedures still work reasonably well when the population is not exactly normal, particularly for larger samples. They are not robust against outliers or strong skewness in small samples, because both $\bar{x}$ and s are sensitive to extreme values.

Rule of thumb

  • n < 15: use t only if the data look close to normal, with no outliers.
  • 15 ≤ n < 30: use t unless there are outliers or strong skewness.
  • n ≥ 30: t procedures are usually safe.

Finding P-values with t: a table gives a range for the P-value. For t = 2.40 with df = 15, the table shows 2.249 (tail area 0.02) and 2.602 (tail area 0.01), so the one-sided P-value is between 0.01 and 0.02. Technology gives the exact value.

When to use z and when to use t

  • Proportions: always z.
  • Means: t (σ unknown, the usual case).
  • Slopes in regression: t with n − 2 degrees of freedom.

Degrees of freedom elsewhere: paired data: (number of pairs) − 1. Two-sample procedures: from technology, or conservatively the smaller of n₁ − 1 and n₂ − 1.

Common mistakes

  • Using z* for a mean when σ is unknown.
  • Using df = n.
  • Saying the t distribution is skewed (it is symmetric).
  • Checking normality of a small sample without a graph.
  • Applying n ≥ 30 to proportions.
  • Believing a large sample excuses a non-random one.
Check yourself

Compared with the standard normal distribution, a t distribution with 5 degrees of freedom has:

  • A skewed shape

  • Less area in the tails

  • More area in the tails

  • A different center

Show the answer

More area in the tails

Estimating σ with s adds uncertainty, which shows up as heavier tails.

6For top marks

  • State $df$ every time you use t: "$df = 24$, $t^* = 2.064$".
  • Check the Normal condition with a graph of the data for small samples, and say what you see ("no outliers, roughly symmetric").
  • Use t, not z, whenever $\sigma$ is estimated by $s$.
  • Know why: $s$ adds uncertainty, so we need wider intervals than $z$ would give.
Example

"Because σ is unknown, we use a t-interval with df = 15 and t* = 2.131."

Check yourself

Why are t* values larger than z* values?

  • The population is assumed to be skewed

  • Estimating σ with s adds uncertainty

  • t procedures use medians instead of means

  • The sample is always biased in t procedures

Show the answer

Estimating σ with s adds uncertainty

Heavier tails.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera