Edit: Sorry for the Latex, I'm new to it and trying to fix it right now
I am trying to find the probability function of a random sum of Bernoulli variables in this scenario:
Starting from 9AM, clients arrive (independently), before a store opens, and stand in line to enter the store when it opens. An employee of the store randomly checks the line $M$ minutes after 9AM, with $M$ a Poisson variable with parameter $v$.
The number of clients that arrive during any $1$ minute interval is either $1$ or $0$ with probabilities $p$ and $1 - p$.
Let $S_m$ be the total number of clients in line when the line is checked at $M = m$ minutes after 9AM.
I need to find
1) $\Pr(S_m = k)$ for $k = 0,1,2,\ldots$
2) $\operatorname{E}(M \mid S_m = k)$
For 1) I found that $$\Pr(S_m = k) = \sum_{M=1}^\infty {M \choose k} p^k (1-p)^{M-k}\frac{{e^{-v}v^M }}{M!}$$
For 2), I started by trying to find $\Pr(M = m \mid S_m = k)$ but I'm having a hard time finding it.
I started by doing $$\Pr(M = m \mid S_m = k) = \frac{P(M = m, S_m = k)}{P(S_m = k)}$$ and plugged in the denominator my answer to $1$, but I don't know how to find the numerator and am really unsure of what I've done so far.
Could anyone help me out?
Thank you!