Step 1:
We know that the probability mass function of a geometric distribution is given by $P(Y=y) = q^{y-1}p$, where $p$ is the probability of success, $q=1-p$ is the probability of failure, and $y$ is the number of trials needed to get the first success.
Show more…