Kolmogorov-Smirnov Two-Sample Test
Determine if two independent samples are derived from the same distribution using this online calculator.
Input Data
Enter your sample data sets below. Values should be comma-separated.
Enter comma-separated numeric values.
Enter comma-separated numeric values.
Test Results
D-Statistic:
P-Value:
CDF Visualization
About the Kolmogorov-Smirnov Test
The Kolmogorov-Smirnov (KS) test is a non-parametric test used to determine if two independent samples are drawn from the same continuous distribution. It quantifies the maximum distance (D-statistic) between the empirical cumulative distribution functions (CDFs) of the two samples. A small P-value (typically ≤ 0.05) suggests that the samples are likely from different distributions, rejecting the null hypothesis that they are from the same distribution. Conversely, a large P-value indicates that we do not have enough evidence to reject the null hypothesis. The CDF visualization helps to graphically compare the distributions.