Kolmogorov-Smirnov Test Calculator
Kolmogorov-Smirnov Test Calculator performs a one-sample or two-sample Kolmogorov-Smirnov test to compare a dataset against a standard normal distribution or another dataset. Enter data as comma-separated values (e.g., “1.2,0.5,-0.3,1.8”). For two-sample tests, provide a second dataset. Results include the test statistic \\( D \\) and p-value, visualized with empirical and reference CDFs using p5.js, with steps shown in MathJax.
Kolmogorov-Smirnov Test Calculator
This calculator performs the Kolmogorov-Smirnov (KS) test to compare a sample dataset against a standard normal distribution (one-sample) or another dataset (two-sample). Input data as comma-separated values (e.g., “1.2,0.5,-0.3,1.8”). For two-sample tests, provide a second dataset. The test computes the statistic \\( D \\), the maximum absolute difference between empirical CDFs, and the p-value. Results are visualized with CDFs using p5.js, and steps are shown with MathJax.
Example 1: One-sample Test
Data: “1.2,0.5,-0.3,1.8”, Test: One-sample.
Result: \\( D \approx 0.25 \\), p-value \\( \approx 0.85 \\).
Example 2: Two-sample Test
Data 1: “1.2,0.5,-0.3,1.8”, Data 2: “0.1,0.4,0.9,-0.2”, Test: Two-sample.
Result: \\( D \approx 0.5 \\), p-value \\( \approx 0.3 \\).
Example 3: Non-normal Data
Data: “3,4,5,6”, Test: One-sample.
Result: \\( D \approx 0.9 \\), p-value \\( \approx 0.01 \\).