def test_no_significance1(self): val = rat.approximate_randomization_test(self.tree1L, self.tree1L, self.tree1L, self.measure, 0.01) self.assertFalse(val)
def test_no_significance2(self): # this test uses random trees, so it occasionally fails... val = rat.approximate_randomization_test(self.randomTree1L, self.randomTree1L, self.randomTree2L, self.measure, 0.01) self.assertFalse(val)
def test_significance2(self): # the significance level estimated here is approx 0.5! # needs more data for more significance, I suppose. val = rat.approximate_randomization_test(self.tree1L, self.tree1L, self.tree2L, self.measure, 0.6) self.assertTrue(val)