I've been struggling with the following probability question. It is not a homework question. I just want to know how to do the problem.
Assume that $N, X_{1}, X_{2}, X_{3}, \ldots $are independent random variables where $N$ has as geometric distribution with probability mass function $\Pr\{N = k\} = (1 - p)^{k - 1}p,$ where $k = 1, 2, 3 \ldots, $ and $0 < p < 1$. Moreover, $X_{1}, X_{2}, \ldots$ have an exponential distribution with the probability distribution function
$$f(x) = \begin{cases} \lambda e^{-\lambda x} & \text{ if } x > 0\\ 0, & \text{ if } x \leq 0. \end{cases} $$
Let $Y = X_{1} + X_{2} + \ldots X_{N}$.
Compute $\Pr\{Y \leq y, N = k\}$ where $y \in (-\infty, \infty)$ and $k = 1, 2, 3, \ldots$
Find the probability distribution function of $Y$.
For the first question, I tried to calculate it using small values of $k$ first. For example, suppose $N = 1$. Then we need to find $\Pr\{X_{1} \leq y\}$, which is just $\int_{0}^{y} \lambda e^{-\lambda x} \mathop{dx} = -e^{-\lambda y}$. I couldn't find any patterns, though.
For the second question, I'm aware that the probability distribution for sums of exponential random variables is a gamma distribution, but I'm not sure about how to find it.
Thanks