Open dschmitz89 opened 2 months ago
I'll need to re-read the papers to see if there's a better way, although interestingly for shape=1 the cdf appears to simply be the square of the normal cdf which would at least solve that specific case.
Notes to self, since I'm about to disappear on holiday ;)
Method T6 from "FAST AND ACCURATE CALCULATION OF OWEN’S T-FUNCTION" is interesting, but fails to provide an error bound.
"Evaluating the CDF of the Skew Normal Distribution", Amsler,2020 provides some interesting approximations for the far tails.
SciPy currently falls back to quadrature integration of the PDF in the left tail of the skewnorm CDF for positive $a$ as the boost function has issues for low values. There seem to be catastrophic cancellations resulting in CDF values of 0. See the python example below. This is probably not a super serious issue but still wanted to make you aware in case you would like to fix it on your end.
Which results in the following plot:
Zooming in shows
For reference what the parameters of
_skewnorm_cdf
mean here the wrapper code: