Let $Y_{1}<Y_{2}<\cdots<Y_{n}$ be the order statistics of a random sample from a uniform distribution on $(0, \theta)$, where $\theta>0$.
(a) Show that $\Lambda$ for testing $H_{0}: \theta=\theta_{0}$ against $H_{1}: \theta \neq \theta_{0}$ is $\Lambda=\left(Y_{n} / \theta_{0}\right)^{n}$, $Y_{n} \leq \theta_{0}$, and $\Lambda=0$ if $Y_{n}>\theta_{0}$
(b) When $H_{0}$ is true, show that $-2 \log \Lambda$ has an exact $\chi^{2}(2)$ distribution, not $\chi^{2}(1) .$ Note that the regularity conditions are not satisfied.