I have no idea how to approach this:
Let $X_i$ be a binomial distribution variable with parameters $(i,p)$ where $(0<p<1)$ for all $i=0,1,2.....$
And let $N$ be a poisson distribution with $\lambda(0<\lambda)$.
$X_0, X_1,X_2....$ are independent among them and independent on $N$.
We define $Y=\sum_{i=0}^{N}X_i$
I need to calculate the expected value of $Y$.
What I know is that $E[Y]=E[\sum_{i=0}^{N}X]=\sum_{i=0}^{N}E[X]=np$ when $X$ isbinomial distribution variable
Hints:
$$E(Y) = E(E(Y|N))$$
$$E(X_i) = ip$$
$$E(N) = \lambda$$
$$E(N^2) = \lambda^2 + \lambda$$
and use linearity of expectation.
Edit: Try computing yourself first, then look at my computation.
Compute $E(Y|N)$
Now, compute $E(E(Y|N)$,