llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

LNT: possibly incorrect computation of Mann-Whitney U value for small sample sizes

Open llvmbot opened this issue 10 years ago • 1 comments

Bugzilla Link 29007
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @cmatthew,@kbeyls,@kongy

Extended Description

lnt/util/stats.py calculates the Mann-Whitney U value for small sample sizes using mannwhitneyu_small. This implementation doesn't match any of the references I've been able to locate. The current implementation does:

abs(Ua - Ub) <= critical value

to test for "sameness", but all the references I've found do:

min(Ua, Ub) > critical value

These are equivalent at the extremes, but differ pretty significantly otherwise, leading the current implementation to err on the side of "not the same". Does anyone know if this is intentional or an oversight?

llvmbot avatar Aug 16 '16 22:08 llvmbot

That sounds like an oversight to me!

cmatthew avatar Aug 16 '16 22:08 cmatthew