The Generalized Likelihood Ratio Test (GRLT) can be used when there is no intuitive test statistic and the [[uniformly most powerful test]] does not exist. However, calculating the GLRT is often also itself intractable. [[Wilks' Theorem]] allows for approximations of the GLRT for large sample sizes.
Suppose that $X_1, X_2, \dots, X_n$ is a random sample from a distribution with [[probability density function|pdf]] $f(x; \theta)$. Let $\Theta$ be the parameter space. Assume that the parameter is one-dimensional. Consider testing the null hypothesis that the parameter $\theta$ is in some subset of the parameter space $\Theta_0$ versus the alternate that $\theta$ is not in that same subset of the parameter space.
$\begin{align}
H_0: \theta \in \Theta_0 && H_1: \theta \in \Theta \backslash \Theta_0 \end{align}$
> [!NOTE] Notation
> $\theta \in \Theta \backslash \Theta_0$ is "set minus" notation that represents the complement of the set $\Theta_0$ in the parameter space $\Theta$.
Let $\hat \theta$ be the [[maximum likelihood estimator]] (MLE) for $\theta$. Let $\hat \theta_0$ be the restricted MLE, which means that $\hat \theta_0$ is the MLE for $\theta$ in the parameter space where $H_0$ is true. Let $L(\theta)$ be a likelihood function.
The generalized likelihood ratio (GLR) is a function of the data (the vector of $x