z-test
Suppose $σ^2$ is known.
-
The likelihood ratio test for testing $H_0: μ=μ_0$ against $H_1: μ=μ_1$ where $μ_1 > μ_0$ is the one-sided z-test: reject $H_0$ if $$ \begin{align*} Z := \frac{\sqrt{n}(\overline{X} - μ_0)}{σ} > z_α \end{align*} $$ where $z_α$ is the upper $α$ quantile of the standard normal distribution.
By the Neyman-Pearson lemma, the z-test is the size $α$ uniformly most powerful test. (Derivation)
-
The generalised likelihood ratio test for testing $H_0: μ = μ_0$ against $H_1: μ\neq μ_0$ is the two-sided z-test: reject $H_0$ if $$ \begin{align*} |Z| > z_{α/2}. \end{align*} $$ (Derivation) This is the UMP unbiased test.