scikits.statsmodels.sandbox.descstats.sign_test

scikits.statsmodels.sandbox.descstats.sign_test(samp, mu0=0)

Signs test with mu0=0 by default (though the median is often used in practice)

Parameters:

samp :

mu0 :

Returns:

M, p-value :

where :

M=(N(+) - N(-))/2, N(+) is the number of values above Mu0, :

N(-) is the number of values below. Values equal to Mu0 :

are discarded. :

The p-value for M is calculated using the binomial distrubution :

and can be intrepreted the same as for a t-test. :

See also

scipy.stats.wilcoxon

Previous topic

scikits.statsmodels.sandbox.graphics.qqplot

Next topic

scikits.statsmodels.sandbox.descstats.descstats

This Page