In past weeks, the average number of life insurance policies sold per week was $θ = 3$. However, this week he has sold 6 life insurance policies. Based on this single observation of $x = 6$, what is the value of the likelihood-ratio test statistic for testing the hypothesis that the salesman has suddenly seen a boost in his job, i.e. testing $H_0 = \theta = 3$ , $H_1 = \theta > 3$.
For this, I used the likelihood ratio for poisson distribution, giving me $$\frac{\frac{3^6e^{-3}}{6!}}{\frac{6^6e^{-6}}{6!}}$$ This gives 0.3138365. Is this the right answer?
You will want to reject $H_0: \theta = 3$ against $H_a: \theta > 3)$ for large values of your single observation $X.$ You can't test at exactly the 5% level because of the discreteness of the Poisson distribution.
Under $H_0,$ you have $P(X \ge 7) = .0335,$ but $P(X \ge 6) = .0834.$ Exact Poisson computations from R (where
ppoisis a Poisson CDF andqpoisis the quantile function):So for test at level $\alpha =3.335,$ you should reject if $X \ge 7.$ Because you observe $X = 6,$ the P-value is $P(X \ge 6\,|\,\theta = 3) = 0.834.$
In the plot below, $\alpha$ is the sum of the heights of the bars to the right of the vertical dotted line.
For such a small values of $\theta,$ depending on the desired accuracy, it may no bet advisable to use a normal approximation. The best-fitting normal curve is shown in blue.
However, using the normal approximation (with continuity correction), the P-value is 7.4%, so you would not reject at the 5% level.
Addendum: Now that you have the correct likelihood ratio function $\lambda(x) = (3/x)^xe^{x-3}$ for $x \ge 3 \; (1$ for $x < 3),$ let's use R to plot it. Then we can see that $\lambda(x)$ is small (leading to rejection) for large values of $x$ as mentioned at the start.