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
a (numpy.ndarray) – first sample.
b (numpy.ndarray) – second sample.
wa (numpy.ndarray or None.) – set of weights for “a”. Same length as “a”.
wb (numpy.ndarray or None.) – set of weights for “b”. Same length as “b”.
- Returns
Test statistic and two-tailed p-value.
- Return type