 The asymptotic probability of not exceeding the standardized (to an asymptotic variance of 1.0) minimum of (W+, W–) using method 1 under the null hypothesis that the distribution is symmetric about 0.0.
The asymptotic probability of not exceeding the standardized (to an asymptotic variance of 1.0) minimum of (W+, W–) using method 1 under the null hypothesis that the distribution is symmetric about 0.0. And, the asymptotic probability of not exceeding the standardized (to an asymptotic variance of 1.0) minimum of (W+, W–) using method 2 under the null hypothesis that the distribution is symmetric about 0.0.
And, the asymptotic probability of not exceeding the standardized (to an asymptotic variance of 1.0) minimum of (W+, W–) using method 2 under the null hypothesis that the distribution is symmetric about 0.0.| Row | Statistics | 
| 0 | Wilcoxon W statistic (the sum of the ranks of the x observations) adjusted for ties in such a manner that W is as small as possible | 
| 1 | 2 × E (W) – W, where E (W)is the expected value of W | 
| 2 | probability of obtaining a statistic less than or equal to  min {W, 2 × E (W) – W} | 
| 3 | W statistic adjusted for ties in such a manner that W is as large as possible | 
| 4 | 2 × E (W) – W, where E (W) is the expected value of W, adjusted for ties in such a manner that W is as large as possible | 
| 5 | probability of obtaining a statistic less than or equal to  min {W, 2 × E (W) – W}, adjusted for ties in such a manner that W is as large as possible | 
| 6 | W statistic with average ranks used in case of ties | 
| 7 | estimated standard error of Stats (6) under the null hypothesis of no difference | 
| 8 | standard normal score associated with Stats (6) | 
| 9 | two-sided p-value associated with Stats (6) | 
| Row | Statistics | 
| 0 | The positive rank sum, W+, using method 1. | 
| 1 | The absolute value of the negative rank sum, W–, using method 1. | 
| 2 | The standardized (to anasymptotic variance of 1.0) minimum of (W+, W–) using method 1. | 
| 3 | The asymptotic probability of not exceeding stats(2) under the null hypothesis that the distribution is symmetric about 0.0.  | 
| 4 | The positive rank sum, W+, using method 2.  | 
| 5 | The absolute value of the negative rank sum, W–, using method 2.  | 
| 6 | The standardized (to an asymptotic variance of 1.0) minimum of (W+, W–) using method 2.  | 
| 7 | The asymptotic probability of not exceeding stats(6) under the null hypothesis that the distribution is symmetric about 0.0.  | 
| 8 | The number of zero observations.  | 
| 9 | The total number of observations that are tied, and that are not within fuzz of zero.  | 
| Test | Null Hypothesis | Alternative Hypothesis | Action | 
| 1 | H0 : Pr(x1 < x2) = 0.5 | H1 : Pr(x1 < x2) ≠ 0.5  | Reject if Stats (9) is less than the significance level of the test. Alternatively, reject the null hypothesis if Stats (6) is too large or too small. | 
| H0 : E(x1) = E(x2)  | (H1 : E(x1) ≠ E(x2))  | ||
| 2 | H0 : Pr(x1 < x2) ≤ 0.5  | H1 : Pr(x1 < x2) > 0.5 | Reject if Stats (6) is too small. | 
| H0 : E(x1) ≥ E(x2) | H1 : E(x1) < E(x2) | ||
| 3 | H0 : Pr(x1 < x2) ≥ 0.5 H0 : E(x1) ≤ E(x2) | H1 : Pr(x1 < x2) < 0.5 H1 : E(x1) > E(x2) | Reject if Stats (6) is too large. | 
 H0 : M ≤  0
H0 : M ≤  0  Reject if stats(0) [or stats(4)] is too large.
Reject if stats(0) [or stats(4)] is too large.  H0 : M ≥ 0
H0 : M ≥ 0  Reject if stats(1) [or stats(5)] is too large.
Reject if stats(1) [or stats(5)] is too large.  H0 : M = 0
H0 : M = 0  Reject if stats(2) [or stats(6)] is too small. Alternatively, if an asymptotic test is desired, reject if 2*stats(3) [or 2*stats(7)] is less than the significance level.
Reject if stats(2) [or stats(6)] is too small. Alternatively, if an asymptotic test is desired, reject if 2*stats(3) [or 2*stats(7)] is less than the significance level. x1 = [7.3, 6.9, 7.2, 7.8, 7.2]
x2 = [7.4, 6.8, 6.9, 6.7, 7.1]
p = WILCOXON(x1, x2, Stats = stats)
; PV-WAVE prints the following:
; % WILCOXON: Warning: AT_LEAST_ONE_TIE.
; At least one tie is detected between the samples.
PRINT, 'p-Value = ', p
; PV-WAVE prints: p-Value = 0.141238
PRO print_results, stats
PRINT, 'Wilcoxon W Statistic .....', stats(0)
PRINT, '2*E(W) - W ...............', stats(1)
PRINT, 'P-Value .....................', stats(2)
PRINT, 'Adjusted Wilcoxon Statistic..', stats(3)
PRINT, 'Adjusted 2*E(W) - W .........', stats(4)
PRINT, 'Adjusted P-Value ............', stats(5)
PRINT, 'W Statistics for Averaged Ranks ..', stats(6)
PRINT, 'Std Error of W (Averaged Ranks) ..', stats(7)
PRINT, 'Std Normal Score of W (Averaged Ranks)..', stats(8)
PRINT, 'Two-Sided P-Value of W (Averaged Ranks) ..', stats(9)
END
x1 = [7.3, 6.9, 7.2, 7.8, 7.2]
x2 = [7.4, 6.8, 6.9, 6.7, 7.1]
p = WILCOXON(x1, x2, Stats = stats)
% WILCOXON: Warning: AT_LEAST_ONE_TIE.
At least one tie is detected between the samples.
print_results, stats
Wilcoxon W Statistic .................... 34.0000
2*E(W) - W .............................. 21.0000
P-Value ................................ 0.110072
Adjusted Wilcoxon Statistic ............. 35.0000
Adjusted 2*E(W) - W ..................... 20.0000
Adjusted P-Value ...................... 0.0745036
W Statistics for Averaged Ranks ......... 34.5000
Std Error of W (Averaged Ranks) ......... 4.75803
Std Normal Score of W (Averaged Ranks)... 1.47120
Two-Sided P-Value of W (Averaged Ranks). 0.141238
PRO output_results, stats
PRINT, 'Statistic Method 1 Method2'
PRINT, 'W+ ...................', stats(0), stats(4)
PRINT, 'W- ...................', stats(1), stats(5)
PRINT, 'Standardized Minimum...', stats(2), stats(6)
PRINT, 'p-value ...............', stats(3), stats(7)
PRINT, 'Number of zeros .......', stats(8)
PRINT, 'Number of ties ........', stats(9)
END
x = [-25.0, -21.0, -19.0, -15.0, -13.0, -11.0, -8.0]
p = WILCOXON(x, Fuzz = 0.0001, Stats = stats)
% WILCOXON: Warning: STAT_NOBS_LT_50
'n-observations' = 7. The number of observations is less than 50, and exact tables should be referenced for probabilities.
OUTPUT_RESULTS, stats
Statistic Method 1 Method 2
W+ .....................0.00000 0.00000
W- .....................28.0000 28.0000
Standardized Minimum ... -2.36643 -2.36643
p-value ................ 0.00898023 0.00898024
Number of zeros .........0.00000
Number of ties ..........0.00000