Subject: | p-values > 1 returned |
Date: | Tue, 21 Jul 2009 11:09:37 -0400 (EDT) |
To: | bug-Statistics-Test-WilcoxonRankSum [...] rt.cpan.org |
From: | Gabor Halasz <gh74 [...] columbia.edu> |
Hi-
The Mann-Whitney test returns a probability greater than 1. The bug
is fairly simple to reproduce:
perl -e 'use Statistics::Test::WilcoxonRankSum; $w_test = Statistics::Test::WilcoxonRankSum->new();
my @d1 = qw(0.735 0.745 0.828 0.826); my @d2 = qw(0.847 0.837 0.719 0.668);
$w_test->load_data(\@d1, \@d2);
my $prob = $w_test->probability();
print "$prob\n";
$w_test->summary();'
This happily returns a probability greater than 1, which is a problem.
I'm using module version Statistics-Test-WilcoxonRankSum-0.0.5. Is there
a more recent one? Thanks,
Gabor