The documentation here:
states:
"The Kolmogorov-Smirnov test requires that cdf be predetermined. It is not accurate if cdf is estimated from the data."
Why are the results of the test inaccurate when the CDF is estimated from the data?
accuracycdfcumulativedensitydocdocumentationinaacuratekstestStatistics and Machine Learning Toolbox
Best Answer