Suppose:
- $N \sim {\rm Poisson}(\lambda)$
- $\lambda$ is unknown, but we believe that it can be assumed $\sim \exp(1)$
If I want to calculate $N | X$, i.e., $P(model | data)$, I need to use the Bayes theorem in the following way:
$P(model|data) \propto P(data|model)*P(model)$
- $P(data|model)$ is the likelihood function
- $P(model)$ is my prior distribution density
So:
$P(data|model) = L(\lambda) = \exp\{-n\lambda + \log\lambda \sum k_i - \sum \log (k_i!)\}$
And
$P(model) = g(\lambda = 1) = e^{-\lambda}$
Therefore
$P(model|data) = \exp\{-n\lambda + \log\lambda \sum k_i - \sum \log(k_i!)\} e^{-\lambda}$
And if I had a sample of $k_1 = j$, then
$P(\lambda|k_1 = j) = \exp(-\lambda + \log \lambda j - \log j!) e^{-\lambda}$
Is it correct? How do I calculate an expected value for the parameter?