Kolmogorov-Smirnov Test

A Kolmogorov-Smirnov Test <https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test>`_ is a test of equality of two distributions to determine if they are likely to have come from the same underlying distribution. The DataSketches library provides a modified form of the test that takes into account the error in each underlying sketch in the analysis.

Currently, the test assumes both input sketches are of the same family and data type.

ks_test(sk_1: _datasketches.kll_ints_sketch, sk_2: _datasketches.kll_ints_sketch, p: float) bool
ks_test(sk_1: _datasketches.kll_floats_sketch, sk_2: _datasketches.kll_floats_sketch, p: float) bool
ks_test(sk_1: _datasketches.kll_doubles_sketch, sk_2: _datasketches.kll_doubles_sketch, p: float) bool
ks_test(sk_1: _datasketches.kll_items_sketch, sk_2: _datasketches.kll_items_sketch, p: float) bool
ks_test(sk_1: _datasketches.quantiles_ints_sketch, sk_2: _datasketches.quantiles_ints_sketch, p: float) bool
ks_test(sk_1: _datasketches.quantiles_floats_sketch, sk_2: _datasketches.quantiles_floats_sketch, p: float) bool
ks_test(sk_1: _datasketches.quantiles_doubles_sketch, sk_2: _datasketches.quantiles_doubles_sketch, p: float) bool
ks_test(sk_1: _datasketches.quantiles_items_sketch, sk_2: _datasketches.quantiles_items_sketch, p: float) bool

Overloaded function.

  1. ks_test(sk_1: _datasketches.kll_ints_sketch, sk_2: _datasketches.kll_ints_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for kll_ints_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.kll_floats_sketch, sk_2: _datasketches.kll_floats_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for kll_floats_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.kll_doubles_sketch, sk_2: _datasketches.kll_doubles_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for kll_doubles_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.kll_items_sketch, sk_2: _datasketches.kll_items_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for kll_items_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.quantiles_ints_sketch, sk_2: _datasketches.quantiles_ints_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for quantiles_ints_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.quantiles_floats_sketch, sk_2: _datasketches.quantiles_floats_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for quantiles_floats_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. :Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.quantiles_doubles_sketch, sk_2: _datasketches.quantiles_doubles_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for quantiles_doubles_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.

  1. ks_test(sk_1: _datasketches.quantiles_items_sketch, sk_2: _datasketches.quantiles_items_sketch, p: float) -> bool

Performs the Kolmogorov-Smirnov Test for quantiles_items_sketch pairs. Note: if the given sketches have insufficient data or if the sketch sizes are too small, this will return false. Returns True if we can reject the null hypothesis (that the sketches reflect the same underlying distribution) using the provided p-value, otherwise False.