Displaying 1 result from an estimated 1 matches for "mu_big".
Did you mean:
mbig
2010 Aug 17
3
Weird differing results when using the Wilcoxon-test
...icularly is the differing results when wanting to
calculate the p-value manually, for bigger sample sizes.
So, if we get the W-score from wilcox.test:
#---BeginCode---
W_big = wilcox.test(big1, big2))$statistic
#---EndCode---
and "convert" it to a Z-score, like this:
#---BeginCode---
mu_big = (size^2)/2
sd_big = sqrt(size*size*(size + size + 1)/12)
N = size + size
sd_big_corr = sqrt( (size * size) / (N * (N - 1)) * (N^3 - N) / 12 )
Z_big = (((W_big - mu_big)/sd_big)
#---EndCode---
The Z-Score (Z_big) is equal to the statistic of wilcox_test.
So far so good. And now comes the main pr...