hakaru-dev / hakaru

A probabilistic programming language
BSD 3-Clause "New" or "Revised" License
311 stars 30 forks source link

Pareto to Exponential Test #178

Closed mkhattab940 closed 6 years ago

mkhattab940 commented 6 years ago
### Failure in: 6:RoundTrip:0:0:t_pareto_to_exponential:1
haskell/Tests/TestTools.hs:130
expected:
gamma(1/1, 1/1)
but got:
X3 <~ uniform(+0/1, +1/1)
return real2prob(log(real2prob(X3)) * (-1/1))
Cases: 162  Tried: 85  Errors: 0  Failures: 1