Student's t

X∼tνX \sim t_\nu

A bell curve like the Normal but with heavier tails, which grow lighter as the degrees of freedom ν increase.

The story

When you standardise a sample mean using the sample standard deviation SS instead of the true σ\sigma, the extra uncertainty in SS makes extreme values more likely. William Gosset, writing as Student, worked out that for Normal data (Xˉ−μ)/(S/n)(\bar{X} - \mu)/(S/\sqrt{n}) follows a tt distribution with ν=n−1\nu = n - 1 degrees of freedom. Formally, tt is Z/V/νZ/\sqrt{V/\nu} with ZZ standard Normal and VV an independent Chi-squared(ν)\text{Chi-squared}(\nu).

Small ν\nu means heavy tails: at ν=1\nu = 1 the mean does not even exist, and the variance ν/(ν−2)\nu/(\nu - 2) is finite only when ν>2\nu > 2. As ν\nu grows, SS becomes a reliable estimate of σ\sigma and the tt distribution closes in on the standard Normal; by ν=30\nu = 30 the two are hard to tell apart by eye.

Formulas

Support

x∈Rx \in \mathbb{R}

PDF

f(x)=Γ ⁣(ν+12)νπ Γ ⁣(ν2)(1+x2ν)−ν+12f(x) = \frac{\Gamma\!\left(\frac{\nu+1}{2}\right)}{\sqrt{\nu\pi}\, \Gamma\!\left(\frac{\nu}{2}\right)} \left(1 + \frac{x^2}{\nu}\right)^{-\frac{\nu+1}{2}}

CDF

F(x)=1−12Iν/(ν+x2) ⁣(ν2,12)for x≥0F(x) = 1 - \tfrac{1}{2} I_{\nu/(\nu+x^2)}\!\left(\tfrac{\nu}{2}, \tfrac{1}{2}\right) \quad \text{for } x \ge 0

Expectation

E[X]={0for ν>1undefinedotherwise\mathbb{E}[X] = \begin{cases} 0 & \text{for } \nu > 1 \\ \text{undefined} & \text{otherwise} \end{cases}

Variance

Var⁡(X)={νν−2for ν>2∞for 1<ν≤2\operatorname{Var}(X) = \begin{cases} \dfrac{\nu}{\nu - 2} & \text{for } \nu > 2 \\ \infty & \text{for } 1 < \nu \le 2 \end{cases}

Mode

00

Parameters

ParameterWhat it controls
ν\nuThe degrees of freedom. Small ν\nu gives heavy tails and frequent extreme values; large ν\nu makes the curve almost exactly standard Normal.

Where it shows up

  • One-sample and two-sample t-tests on small samples.
  • Confidence intervals for a mean when σ\sigma is unknown.
  • Testing regression coefficients in linear models.
  • Robust modelling of noisy data with occasional outliers, such as financial returns.

Try this

  1. Shade from −1.96-1.96 to 1.961.96 at ν=30\nu = 30 and you get about 0.94, a little under the Normal's 0.95. Now set ν=1\nu = 1: the same interval holds only about 0.70, because so much probability has moved into the tails.
  2. Set ν=1\nu = 1, switch to Sample means and increase nn. The histogram of averages refuses to narrow: the mean of nn Cauchy draws is itself Cauchy, so the Central Limit Theorem does not apply when the variance is not finite.
  3. Set ν=3\nu = 3 and press Draw 1000 several times, clearing in between. The theoretical variance is 3, but the sample variance jumps around wildly as rare, huge draws come and go. Repeat at ν=30\nu = 30 and see how much more stable it is.

Related distributions

  • tt with ν\nu degrees of freedom tends to the standard Normal as ν→∞\nu \to \infty.
  • It is built as Z/V/νZ/\sqrt{V/\nu}, where ZZ is standard Normal and VV is an independent Chi-squared with ν\nu degrees of freedom.
  • With ν=1\nu = 1 it is the Cauchy distribution, which has no mean and no variance.