scipy / scipy

SciPy library main repository
https://scipy.org
BSD 3-Clause "New" or "Revised" License
12.68k stars 5.07k forks source link

Severe nan bug in stats.norm.cdf (Trac #567) #1094

Closed scipy-gitbot closed 11 years ago

scipy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/scipy/ticket/567 on 2007-12-18 by trac user cems, assigned to unknown.

Reproducible bug.

version 0.5.2.1-2 from fink running in ipython, mac ppc G4, 10.4.11

description: at many special input values stats.norm.cdf() returns a nan.

Example:

In [308]: stats.norm.cdf(-1.7624320981) Out[308]: array(0.03899815972020125)

In [309]: stats.norm.cdf(-1.7624320982) Out[309]: array(nan)

In [310]: stats.norm.cdf(-1.7624320983) Out[310]: array(nan)

In [311]: stats.norm.cdf(-1.7624320984) Out[311]: array(0.038998159694008439)

scipy-gitbot commented 11 years ago

Attachment added by @nilswagner01 on 2008-06-21: test_statsnormcdf.py

scipy-gitbot commented 11 years ago

@nilswagner01 wrote on 2008-08-02

I cannot reproduce the bug here.

Linux linux 2.6.11.4-21.17-default #1 Fri Apr 6 08:42:34 UTC 2007 i686 athlon i386 GNU/Linux

>>> scipy.__version__
'0.7.0.dev4559'
>>> stats.norm.cdf(-1.7624320982)
array(0.03899815971089126)
>>> stats.norm.cdf(-1.7624320983)
array(0.038998159702449853)
>>> stats.norm.cdf(-1.7624320984)
array(0.038998159694008439)
>>> stats.norm.cdf(-1.7624320981)
array(0.038998159719332653)
n
scipy-gitbot commented 11 years ago

@josef-pkt wrote on 2008-11-17

looks essentially like a duplicate of gh-1067

I added a test for 540 and 567 to test_continuous_extra.py

scipy-gitbot commented 11 years ago

Milestone changed to 0.7.0 by @jarrodmillman on 2008-12-31