Student's t-test

Student's t-distribution open_in_new

The t-distribution with $k$ degrees of freedom, denoted as $t_k$, is defined as the distribution of $$ \begin{align*} T = \frac{Z}{\sqrt{Y/k}} \end{align*} $$ where $Z\sim N(0,1)$ and $Y \sim χ_k^2$ are independent.

It has a density function $$ \begin{align*} p(x) = \frac{Γ(\frac{k+1}{2})}{\sqrt{πk}\, Γ(\frac{k}{2})} \left(1+\frac{x^2}{k}\right)^{-(k+1)/2}. \end{align*} $$

  • $t_1$ is the Cauchy distribution.

  • $t_k \xrightarrow{d} N(0,1)$ as $k\to \infty$.

  • The tail behaves like $x^{-(k+1)}$, so moments $\expect(|X|^m)<\infty$ only for $0< m<k$.

Suppose $μ$ and $σ^2$ are both unknown.

Student's t-statistic for the hypothesis $H_0: μ = μ_0$ is given by $$ \begin{align*} T = \frac{\sqrt{n}(\overline{X} - μ_0)}{\sqrt{S_{XX}/(n-1)}}. \end{align*} $$ $T\sim$ $t_{n-1}$, since $\sqrt{n}(\overline{X} - μ_0)/σ \sim N(0,1)$ and $S_{XX}/σ^2 \sim χ_{n-1}^2$ are independent.

This is generalised in a normal linear model.