Let \(X_1,\ldots ,X_n\) be a random sample from the \(N(\mu ,\sigma ^2)\) distribution, with both \(\mu \) and \(\sigma ^2\) unknown.
(a) Derive the likelihood ratio test for \(H:\sigma ^2=\sigma _0^2\) against all alternatives. Here \(\sigma _0^2\) is a known positive constant. (5 points)
(b) Do the same for \(H:\sigma ^2\ge \sigma _0^2\). (5 points)