what is the difference between geometric and negative binomial?
The geometric distribution describes the probability of "x trials are made before a success", and the negative binomial distribution describes that of "x trials are made before r successes are obtained", where r is fixed. So you see that the latter is a particular case of the former, namely, when r=1.