Closed sjakobi closed 2 years ago
(I am also from the HNix project downstream): Obviously, the quickcheck
seed is preserved, so most probably it can be tested/addressed even without preserved log.
Here is plot for roundtrip error for gamma distribution:
Cumulative and quantile are basically incompleteGamme + its inverse. So it seems problem is in incompleteGamma function. My hunch we terminate series summation before it converges (or lose too much precision). Zig-zag pattern looks like we change parameter to incompleteGamma and add another term to expansion which pushes error down. Then it starts to decay again
Most likely it's problem with incomplete gamma function from math-functions. I improved its precision quite a bit and will revisit this issue when I make new release.
https://travis-ci.org/github/haskell-nix/hnix/jobs/707980815#L7818-L7830
EDIT: Hmm, maybe I shouldn't have restarted that Travis job. ;)
Version info:
statistics-0.15.2.0
GHC-8.4.4