ks_2samp

hep_spt.ks_2samp(a, b, wa=None, wb=None)[source]

Compute the Kolmogorov-Smirnov statistic on 2 samples. This is a two-sided test for the null hypothesis that 2 independent samples are drawn from the same continuous distribution. Weights for each sample are accepted. If no weights are provided, then the function scipy.stats.ks_2samp() is called instead.

Parameters
Returns

Test statistic and two-tailed p-value.

Return type

float, float