Tom "makes"(scores) a basketball shot with the probability $0.8$. He stops when he has made 10 scores.
(A) what is the probability that he makes it in $13$ attempts
so here i used the negative binomial distribution: $\binom{k-1}{r-1}p^rq^{k-r}$ where $k$ = number of tries and $r$ = the number of "successes" (in our case the number of scores), $p =$ probability, $q= 1-p$
(B) how many attempts is it most likely that TOM needs ?
Now i could use set $p(k)= \binom{k-1}{r-1}p^rq^{k-r}$ and take the derivate w.r.t to $k$ and then find $p'(k) = 0 $ to obtain a maximum. The problem is i get a really nasty expression ..hopless. Is there another way?