I'm trying to construct a distribution using scipy.stats.pearson3, but I'm running into inconsistent results when looking at the cumulative distribution function (or the survival function).
As an example:
scipy.stats.pearson3.cdf(-1, skew=0, loc=0, scale=1)
>> 0.15865525393145707
scipy.stats.pearson3.cdf(-1, skew=-0.0001, loc=0, scale=1)
>> 0.8413447461693605
scipy.stats.pearson3.cdf(+1, skew=-0.0001, loc=0, scale=1)
>> 0.1586552538306324
The first result is fine; as in, it is what you should expect from a skew=0 pearson3 (same result as with a normal distribution).
But the second and third results are inconsistent: they show a decreasing CDF which doesn't make sense (This does not occur if the skew is positive). It seems that a negatively skewed pearson3 distribution has inverted CDF and SF functions. Oddly, the PDF appears to be correct, which leads to even more confusion.
Does anyone know if this is a known issue with scipy or if I am missing something?