haskell / haskell/statistics

Poor precision in BinomialDistribution for probability & logProbablilty

未关闭
#166 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug
主要语言
Haskell
星标
309
派生
76
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。