haskell / statistics

A fast, high quality library for computing with statistics in Haskell.
http://hackage.haskell.org/package/statistics
BSD 2-Clause "Simplified" License
300 stars 68 forks source link

Test suite failures for gamma distribution #196

Open lorinder opened 1 year ago

lorinder commented 1 year ago

I occasionally see the testsuite fail for the gamma distribution.

log density check:                                                                     FAIL    
  *** Failed! Falsified (after 54 tests and 2 shrinks):
  improperGammaDistr 80.10044478990355 0.5569517767725765
  36.1
  density    = 1.850883361798215e-2
  logDensity = -3.989507167997367
  log p      = -3.9895071679973992
  ulps[log]  = 73
  ulps[lin]  = 172
  Use --quickcheck-replay=158071 to reproduce.
  Use -p '/Tests for: GammaDistribution.log density check/' to rerun this test only.

To reproduce, run the test suite in a loop. It takes typically a few dozen runs to see this.