Poor precision in BinomialDistribution for probability & logProbablilty
- Dominant language
- Haskell
- Stars
- 309
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
A [recent built on the nixos build server hydra](https://hydra.nixos.org/build/122996414/nixlog/1) failed with this error for `statistics-0.15.2.0`:
```
Tests for: BinomialDistribution
<...>
log probabilty check: FAIL
*** Failed! Falsified (after 34 tests):
binomial 79 9.83897381493678e-2
7
probability = 0.14935400356648396
logProbability = -1.9014359280741342
log p = -1.9014359280741266
eps = 3.970429114115656e-15
Use --quickcheck-replay=39638 to reproduce.
```
My best guess is, that this is not indicative of a bug in the library. Maybe the eps is to small?
I don‘t assume that this is the result of linking against a wrong library version or something, i.e. a issue in nixpkgs. But please enlighten me.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.