$X_1,X_2,…,X_N,... $ are a sequence of independent normal random variables with mean $\mu$ and variance $\sigma^2$ and index N follows Poisson distribution with parameter $\lambda$. Now, let $S_N = \sum_{i=1}^{N}X_i$. Then what is the mean and variance of $S_N$
I know the sum of iid normal random variables still follows normal distribution. Since index follows Poisson distribution, I don't know how to start with.
Can anyone help me with this?
Thank you.
Let me start with attending you on two general rules:
$$\mathbb EY=\mathbb E[\mathbb E[Y\mid X]]\text{ for mean }\tag1$$and:$$\mathsf{Var}(Y)=\mathbb E\mathsf{Var}(Y\mid X)+\mathsf{Var}\left(\mathbb E[Y\mid X]\right)\text{ for variance }\tag2$$
For $(2)$ see also here.
We find:
$$\mathbb E\left[\sum_{i=1}^NX_i\mid N=n\right]=\mathbb E\left[\sum_{i=1}^nX_i\mid N=n\right]=\mathbb E\sum_{i=1}^nX_i=n\mu$$
(here the second equality is valid if that there is also independence between $N$ and the $(X_i)_i$ and I suspect that forgot to mention that)
and conclude that:$$\mathbb E\left[\sum_{i=1}^NX_i\mid N\right]=N\mu$$
Now find: $$\mathbb E\sum_{i=1}^NX_i$$ by applying $(1)$.
Concerning the variance we find: $$\mathsf{Var}\left[\sum_{i=1}^NX_i\mid N=n\right]=\mathsf{Var}\left[\sum_{i=1}^nX_i\mid N=n\right]=\mathsf{Var}\sum_{i=1}^nX_i=n\sigma^2$$
and conclude that: $$\mathsf{Var}\left[\sum_{i=1}^NX_i\mid N\right]=N\sigma^2$$ Now find: $$\mathsf{Var}\sum_{i=1}^NX_i$$ by applying $(2)$.