statsmodels.sandbox.stats.runs.runstest_2samp
statsmodels.sandbox.stats.runs.runstest_2samp(x, y=None, groups=None, correction=True) [source]
Wald-Wolfowitz runstest for two samples This tests whether two samples come from the same distribution. Parameters:
x : array_like data, numeric, contains either one group, if y is also given, or both groups, if additionally a group indicator is provided y : array_like (optional) data, numeric groups : array_like group labels or indicator the dat