BUG: Invalid IndexError
from scipy.stats.nbinom.logcdf
#19747
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.stats
Milestone
Describe your issue.
The
logcdf
method ofnbinom
throws anIndexError
for certain inputs containing negative entries. For instance,k = [5, -1, 1]
triggers the issue. On the other hand,k = [5, -1]
works fine and returns-inf
for-1
as expected.I confirmed the issue on a Debian amd64 system and on a Termux arm system.
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: