kolmogorovSmirnovError
Compute the Kolmogorov-Smirnov fit statistic for a sample.
Declaration
totalError = kolmogorovSmirnovError(self,epsilon,zmin,zmax)
Parameters
epsilonsample values to compare against the distributionzminoptional lower bound for a truncated comparison intervalzmaxoptional upper bound for a truncated comparison interval
Returns
totalErrorKolmogorov-Smirnov discrepancy statistic
Discussion
This method evaluates the scaled KS discrepancy
\(\left(\sqrt{n} + 0.12 + \frac{0.11}{\sqrt{n}}\right) D_n,\)
where \(D_n\) is the maximum separation between the empirical
CDF and the theoretical CDF. When zmin and zmax are
supplied, the comparison is restricted to that interval and
the theoretical CDF is renormalized there.