I'm stuck with a little problem that I need to use for my research.
Let X and N be stochastic random variables. I need to show that:
E(sum(X)) = E(N) * E(X)
var(sum(X)) = E(N) * var(X) + var(N) * (E(X))^2
Anyone knowing to do this?