aesara.tensor.random.negative_binomial

aesara.tensor.random.negative_binomial#

aesara.tensor.random.negative_binomial = <aesara.tensor.random.basic.NegBinomialRV object>[source]#

A negative binomial discrete random variable.

The probability mass function for nbinom for the number k of draws before observing the nth success in terms of the probability of success p of a single trial is:

f(k; p, n) = {k+n-1 \choose n-1} p^n (1-p)^{k}