-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False CDF values for skew normal distribution #7746
Comments
Correct. The technical problem is that numerical integration of the pdf starts to fail once the support becomes too narrow compared to the interval. Can probably be fixed by just returning 1.0 when deep in the tail of the cdf. |
ISTM the best fix would be to finish off gh-7120, which implements the Owen's T function, and add the explicit form of the |
The CDF is computed by integrating the PDF using scipy.integrate.quad. To ensure that quad "sees" the peak of the PDF, the integral is split at x=0. The calculation of the survival function is improved by using the symmetry it has with the CDF: sf(x, a) = cdf(-x, -a). Closes scipygh-7746.
The CDF is computed by integrating the PDF using scipy.integrate.quad. To ensure that quad "sees" the peak of the PDF, the integral is split at x=0. The calculation of the survival function is improved by using the symmetry it has with the CDF: sf(x, a) = cdf(-x, -a). Closes scipygh-7746.
Per the discussion in gh-8473: the naive formula contains the difference |
When x is sufficiently large, skewnorm.cdf outputs 0 instead of 1.
Reproducing code example:
A short code example that reproduces the problem:
Error message:
No error messages. See the following graph for the issue:
Scipy/Numpy/Python version information:
Python 2.7.13
Scipy 0.19.1
Numpy 1.12.1
The text was updated successfully, but these errors were encountered: