Math Core

Lesson 7.1 · Inference for Means

The t-distribution

In Unit 6 you built confidence intervals and tests for proportions using zz critical values and the standard normal curve. Means are different in one important way: you almost never know the population standard deviation σ\sigma, so you have to estimate it from the sample. That extra estimate adds extra uncertainty, and the tt-distributions are the tool that accounts for it.

The problem with standardizing a sample mean

From Unit 5, the sampling distribution of xˉ\bar{x} has mean μ\mu and standard deviation σn\dfrac{\sigma}{\sqrt{n}}. When that sampling distribution is approximately normal, the standardized statistic

z=xˉ−μσ/nz = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}

follows the standard normal distribution. The catch is σ\sigma. If you don't know the population mean μ\mu, you almost certainly don't know the population standard deviation either.

The natural fix is to replace σ\sigma with the sample standard deviation ss. The result is called the standard error of the sample mean.

Definition

Standard error of the mean

When σ\sigma is unknown, the standard error of xˉ\bar{x} is

SExˉ=sn,SE_{\bar{x}} = \frac{s}{\sqrt{n}},

where ss is the sample standard deviation and nn is the sample size. It estimates how far xˉ\bar{x} typically falls from μ\mu.

Now the standardized statistic is

t=xˉ−μs/n.t = \frac{\bar{x} - \mu}{s / \sqrt{n}}.

This is not a zz-score anymore. The numerator varies from sample to sample, and so does the denominator, because ss changes from sample to sample too. Sometimes ss underestimates σ\sigma, which makes tt larger in size than zz would have been. The result is a distribution that is more spread out than the standard normal, especially for small samples.

Meet the t-distributions

William Gosset worked out the distribution of this statistic in 1908 while studying small samples at a brewery. There isn't just one tt-distribution. There is a whole family, and each member is identified by its degrees of freedom.

Properties of the t-distributions

When you draw an SRS of size nn from a normal population, the statistic t=xˉ−μs/nt = \dfrac{\bar{x} - \mu}{s/\sqrt{n}} has a tt-distribution with df=n−1df = n - 1 degrees of freedom. Every tt-distribution:

  • is symmetric, single-peaked and centered at 00, like the standard normal;
  • has heavier tails and a lower peak than the standard normal, so more of its area lies far from 00;
  • gets closer and closer to the standard normal as dfdf increases.

Why n−1n - 1? The sample standard deviation is built from the deviations xi−xˉx_i - \bar{x}, and those deviations always add to 00. Once you know n−1n - 1 of them, the last one is forced. Only n−1n - 1 deviations are free to vary, so that's how much independent information ss contains.

The heavier tails are the whole point. Because ss is only an estimate, you need to go farther from the center to capture the same middle area. For example, the middle 95% of the standard normal lies between −1.96-1.96 and 1.961.96. The middle 95% of the tt-distribution with 44 degrees of freedom lies between −2.776-2.776 and 2.7762.776.

Reading a t-table

A tt-table lists critical values t∗t^*. Each row is a number of degrees of freedom, and each column is an upper-tail area (or, equivalently, a confidence level for the middle area). Here is an excerpt.

dfdftail 0.10tail 0.05tail 0.025tail 0.01tail 0.005
confidence80%90%95%98%99%
41.5332.1322.7763.7474.604
71.4151.8952.3652.9983.499
91.3831.8332.2622.8213.250
111.3631.7962.2012.7183.106
141.3451.7612.1452.6242.977
151.3411.7532.1312.6022.947
191.3281.7292.0932.5392.861
201.3251.7252.0862.5282.845
241.3181.7112.0642.4922.797
291.3111.6992.0452.4622.756
301.3101.6972.0422.4572.750
401.3031.6842.0212.4232.704
601.2961.6712.0002.3902.660
z∗z^* (∞\infty)1.2821.6451.9602.3262.576

Read down any column and the critical values shrink toward the z∗z^* value in the last row. That's the "approaches the normal" property in numbers.

For a confidence interval with confidence level CC, the area CC sits in the middle and the leftover area 1−C1 - C is split between the two tails. So a 95% interval uses the column with upper-tail area 0.0250.025.

Worked example: Finding a critical value

You plan a 95% confidence interval for a mean from a random sample of n=20n = 20 observations. What critical value t∗t^* should you use?

Solution. The degrees of freedom are df=20−1=19df = 20 - 1 = 19. A 95% confidence level leaves 0.050.05 in the two tails together, so 0.0250.025 in the upper tail. In the row for df=19df = 19 and the 0.0250.025 column, t∗=2.093t^* = 2.093.

On a TI-83/84, invT(0.975, 19) gives the same value: 2.0932.093. (You enter the area to the left of t∗t^*, which is 0.95+0.025=0.9750.95 + 0.025 = 0.975.)

Common mistake

Don't use df=ndf = n. The degrees of freedom for one-sample tt procedures are n−1n - 1. Also watch the column: for a 95% interval you need upper-tail area 0.0250.025, not 0.050.05. Using the 0.050.05 column gives a 90% interval.

Tail areas and p-values

In a significance test you go the other direction: you have a tt statistic and need the area beyond it. A table can only bracket that area. Technology gives the exact value.

Worked example: Finding a tail area

Find P(t>2.1)P(t > 2.1) for a tt-distribution with 99 degrees of freedom.

Solution with the table. In the df=9df = 9 row, 2.12.1 falls between 1.8331.833 (tail 0.050.05) and 2.2622.262 (tail 0.0250.025). So the upper-tail area is between 0.0250.025 and 0.050.05.

Solution with technology. tcdf(2.1, 1E99, 9) gives about 0.03260.0326. That fits inside the bracket from the table.

Worked example: A lower tail

Find P(t<−1.5)P(t < -1.5) when df=15df = 15.

Solution. By symmetry, P(t<−1.5)=P(t>1.5)P(t < -1.5) = P(t > 1.5). In the df=15df = 15 row, 1.51.5 lies between 1.3411.341 (tail 0.100.10) and 1.7531.753 (tail 0.050.05), so the area is between 0.050.05 and 0.100.10. Technology, tcdf(-1E99, -1.5, 15), gives about 0.07720.0772.

Compare with the standard normal: P(z<−1.5)≈0.0668P(z < -1.5) \approx 0.0668. The tt area is larger because of the heavier tails.

Tip

A quick sanity check: for the same confidence level, t∗t^* is always a bit bigger than z∗z^*. If your t∗t^* comes out smaller than 1.961.96 for a 95% interval, you've used the wrong column or the wrong row.

Why this matters for the rest of the unit

Every procedure in this unit (one-sample intervals, one-sample tests, paired data and two-sample comparisons) uses the same recipe:

statistic±t∗⋅SEort=statistic−null valueSE.\text{statistic} \pm t^* \cdot SE \qquad \text{or} \qquad t = \frac{\text{statistic} - \text{null value}}{SE}.

What changes from lesson to lesson is the statistic, the standard error and the degrees of freedom. Once you're comfortable with t∗t^* and tail areas, the rest is careful bookkeeping.

Practice

Practice 1

A researcher takes a random sample of 1818 bags of trail mix and plans to use a one-sample tt procedure. How many degrees of freedom does the procedure use?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

A random sample of n=36n = 36 has sample standard deviation s=12s = 12. What is the standard error of the sample mean?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which statement correctly compares a tt-distribution with 55 degrees of freedom to the standard normal distribution?

Practice 4

Find the critical value t∗t^* for a 95% confidence interval based on a random sample of 1515 observations.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find t∗t^* for a 90% confidence interval when df=20df = 20.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find P(t>2.1)P(t > 2.1) for a tt-distribution with df=9df = 9. Give your answer to 4 decimal places.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

As the degrees of freedom increase, what happens to the critical value t∗t^* for a 95% confidence interval?

Practice 8

A study uses a random sample of 3131 students. Find the critical value t∗t^* for a 99% confidence interval for the mean.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.