scipy.special.nbdtri¶
-
scipy.special.
nbdtri
(k, n, y) = <ufunc 'nbdtri'>¶ Inverse of
nbdtr
vs p.Returns the inverse with respect to the parameter p of y = nbdtr(k, n, p), the negative binomial cumulative distribution function.
- Parameters
- karray_like
The maximum number of allowed failures (nonnegative int).
- narray_like
The target number of successes (positive int).
- yarray_like
The probability of k or fewer failures before n successes (float).
- Returns
- pndarray
Probability of success in a single event (float) such that nbdtr(k, n, p) = y.
See also
Notes
Wrapper for the Cephes [1] routine
nbdtri
.References
- 1(1,2)
Cephes Mathematical Functions Library, http://www.netlib.org/cephes/