[Scipy-tickets] [SciPy] #1471: stats.lognorm.pdf(0,s) reports nan

SciPy Trac scipy-tickets@scipy....
Sat Jul 2 19:53:15 CDT 2011


#1471: stats.lognorm.pdf(0,s) reports nan
-------------------------+--------------------------------------------------
 Reporter:  jaredd       |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.9.0      
 Keywords:               |  
-------------------------+--------------------------------------------------
 The following IPython log demonstrates the error:

 In [13]: from scipy.stats import lognorm

 In [14]: lognorm.pdf(0,1)

 Out[14]: nan

 The correct value of the lognormal pdf at 0 is 0.  It appears that this
 must be handled explicitly in the pdf function if the endpoints of the
 support of the pdf function are to be included.  I wonder if limiting
 values for other distributions are not correctly handled?

 Regards,
 Jared.

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


More information about the Scipy-tickets mailing list