diff --git a/test/test_distributions/test_gaussian.py b/test/test_distributions/test_gaussian.py index 12b7378..783e9bf 100644 --- a/test/test_distributions/test_gaussian.py +++ b/test/test_distributions/test_gaussian.py @@ -288,7 +288,7 @@ def test_sampling_with_infinite_bounds_and_flipping(self): def test_non_standard_sampling(self): model = TruncatedGaussianDistribution(self.x, SimpleInterval(-np.inf, -0.1), 0.5, 2) samples = model.robert_rejection_sample(1000).reshape(-1, 1) - self.assertAlmostEqual(max(samples), -0.1, delta=0.01) + self.assertAlmostEqual(max(samples), -0.1, delta=0.1) likelihoods = model.likelihood(samples) self.assertTrue(all(likelihoods > 0)) self.assertAlmostEqual(model.expectation(model.variables)[model.variable], samples.mean(), delta=0.1)