Skip to main content
1 of 2
User1865345
  • 10.3k
  • 12
  • 23
  • 40

Here $\Theta_0:=\{\lambda: \lambda =4\}$ and $\Theta:=\{\lambda:\lambda\leq 4\}.$

Now \begin{align}\frac{\mathrm d}{\mathrm d\lambda}\mathcal L(\lambda|\mathbf x) &=\frac{\mathrm d}{\mathrm d\lambda}\left[n\ln \lambda-\lambda n\bar { x}\right]\\ &= \frac n\lambda-n\bar{ x}.\tag 1\label 1\end{align} From $\eqref 1,$ $$\frac{\mathrm d}{\mathrm d\lambda}\mathcal L(\lambda|\mathbf x) > 0\implies \frac 1\lambda > \bar x \equiv \lambda< \frac1{\bar{x}}.\tag 2\label 2$$

If $\frac1{\bar x}\in(0, 4],$ then from $\eqref 2,~\hat{\lambda}_{\text{MLE}}=\frac1{\bar x}.$ If $\frac1{\bar x}\in(4, \infty),$ then $\hat{\lambda}_{\text{MLE}} =4.$

So, if $\frac1{\bar x}\in(4, \infty),$ $$\ell(\mathbf x) =1\tag{ 3.I}\label 3$$ and if $\frac1{\bar x}\in(0, 4],$ then $$\ell(\mathbf x) =\frac{4^n\exp(-4n\bar x)}{(1/\bar x)^n\exp(-n)}.\tag{3.II}$$

$\eqref 3$ is trivial.

Observe $$\frac{\mathrm d}{\mathrm d\bar x}\ell(\mathbf x) =k\times \left[n{\bar x}^{n-1}\exp(-4n\bar x)(1-4\bar x)\right].$$

So, when $\frac1{\bar x}\in(0, 4],$

$$\ell(\bar x) < \textrm{some constant}\iff \bar x> \textrm{some other constant}.$$

The test function then follows.

Similarly, one can proceed along the same approach for $\mathcal H_1: \lambda > 4.$

User1865345
  • 10.3k
  • 12
  • 23
  • 40