{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _ksstats / kolmogn

function

scipy.stats._ksstats:kolmogn

source: /scipy/stats/_ksstats.py :505

Signature

def   kolmogn ( n x cdf = True )

Summary

Computes the CDF for the two-sided Kolmogorov-Smirnov distribution.

Extended Summary

The two-sided Kolmogorov-Smirnov distribution has as its CDF Pr(D_n <= x), for a sample of size n drawn from a distribution with CDF F(t), where D_n &= sup_t |F_n(t) - F(t)|, and is the Empirical Cumulative Distribution Function of the sample.

Parameters

n : integer, array_like

the number of samples

x : float, array_like

The K-S statistic, float between 0 and 1

cdf : bool, optional

whether to compute the CDF(default=true) or the SF.

Returns

cdf : ndarray

CDF (or SF it cdf is False) at the specified locations.

: The return value has shape the result of numpy broadcasting n and x.

Aliases

  • scipy.stats._continuous_distns.kolmogn