Kolmogorov-Smirnov Test Visualizer

The KS test measures the maximum vertical gap D between the empirical CDF of your sample and a theoretical CDF. Under the null hypothesis, D·√n converges to the Kolmogorov distribution — giving a p-value without any parametric assumptions about the distribution shape.

Sample size n30
True dist mean μ0.0
True dist σ1.0
Sample from
Click "New Sample" to begin
— Empirical CDF — Theoretical N(0,1) CDF | KS statistic D (max gap)