Definition

The Kolmogorov–Smirnov test (KS test) is a non-parametric test for the equality of continuous, distribution functions.

The Kolmogorov–Smirnov test statistic for a given CDF is defined as where is the Empirical Distribution Function based on the i.i.d. random variables .