Skip to content

Commit

Permalink
Revert "MAINT: stats: update boost to improve skewnorm.ppf (scipy#2…
Browse files Browse the repository at this point in the history
…0643)"

This reverts commit ee6203d.
  • Loading branch information
tylerjereddy committed May 15, 2024
1 parent cec68d7 commit f1575a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion scipy/_lib/boost_math
Submodule boost_math updated 908 files
6 changes: 0 additions & 6 deletions scipy/stats/tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4006,12 +4006,6 @@ def optimizer(fun, bounds):
fit_result = stats.fit(stats.skewnorm, x, bounds, optimizer=optimizer)
np.testing.assert_allclose(params, fit_result.params, rtol=1e-4)

def test_ppf(self):
# gh-20124 reported that Boost's ppf was wrong for high skewness
# Reference value was calculated using
# N[InverseCDF[SkewNormalDistribution[0, 1, 500], 1/100], 14] in Wolfram Alpha.
assert_allclose(stats.skewnorm.ppf(0.01, 500), 0.012533469508013, rtol=1e-13)


class TestExpon:
def test_zero(self):
Expand Down

0 comments on commit f1575a8

Please sign in to comment.