[Scipy-tickets] [SciPy] #1326: chi2.pdf erroneous value at x=0.0 df=2

SciPy Trac scipy-tickets@scipy....
Wed Nov 10 06:58:18 CST 2010


#1326: chi2.pdf erroneous value at x=0.0 df=2
-------------------------+--------------------------------------------------
 Reporter:  tpikonen     |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.9.0   
Component:  scipy.stats  |     Version:  devel   
 Keywords:  chi2 pdf     |  
-------------------------+--------------------------------------------------
 In [331]: scipy.stats.distributions.chi2.pdf(0.0, 2)

 Out[331]: nan

 The correct value is 0.5.

 Attached is a patch which fixes this.

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


More information about the Scipy-tickets mailing list