This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / stats / _mstats_basic / kstest

function

scipy.stats._mstats_basic:kstest

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_mstats_basic.py:2014

Signature

def kstest(data1, data2, args = (), alternative = two-sided, method = auto)

Summary

Performs the Kolmogorov-Smirnov test for goodness of fit.

Parameters

data1 : array_like
data2 : str, callable or array_like
args : tuple, sequence, optional

Distribution parameters, used if data1 or data2 are strings.

alternative : str, as documented in stats.kstest
method : str, as documented in stats.kstest

Returns

: tuple of (K-S statistic, probability)

Aliases

  • scipy.stats._mstats_basic.kstest