Student's t-test
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.
-
One-sided $t$-test: to test $H_0: μ\leq μ_0$ against $H_1: μ>μ_0$, reject $H_0$ if $$ \begin{align*} T > t_{n-1}(α) \end{align*} $$ where $t_{n-1}(α)$ is the upper $α$ quantile of $t_{n-1}$.
-
Two-sided $t$-test: to test $H_0: μ=μ_0$ against $H_1: μ\neq μ_0$, reject $H_0$ if $$ \begin{align*} |T| > t_{n-1}(α/2). \end{align*} $$
This is generalised in a normal linear model.