scipy.stats.nbinom.logpmf(0,1,1) returns nan. Correct value is 0 #4029
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
good first issue
Good topic for first contributor pull requests, with a relatively straightforward solution
scipy.stats
Milestone
One solution is to replace _logpmf with:
Another issue is that according to wikipedia it is only defined for n>0, but here it is defined for n>=0.
Perhaps consider replacing _argcheck with
The text was updated successfully, but these errors were encountered: