You have a sample of $n$ i.i.d. realizations of the random variable $X$ distributed as a Poisson with parameter $\lambda$. It is known that:
- $n_1$ values are greater than or equal to $2$;
- $n_2$ values are equal to $1$;
- The remaining observations are equal to $0$.
a. Determine the maximum likelihood estimator for the mean of the Poisson distribution.
Solution:
The Poisson distribution is defined by the probability mass function: $$ P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!} $$
The probabilities for each category are:
Probability of observing $X = 0$: $$ P(X = 0) = e^{-\lambda} $$
Probability of observing $ X = 1 $: $$ P(X = 1) = \lambda e^{-\lambda} $$
Probability of observing $ ( X \geq 2 ): $ $$ P(X \geq 2) = 1 - P(X = 0) - P(X = 1) = 1 - e^{-\lambda} - \lambda e^{-\lambda} $$
Given $ n_1 $ values are greater than or equal to $ 2 $, $ n_2 $ values are $ 1 $, and the rest are $ 0 $, the likelihood function is: $$ L(\lambda) = (e^{-\lambda})^{n - n_1 - n_2} (\lambda e^{-\lambda})^{n_2} \left(1 - e^{-\lambda} - \lambda e^{-\lambda}\right)^{n_1} $$
The log-likelihood function $\ell(\lambda) $ simplifies to: $$ \ell(\lambda) = -(n - n_1 - n_2)\lambda + n_2 (\log \lambda - \lambda) + n_1 \log\left(1 - e^{-\lambda} - \lambda e^{-\lambda}\right) $$
To find the maximum likelihood estimator, differentiate $\ell(\lambda) $ with respect to $ \lambda $ and set the derivative equal to zero: $$ \frac{d\ell(\lambda)}{d\lambda} = -(n - n_1 - n_2) + \frac{n_2}{\lambda} - n_2 + n_1 \frac{\lambda e^{-\lambda}}{1 - e^{-\lambda} - \lambda e^{-\lambda}} $$
Calculating the final step is challenging (assuming the preceding steps are correct), and I am uncertain how to resolve this exercise