llvm-project
llvm-project copied to clipboard
LNT: possibly incorrect computation of Mann-Whitney U value for small sample sizes
| 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?
That sounds like an oversight to me!