Solution (source code)

= Solution

For a null parameter space $\Theta_0\subseteq\Theta$, the generalized likelihood ratio is
$$
\Lambda=\frac{\sup_{\theta\in\Theta_0}L(\theta)}
{\sup_{\theta\in\Theta}L(\theta)}.
$$
The <Wilks theorem> states, under standard regularity conditions and under the null, that
$$
-2\log\Lambda\Rightarrow\chi^2_{\dim\Theta-\dim\Theta_0}.
$$