Let $(x_1, x_2, \dots , x_n)$ be a random sample from a population which follows a Poisson distribution with an unknown mean $\lambda$. If we assume that $C$ is a known constant and we can only observe the values of the sample for which $x_i < C$. I want to try to estimate $\lambda$ by only using these samples.
I first define two variables, $r$ and $p$, which can be defined as:
$$r = max(i: x_{(i)} < C)$$ $$p = max(i: x_{(i)} \le C-2)$$, where $x_{(i)}$ denotes the $i$th order statistic. I assume for convenience that $x_1, x_2, \dots, x_p,\dots, x_r$ are the observed samples so they are ordered.
So if $X$ is a Poisson distributed random variable with density function $p(x)$, mean $\lambda$ and $C$ as being any constant, then
$$\lambda = \sum_{x=0}^{\infty}\space x\space p(x)$$
can be split up to $$\lambda = \sum_{x=C}^{\infty}\space x\space p(x) + \sum_{x=0}^{C-1}\space x\space p(x)$$
I can calculate the first part directly: $$\sum_{x=C}^{\infty}\space x\space p(x) = \lambda(1-F(C-2))$$, where $F(.)$ is the CDF of the Poisson distribution.
An estimation of the second part would be:
$$\frac{1}{n} \sum_{i=1}^r x_i$$ and if $\bar{x_r}$ is the mean of the first $r$ observations, we can write this as:
$$\frac{r}{n} \bar{x_r}$$
Now, we could estimate $F(C-2)$ as $\frac{p}{n}$
So combining the terms and working out for $\lambda$, I get:
$$\lambda = \frac{r\bar{x_r}}{p}$$
This seems to be a good estimator, but when $C$ becomes very small compared against the real mean, the estimation loses accuracy.
The reason seems to be that estimating $F(C-2)$ from the observed samples isn't that accurate when $C$ gets small compared to $\lambda$, even if I use a large sample size (>100K).
So the questions I'm thinking about:
- Is there a more accurate way to estimate $F(C-2)$?
- Or maybe there ís something wrong with the math? In which case, please point out.
- Or maybe there is an easier way to estimate $\lambda$ from limited observed samples?
EDIT
I want to expand a bit based on the comments.
We can also say that $X$ follows a truncated Poisson distribution conditional on the event that $X < C$ with a known $C$, which is the truncation level.
If I read from the definition then I can write the PMF of a C-truncated Poisson distribution as $$\frac{p(x)}{F(C-1)}$$
If I then work out the log-likelihood function for $\lambda$, given the samples $x_1, x_2, \dots, x_p, \dots, x_r$, I get:
$$L(\lambda|x_1, x_2, \dots, x_p, \dots, x_r) = \log(\lambda)\sum_{i=1}^r x_i - r\log(\sum_{i=0}^{C-1} \frac{\lambda^i}{i!}) $$
Maximizing this function in $\lambda$ indeed gives me a good estimation for $\lambda$, but it seems that we always need a numerical method for it. If someone can elaborate more from this perspective, this is always welcome as well.