Suppose $$Y=\sum_{i=1}^N X_i,$$ where $X_i$'s are i.i.d $\operatorname{Gamma}(\alpha,\beta)$ and $N\sim \operatorname{Poisson}(\mu)$. We also assume that $N$ is independent of $X_i$'s.
- Find the $E[Y]$
- Find the moment generating function of $Y$
- Find the $\operatorname{Cov}(N + Y, 1 + Y)$
By far we have learned moment generating functions and multinomial distribution. However, I can't see a starting point to approach this problem.
Here $N$ is a random variable, what does that imply? In addition, what is matter if $N$ is independent of $X_i$'s?
I would appreciate if anybody can give me some guidance on this question.
(Big) Hint: rewrite the sum as $$ Y = \sum_{i=1}^\infty X_i \mathbf{1}_{N \geq i} $$ and then use linearity of expectation to get $$ \mathbb{E}[Y] = \sum_{i=1}^\infty \mathbb{E}[X_i \mathbf{1}_{N \geq i}] $$ Then, use the fact that $N$ is independent of the $X_i$'s.