[Scipy-tickets] [SciPy] #697: Negative Binomial Calculation Error

SciPy scipy-tickets@scipy....
Mon Oct 27 14:04:08 CDT 2008

#697: Negative Binomial Calculation Error
 Reporter:  davidmit     |        Owner:  somebody         
     Type:  defect       |       Status:  new              
 Priority:  high         |    Milestone:  StatisticsCleanup
Component:  scipy.stats  |      Version:                   
 Severity:  major        |   Resolution:                   
 Keywords:               |  
Comment (by josefpktd):

 The discussion in ticket:583 seems to be only on the random number
 generator. In scipy 0.6.0 there are also errors in
 scipy.stats.distributions. See ticket:745 for general fixes

 this is with scipy 0.6.0, I don't know what current trunk does:

 >>> print nbinom.cdf(2)
 >>> print nbinom.ppf(0.5)
 Traceback (most recent call last):
   File "<pyshell#3>", line 1, in ?
     print nbinom.ppf(0.5)
   File "C:\Programs\Python24\lib\site-
 packages\scipy\stats\distributions.py", line 112, in ppf
     return self.dist.ppf(q,*self.args,**self.kwds)
   File "C:\Programs\Python24\lib\site-
 packages\scipy\stats\distributions.py", line 3608, in ppf
   File "C:\Programs\Python24\Lib\site-
 packages\numpy\lib\function_base.py", line 1357, in place
     return _insert(arr, mask, vals)
 OverflowError: cannot convert float infinity to long

Ticket URL: <http://scipy.org/scipy/scipy/ticket/697#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list