# statsmodels.stats.descriptivestats.sign_test¶

statsmodels.stats.descriptivestats.sign_test(samp, mu0=0)[source]

Signs test.

Parameters
samparray-like

1d array. The sample for which you want to perform the signs test.

mu0float

See Notes for the definition of the sign test. mu0 is 0 by default, but it is common to set it to the median.

Returns
M, p-value

scipy.stats.wilcoxon