I would like to find the marginal distribution of $X=\left(X_1,\dots,X_k\right)$ if $X|N=n$ is multinomially distributed with parameters $n$ and $p_1, \dots_, p_k$ and $N$ has Poisson distribution with parameter $\lambda$. I was thinking of using the law of total probability but I didn't see how to proceed with it. Could somebody show me how to do this?
I don't know if this is correct, but here's my attempt:
Since $y_1 + \dots y_m = n$ we get $y_m =n - \sum_{j=1}^{m-1}y_j$ and so
$$ P\left( Y_1 = y_1, \dots , Y_m = y_m \right) = \sum_{n=0}^{\infty} P\left(Y_1 = y_1, \dots, Y_m = y_m | N=n \right)P\left(N=n \right) = \sum_{n=0}^{\infty} \frac{n!}{y_1!\dots y_{m-1}!(n - \sum_{j=1}^{m-1}y_j)!} \prod_{j=1}^{m-1}p_j^{y_j} \cdot p_m^{n - \sum_{j=1}^{m-1}y_j} \frac{e^{-\lambda}\lambda^n}{n!} $$
$n$ has to start from $n= y_1+\dots y_{m-1}$ because of the factorial so this becomes (after making the change of variable $j = n -y_1 - \dots -y_{m-1}$ $$ e^{-\lambda} \cdot \frac{\prod_{j=1}^{m-1}(p_j\lambda)^{y_j}}{y_1!\dots y_{m-1}!} \sum_{j=0}^{\infty}\frac{(\lambda p_m)^j}{j!} = e^{-\lambda(1-p_m)} \cdot \frac{\prod_{j=1}^{m-1}(p_j\lambda)^{y_j}}{y_1!\dots y_{m-1}!} = \prod_{j=1}^{m-1}\frac{(p_j\lambda)^{y_j}e^{-\lambda p_j}}{y_j!}. $$
What confuses me is that (if my calculations/reasoning is correct) I don't get the marginal distribution of $Y_m$.