UnivariateKolmogorovSmirnovTest Method (IReadOnlyListDouble, IReadOnlyListDouble) |
Namespace: Meta.Numerics.Statistics
public static TestResult KolmogorovSmirnovTest( IReadOnlyList<double> a, IReadOnlyList<double> b )
Exception | Condition |
---|---|
ArgumentNullException | a or b is . |
InsufficientDataException | One or both of the samples is empty. |
The two-sample Kolmogorov-Smirnov test is a variation of the single-sample test (KolmogorovSmirnovTest(IReadOnlyListDouble, ContinuousDistribution)) that tests whether two independent samples are drawn from the same underlying distribution. The null hypothesis of the test is that both samples are drawn from the same population.