statistics icon indicating copy to clipboard operation
statistics copied to clipboard

Kruskal Wallis out of range

Open GregorySchwartz opened this issue 7 years ago • 1 comments

Error with a vector of two vectors, one of length 4752 and one of length 1974: Statistics.Types.mkPValue: probability is out if [0,1] range.

GregorySchwartz avatar Sep 07 '18 20:09 GregorySchwartz

Here is a simple example:

Stat.kruskalWallisTest [U.fromList [0,0,0,0,0], U.fromList [0,0,0,0,0]]

This error occurs when all values in both groups are tied (the lengths of the vectors can be the same or different). I would expect a p-value of Nothing.

GregorySchwartz avatar Sep 07 '18 20:09 GregorySchwartz