Let $\{X_1, X_2, X_3,\ldots \}$ be a sequence of random variables with mean of $1$. If $N$ is a geometric random variable with probability mass function:- $$\mathsf P(N=k) ~=~ \frac 1{2^k} ~ \big[k\in \{1,2,3,\ldots\}\big]$$ > ... and it is independent of all $X_k$, then what is ?:- $$\mathsf E(X_1+X_2+X_3+\cdots+X_N)$$
Link to Image
I know that $E[aX+bY]=a E[X]+b E[Y]$
Also I know that $\sum_{n = 1}^\infty \frac{1}{2^n}=1.$
So $E[X_1+X_2+...+X_N]=E[X_1]+E[X_2]+...+E[X_N]=\sum_{n = 1}^N\frac{1}{2^n}$
As limit n-> $\inf$ above term becomes one.
Thus Answer is 1.
Am I correct ?
Thanks