The t-Distribution

Picture a chemist with a brand-new fertiliser. She grows just ten plants, measures their heights, and wants to say something about the true average height the fertiliser produces. She has a sample mean, and she has a spread — but only from ten plants. Two things are working against her at once: the sample is small, and she does not know the real population standard deviation \sigma. All she can do is estimate it from her ten numbers.

That second point is the whole story. When you use the normal distribution and its z-scores to reason about a sample mean, you are quietly assuming you know \sigma. Swap the true \sigma for an estimate s squeezed out of a handful of data points, and you have injected extra uncertainty into the problem. The bell you should now be using is a little fatter in the tails to account for it. That fatter bell is Student's t-distribution.

Same bell, heavier tails

The t-distribution looks almost exactly like the standard normal: a smooth, symmetric hump centred at zero. The difference is entirely in the tails. Because we had to estimate \sigma from a small sample, our estimate might come out too small — making a value look more extreme than it really is — so the t-distribution deliberately puts more probability out in the tails. It says, in effect, "extreme values are a bit more likely than the normal would have you believe, because you are not as sure of the spread as you think."

It carries exactly one dial, the degrees of freedom, written \nu (Greek "nu") or just df. For a single sample of size n,

\text{df} = n - 1.

Why n-1 and not n? Once you have fixed the sample mean, only n-1 of the deviations from it are free to vary — the last one is forced, because the deviations must sum to zero. You "spent" one degree of freedom estimating the mean.

The dial does something beautifully intuitive:

In the limit \text{df} \to \infty, the t-distribution is the standard normal N(0,1). Think of the normal as a t-distribution with infinite degrees of freedom — the case where you effectively know \sigma exactly.

Watch the tails fatten

The faint curve is the fixed standard normal N(0,1). The bold curve is the t-distribution — slide df and watch it breathe. Drag df down toward 2 and the peak drops while the tails lift off the axis: more probability far from centre. Push df up toward 30 and the bold curve settles almost perfectly onto the faint normal. That single picture is the whole idea of the t-distribution.

Worked example 1 — the price of a small sample

For a 95% confidence interval we need the critical value that leaves 2.5% of the probability in each tail. If we knew \sigma and used the normal, that number is the famous

z_{0.025} = 1.96.

But our fertiliser chemist has n = 10 plants and an unknown \sigma, so she must use the t-distribution with \text{df} = n - 1 = 9. Reading a t-table (or asking software) gives the matching critical value

t_{0.025,\,9} \approx 2.26.

Because 2.26 > 1.96, the confidence interval she builds is wider — about 15% wider — than a naive normal calculation would suggest. That extra width is not a nuisance; it is honesty. It is the interval admitting, "with only ten plants and a guessed-at spread, I genuinely know less, so I must cast a wider net to be 95% sure." Her interval is

\bar{x} \pm 2.26 \cdot \frac{s}{\sqrt{10}}, \quad\text{not}\quad \bar{x} \pm 1.96 \cdot \frac{s}{\sqrt{10}}.

Worked example 2 — the tails thin as the sample grows

Keep the same 95% goal, but imagine collecting more data. The critical value t_{0.025} shrinks steadily toward 1.96 as df climbs:

This is why, as a rough rule of thumb, once a sample is large (say n \gtrsim 30) many people happily switch back to the normal: the t and z critical values agree to two decimals and the distinction stops mattering. The t-distribution earns its keep precisely in the small-sample world — exactly where the sampling distribution of the mean is still noticeably wobbly.

The "Student" in Student's t-distribution was not a student at all — it was a pen name. In the early 1900s, William Sealy Gosset was a chemist and statistician working at the Guinness brewery in Dublin, wrestling with a very practical problem: judging the quality of barley and yeast from tiny experimental batches. He could not grow a thousand test crops; he had a handful. The normal-distribution theory of the day assumed you knew the true spread, which is hopeless with five or ten measurements — so Gosset worked out the correct, fatter-tailed distribution for exactly that situation.

Guinness treated its statistical methods as trade secrets and forbade employees from publishing under their own names, so in 1908 Gosset published his result under the modest pseudonym "Student." The name stuck, and to this day a pillar of modern statistics quietly commemorates a brewer trying to make better beer with less data.

The classic mistake is reaching for the normal (z) out of habit. The rule is about what you know, not just how the curve looks:

The danger is not cosmetic. The t-distribution has heavier tails, so its critical values are bigger (2.26 rather than 1.96 at df = 9). If you use z when you should have used t, your interval comes out too narrow — you understate your uncertainty and claim to be more confident than your data actually warrants. For a small sample that error can be substantial. When \sigma is estimated from few data, reach for t.

"Degrees of freedom" sounds abstract, but you can count them on your fingers. Suppose four numbers must average to 10. You are free to choose the first three however you like — say 7, 12, 9 — but the fourth is then forced to be 12 to hit the target mean. Three free choices, one pinned: n - 1 = 3 degrees of freedom.

The same thing happens with the deviations from the sample mean: because they must sum to zero, the last one is determined by the rest. So a sample of n observations gives you only n-1 independent pieces of information about the spread — and that is precisely the df of the t-distribution you should use. This same bookkeeping shows up again in the chi-square distribution, which counts squared deviations.