Let X~Bernoulli$(\theta)$ and Y~Geometric$(\theta)$ where X and Y are independent. Let Z = X + Y. What is the probability function of Z?
My thoughts are:
Let Y be the number of failures until the first success.
$p_Z(0) = p_X(0)p_Y(0) = (1 - \theta)(1 - \theta)^0\theta = (1-\theta)\theta$ $p_Z(1) = p_X(0)p_Y(1) + p_X(1)p_Y(0) = (1 - \theta)(1 - \theta)^1\theta + \theta(1 - \theta)^0\theta= (1-\theta)^2\theta + \theta^2$
and for z >= 2,
$p_Z(z) = p_X(0)p_Y(z)+p_X(1)p_Y(z-1) = (1-\theta)(1-\theta)^z\theta + \theta(1-\theta)^{z-1}\theta$
Can someone tell me if I'm on the right track?