The following lines are taken from a lecture found here. I have a very small question regarding this explanation of Poisson likelihood.
The Poisson likelihood can be used any time your data come in discrete intervals (which we'll call “counts”), and the counts are independent of each other. Schematically, we imagine dividing data space up into “bins”, which could be bins in energy channel of our detector, location on the sky, time of arrival, or any of a number of other things. Suppose that in a particular model $m$, you expect there to be $m_i$ counts in bin $i$. Then if the model is correct the likelihood of actually observing $d_i$ counts in bin $i$ of the data is, from the Poisson distribution,
$L_i = m_i^{d_i}/d_i! \; exp(-m_i)$
Note that $m_i$ can be any positive real number, whereas $d_i$ must be an integer. Note also that the sum of $L_i$ from $d_i = 0$ to ∞ is 1. The likelihood for the whole data set is the product of the likelihoods for each bin:
$L = \Pi\; m_i^{d_i}/d_i! \; exp(-m_i)$
This becomes better and better approximated by a Gaussian as $m_i$ increases. (...) If one uses Poisson likelihoods, small numbers are fine. In fact, if you can manage, the best way to represent your data is to have bins so tiny that you expect either 0 or 1 count per bin.
The question I have is: what happens if one of the expected values $m_i$ is zero (ie: the model predicts zero counts in that bin $i$)? Wouldn't that make the final $L$ value null?
Edit
After reading @leonbloy and @Henry's answer I think I should explain a bit more my particular problem with this analysis and what it is that I'm clearly not understanding.
In my case I have two histograms representing the modeled data and the observed data. So the $[d_i, \; i=1,n]$ histogram is made out of actual observations (ie: the counts in each bin $d_i$ are obtained through an experiment) and the histogram $[m_i, \; i=1,n]$ is produced by a model: this would mean that the $m_i$ counts in my case are integers that can actually take the value 0.
Now, this is where I'm clearly getting something wrong because I read in that article a line that says "Note that $m_i$ can be any positive real number" and @leonbloy's answer also points in that direction, when in my case the $m_i$ values are all integers and do take the value 0 a lot of times.
I must be skipping a crucial step concerning the calculation of the $m_i$ values. So how should I calculate the $m_i$ values if my model gives me counts per bin?
@Henry's answer seems to contradict @leonbloy's answer since he says $m_i=0$ is a possibility whereas @leonbloy says it is not.
In any case, Henry seems to be assuming the whenever $m_i=0$ then $d_i=0$ also so that one obtains $L_i=1$ because $0⁰=1$. This is not my case, since $m_i$ could be 0 but it doesn't mean $d_i$ is forced to be 0 also (my observed histogram, $[d_i , \; i=1,n]$, and my modeled histogram, $[m_i , \; i=1,n]$, are derived independently of each other)
Edit 2
I think I'm beginning to understand, but I'm still a bit lost. Please take a look at this excerpt taken from this paper:
(...) Therefore the selected test to perform on these histogram is a log likelihood test for Poisson statistics (Eidelman et al. 2004):
$-2ln(\lambda(\theta))=2\, \sum\limits_{i=1}^N \, (\nu_i(\theta)-n_i+n_i\, ln\frac{n_i}{\nu_i(\theta)})$ (8)
In this formula $\theta$ is the set of unknown parameters one wants to derive, $n = (n_1 , n_2, . . . , n_N)$ is the data vector containing the observations with $N$ the number of bins in a histogram. $\nu$ are the expected values, which are derived from the histograms of the modelled data and are therefore dependent on $\theta$. When $n_i = 0$, the last term in Eq. (8) is set to zero (...)
As you can see, the analysis is the same (the difference here is that the last equation shows the likelihood ratio), now the expected values are $\nu_i(\theta)$.
From what I've understood so far that parameter $\nu_i(\theta)$ should be independent of the number of counts in the bins and have just one value for each histogram. If this is so then why use the $i$ subscript? And how should I calculate that value for each histogram?