ht_onesample_wilcoxon(A, m, alpha, type)

Hypothesis test for the one population mean using the Wilcoxon Signed-Rank test. The sample is stored in array A, m is the mean to test, and the significance level is alpha. Parameter type can be 0 (left tail), 1 (right tail), or 2 (both tails).


See also ht_onesample_pro ht_onesample_z ht_onesample_std 


Example


(See NOTE below)


a=(143,138,169,152,149,150,135,141, 161, 159)

( 143 138 169 152 149 150 135 141 161 159 )


ht_onesample_wilcoxon(a, 157, .05, 0)


Wilcoxon Signed-Rank Test.

Hypothesis test for one population mean.

Ho : m==157.0

Ha : m<157.0

Significance level : 0.05 (5.0%)

Results:

Test statistics W : 9.0

Critical left value found is 11.0

P value is : 0.0322265625

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.