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

nbdtr

Cumulative distribution function of the negative binomial.

nbdtrik

Inverse with respect to k of nbdtr(k, n, p).

nbdtrin

Inverse with respect to n of nbdtr(k, n, p).

Notes

Wrapper for the Cephes [1] routine nbdtri.

References

1

Cephes Mathematical Functions Library, http://www.netlib.org/cephes/