Exemplo n.º 1
0
 def test_exponential_uniform(self):
     samp_table = np.random.multinomial(n=500, pvals=self.exponential_pvals)
     bvals = brive(samp_table, replace_zeros=False)
     rel = closure(samp_table)
     m = bvals.sum()
     npt.assert_array_less(rel - bvals, 1.1 / 500)
     self.assertLess(m, 1 - robbins(samp_table))
Exemplo n.º 2
0
 def test_exponential_uniform(self):
     samp_table = np.random.multinomial(n=500,
                                        pvals=self.exponential_pvals)
     bvals = brive(samp_table, replace_zeros=False)
     rel = closure(samp_table)
     m = bvals.sum()
     npt.assert_array_less(rel-bvals, 1.1/500)
     self.assertLess(m, 1 - robbins(samp_table))
Exemplo n.º 3
0
 def test_robbins(self):
     self.assertEqual(robbins(np.array([1, 2, 3, 0, 1])), 2 / 7)
Exemplo n.º 4
0
 def test_robbins(self):
     self.assertEqual(robbins(np.array([1, 2, 3, 0, 1])), 2 / 7)