ht_twosample_pairedwilcoxon(A, B, alpha, type)

Hypothesis test for paired samples using the Wilcoxon Signed-Rank test. Samples are stored in arrays A and B, and alpha is the significance level. Parameter type can be 0 (left tail), 1 (right tail), or 2 (both tails).
Assumes samples are paired and have symmetric differences.


See also ht_twosample_tnonpooled ht_twosample_tpaired ht_twosample_tpooled 


Example


(See NOTE below)


a=(25.7, 20., 28.4, 13.7, 18.8, 12.5, 28.4, 8.1, 23.1, 10.4 )

( 25.7 20.0 28.4 13.7 18.8 12.5 28.4 8.1 23.1 10.4 )


b=(24.9, 18.8, 27.7, 13., 17.8, 11.3, 27.8, 8.2, 23.1, 9.9 )

( 24.9 18.8 27.7 13.0 17.8 11.3 27.8 8.2 23.1 9.9 )


ht_twosample_pairedwilcoxon(a, b, .05, 1)


Paired Wilcoxon Signed-Rank Test.

Hypothesis test for two population means. Paired samples.

Ho : m1==m2

Ha : m1>m2

Significance level : 0.05 (5.0%)

Results:

Test statistics W : 44.0

Critical right value found is 36.0

Reject the null hypothesis.





NOTE: The data used in this example was taken from the textbook Introductory Statistics 6th Ed. by Neil A. Weiss with kind permission of Addison Wesly Longman, Inc. (AWL). AWL does not endorse nor it supports the Calcugator.