This is the confidence (cumulative distribution) of the Kolmogorov-Smirnov statistic,

x=D*sqrt(N*e)

Where Ne is the effective number of counts. 98% confidence is reached at around x=1.5.

y=2*sum([[-1]^(k-1)*e^(-(2*k^2*x^2))],k=1,6),x>0

The sum should run to infinity, but more terms merely aid convergence for small x, which is not very interesting:

y=2*sum([[-1]^(k-1)*e^(-(2*k^2*x^2))],k=1,20),x>0


Graph of the formula

This file was created by Graphing Calculator 3.5.
Visit Pacific Tech to download the helper application to view and edit these equations live.