Flat log-rate marginalization gives the multinomial likelihood (source code)

= Flat log-rate marginalization gives the multinomial likelihood
{title2=$\int_0^\infty u^{n-1}e^{-Su}\,du=\Gamma(n)S^{-n}$}

For <independent> <Poisson distribution> cells with <means> $u e^{\eta_j(\beta)}$, write $n=\sum_jy_j$ and $S(\beta)=\sum_j e^{\eta_j(\beta)}>0$. Their likelihood, apart from count-factorial constants, is
$$
u^n e^{-uS(\beta)}\exp\left(\sum_j y_j\eta_j(\beta)\right).
$$
An <improper prior> flat in $\log u$ has measure $du/u$ on $u>0$. When $n>0$, integration gives
$$
\int_0^\infty u^{n-1}e^{-uS}\,du=\Gamma(n)S^{-n},
$$
so the remaining kernel in $\beta$ is $\prod_j[e^{\eta_j(\beta)}/S(\beta)]^{y_j}$, proportional to the <multinomial likelihood>. The <gamma function> <integral> is the exact reason for the equivalence.

This is proportionality of parameter kernels after an improper-prior calculation; it does not supply a normalized model evidence. For a zero group total, the baseline <integral> diverges at $u=0$, so the same improper-prior marginalization is invalid even though the conditional multinomial likelihood is constant. A proper prior on the baseline generally changes the kernel. The <Gaussian log-rate correction to the Poisson trick> makes this additional factor explicit.