scipy.stats.mstats.

kstest#

scipy.stats.mstats.kstest(data1, data2, args=(), alternative='two-sided', method='auto')[source]#

Performs the Kolmogorov-Smirnov test for goodness of fit.

Deprecated since version 2.0.0: scipy.stats.mstats.kstest is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.kstest with MArray(s) instead of NumPy masked array(s).

Parameters:
data1array_like
data2str, callable or array_like
argstuple, sequence, optional

Distribution parameters, used if data1 or data2 are strings.

alternativestr, as documented in stats.kstest
methodstr, as documented in stats.kstest
Returns:
tuple of (K-S statistic, probability)