use runs test on binary discretized data above/below cutoff
x : array_like
data, numeric
cutoff : {‘mean’, ‘median’} or number
This specifies the cutoff to split the data into large and small values. This
z_stat : float
test statistic, asymptotically normally distributed
p-value : float
p-value, reject the null hypothesis if it is below an type 1 error level, alpha .
statsmodels.sandbox.stats.runs.median_test_ksample
statsmodels.sandbox.stats.runs.runstest_2samp
Enter search terms or a module, class or function name.