X and Y are both geometric distributions with success p. What it the Pr(X+Y=n)
Would I use a convolution with a sum for this? Do I need to define a third random variable?
X and Y are both geometric distributions with success p. What it the Pr(X+Y=n)
Would I use a convolution with a sum for this? Do I need to define a third random variable?
From the definition of Geometric Random Variables:
If $X, Y$ are the independent counts of trials, from sequences of Bernoulli trials, until first success (with rate $p$), then $X+Y$ would be the count of trials from a sequence of Bernoulli trials until the second success. We would then be seeking the probability of obtaining exactly one success somewhere among $n-1$ trials, then a second success.
$$\mathsf P(X+Y=n) = (n-1) p^2 (1-p)^{n-2}~\mathbf 1_{n\in \{2,3,\ldots\}}$$
We have \begin{align} &\ \Pr(X + Y = n)\\ = &\ \sum_{i=1}^{n-1} \Pr(X=i) \cdot \Pr(Y = n - i \mid X = i) \\ = &\ \sum_{i=1}^{n-1}\Pr(X = i)\cdot\Pr(Y=n-i) \\ = &\ \sum_{i=1}^{n-1}p(1-p)^{i-1} \cdot p(1-p)^{n-i-1} \\ = &\ \sum_{i=1}^{n-1} p^2(1-p)^{n-2} \\ = &(n-1)p^2(1-p)^{n-2} \end{align}