[Test] public void TestPValue() { var p = Significance.PValue(1046, 0.42, 0.5); TestHelpers.AlmostEqual(1 / 9000000, p); }
[Test] public void TestPValueTwoSided() { var p = Significance.PValue(1000, 0.576, 0.5, two_sided: true); TestHelpers.AlmostEqual(1 / 663000, p); }