Geometric distribution with multiple successes Here's the question: 
"A sales representative vows to keep knocking on doors until he makes two sales. Given that his probability of success is $u$, let $X$ = the number of doors he knocks on.   
Find the probability mass function of $X$" 
My thought is that $x$ cannot be less than $2$, since he would have to knock on two doors to make two sales.  
I'm thinking the function would be $\displaystyle\binom{x}{2} (u^2)(1-u)^{x-2}.$ 
But when I go to find $E(x)$, that doesn't lend itself well to the geometric form I've learned to love. 
Am I on the right track at least?
Thanks for any help. 
 A: Let us find the probability that $X=x$, that is, the probability she has to knock on $x$ doors.
She has to have $1$ success (and therefore $x-2$ failures) in the first $x-1$ trials, and then a success. The probability of this is
$$\binom{x-1}{1}u(1-u)^{x-2}u.$$ 
A: The formula
$$p_x=\binom x2 u^2(1-u)^{x-2}$$
is the probability that he knocks on at most $x$ doors.  But you want the probability that he knocks on exactly $x$ doors.  One way to find this would be:


*

*number of possibilities for the first successful knock is $x-1$;

*probability of each case is $u^2(1-u)^{x-2}$;

*total probability is $(x-1)u^2(1-u)^{x-2}$.


Indeed it's not geometric, but instead of summing the series, you can use linearity of expectation: the expected value of $X$ will be the expected number of knocks to get one success, plus the number of additional knocks required to get the second success.  And the latter is just the same as the former.
A: The negative binomial distribution of trials until the second success is: $$\mathsf P(X_2=x) = {x-1\choose 1}u^2(1-u)^{x-2}$$
There must be $x-2$ failures and one success in any order before the last success. 

The negative binomial distribution of trials until the r-th success is: $$\mathsf P(X_r=x) = {x-r+1\choose r-1}u^{r}(1-u)^{x-r}$$
The geometric distribution is the special case of a negative binomial where $r=1$.
$$\mathsf P(X_1=x) = {x\choose 0}u^{1}(1-u)^{x-1} = u(1-u)^{x-1}$$
