testSignificanceNLP icon indicating copy to clipboard operation
testSignificanceNLP copied to clipboard

Possible bug

Open trangham283 opened this issue 6 years ago • 3 comments

In lines 78 and 100, shouldn't the sign be flipped? i.e. increment r if delta > 2*orig_delta. That's according to the Berg-Kirkpatrick et al. (2012) paper, unless I'm misunderstanding something. Thanks!

trangham283 avatar Nov 02 '18 10:11 trangham283

BTW, I also found that Berg-Kirkpatrick et al. (2012) mentioned in the footnote, we can also use

delta (x_i) < 0

besides

delta > 2*orig_delta

allanj avatar Aug 28 '19 06:08 allanj

So... this was fixed for Bootstrap, but not for Permutation?

texttheater avatar Sep 02 '22 09:09 texttheater

Someone correct me please, but I think the original version is correct assuming that data_A is the output of the baseline and data_B is the output of the algorithm to be tested. If you swap the two, the sign of the deltas is going to be flipped, so you have to flip the comparator.

texttheater avatar Sep 12 '22 11:09 texttheater