Skip to content
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

Problems with beta distrbution #161

Open
Shimuuar opened this issue Jan 3, 2020 · 0 comments
Open

Problems with beta distrbution #161

Shimuuar opened this issue Jan 3, 2020 · 0 comments
Labels

Comments

@Shimuuar
Copy link
Collaborator

Shimuuar commented Jan 3, 2020

Test for quantile inverse fails spectacularly:

      Quantile is CDF inverse: FAIL
        *** Failed! Falsified (after 99 tests):
        improperBetaDistr 1.9354985700057857e-2 9.298452506189731
        Double01 0.7873411995889938
        Quantile      = 9.435096862311606e-5
        Probability   = 0.7873411995889938
        Probability'  = 0.8812454856896215
        Rel. error    = 0.10655860100905087
        Abs. error    = 9.390428610062762e-2
        Expected err. = 16.346348384470552
        Distance      = 845814615782558
        Err/est       = 5.1743337159392945e13 <---
        Use --quickcheck-replay=315907 to reproduce.

This is really bug in incompleteBeta and/or invIncompleteBeta. Actual roundtrip error is so bad: 1e13 larger that expected that there's no point in clearing

Probably related: haskell/math-functions#32

@Shimuuar Shimuuar added the Bug label Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant