Skip to content

stats endless loop ? #2667

Closed
josef-pkt opened this Issue Jul 31, 2013 · 5 comments

3 participants

@josef-pkt
SciPy member
>python -c "import numpy as np; from scipy import stats; stats.nct._sf(np.nan, 125.531223551, 2.82324307702)"

never comes back

I was tracking an rootfinding that never came back that had bad starting values.

scipy 0.9.0 and scipy 0.11.0

@rgommers
SciPy member

Not a stats bug; the non-underscored sf returns nan as expected.

It is a special bug that nan input to nctdtr hangs. Doesn't seem to depend on the values of argument 2 and 3, this hangs as well:

special.nctdtr(np.nan, 2, 1)
@josef-pkt
SciPy member

my code comment to justify using the private method

# use private methods, generic methods return nan with negative d

scipy 0.9.0

@josef-pkt josef-pkt referenced this issue in statsmodels/statsmodels Jul 31, 2013
Closed

power ttest endless loop possible #1011

@rgommers
SciPy member

So is the nan from negative d a bug that needs fixing then?

@josef-pkt
SciPy member

As far as I remember it's already fixed in scipy master.

@josef-pkt
SciPy member

PR #2457

@pv pv closed this in #3222 Feb 24, 2014
@pv pv added this to the 0.14.0 milestone Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.