I have a r.v $S_N$ built as a sum of Bernoulli with parameter $p$. So $S_N = X_1 + X_2 + \ldots + X_N$. There is a second variable N, such that $N \sim Poisson(\lambda) $.
I have to compute:
- $P(S_N=0)$
- $\mathop{\mathbb{E}}(S_N \ | \ N = 4 )$
- $\mathop{\mathbb{E}}(S_N \ | \ N )$
Now, for the first point, I need to think my sum of Bernoulli as a Binomial. Thus:
$$ P(S_N = 0) = \binom{n}{0} p^k (1-p)^{n-k} = (1-p)^n $$
However, i'm stuck with the two expectations. But i remember that for the conditional expectaction for two discrete random variables it holds:
$$ \mathop{\mathbb{E}}(X \ | \ Y = k ) = \sum_x x \ f_{X|Y}(x|y) $$