Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should fix failure found in #166: 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 It turns out that main contribution to error in probability is (1-p)^(n-k) and for logProbability we subtract values of same magnitude with usual consequences for precision
- Loading branch information