Skip to content
Prev 79963 / 398502 Next

significant test

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
Actually, it is quite easy to come up with examples where the median
is identical but Wilcoxon still comes out significant, most often if
the distribution has more than 50% zeros in both groups -- think
"functional impairment" or "alcohol consumption on a weekday". 
The distribution is not continuous in those cases, but wilcox.test
deals with the resulting ties. The test statistic is directly related
to the sign of the difference between a random observation from each
group, i.e. P(X > Y) / P(X != Y) which can be assumed to be 0.5 under
the null.