haskell / haskell/statistics

Poor precision in BinomialDistribution for probability & logProbablilty

Abierto
#166 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Bug
Lenguaje dominante
Haskell
Estrellas
309
Forks
76
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.