diff --git a/math/src/test/scala/breeze/stats/hypothesis/TTestTest.scala b/math/src/test/scala/breeze/stats/hypothesis/TTestTest.scala index 28355f965..dd32b04e6 100644 --- a/math/src/test/scala/breeze/stats/hypothesis/TTestTest.scala +++ b/math/src/test/scala/breeze/stats/hypothesis/TTestTest.scala @@ -7,14 +7,14 @@ import matchers.should.Matchers._ class TTestTest extends AnyFunSuite { val threshold = 0.01 test("T Test two sample") { - tTest(List(1.0, 1, 2, 3), List(9.0, 9, 8, 9)) should be(4.29E-5 +- threshold) + tTest(List(1.0, 1, 2, 3), List(9.0, 9, 8, 9)) should be(4.752E-5 +- threshold) } test("T Test one sample") { - tTest(Array(1.0, 1, 2, 3)) should be(0.0336 +- threshold) + tTest(Array(1.0, 1, 2, 3)) should be(0.982 +- threshold) } test("T Test one sample for Traversable") { //This test is designed to detect this bug, just in case a refactoring re-introduces it: https://github.com/scalanlp/breeze/issues/486 - tTest(List(1.0, 1, 2, 3)) should be(0.0336 +- threshold) + tTest(List(1.0, 1, 2, 3)) should be(0.982323 +- threshold) } test("T Test one sample should throw error when given vector of length 1") { intercept[IllegalArgumentException] {