The Kolmogorov-Smirnov Test is a non-parametric test used to determine if a sample comes from a specified distribution or to compare two samples to assess if they come from the same distribution. It is based on the maximum distance between the empirical distribution function of the sample and the cumulative distribution function of the reference distribution or between the empirical distribution functions of two samples.