Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

One-sample Kolmogorov-Smirnov test

returns
a test decision for the null hypothesis that the data in vector `h`

= kstest(`x`

)`x`

comes
from a standard normal distribution, against the alternative that
it does not come from such a distribution, using the one-sample
Kolmogorov-Smirnov test. The result `h`

is `1`

if
the test rejects the null hypothesis at the 5% significance level,
or `0`

otherwise.

returns
a test decision for the one-sample Kolmogorov-Smirnov test with additional
options specified by one or more name-value pair arguments. For example,
you can test for a distribution other than standard normal, change
the significance level, or conduct a one-sided test.`h`

= kstest(`x`

,`Name,Value`

)

[1] Massey, F. J. "The Kolmogorov-Smirnov
Test for Goodness of Fit." *Journal of the American
Statistical Association*. Vol. 46, No. 253, 1951, pp. 68–78.

[2] Miller, L. H. "Table of Percentage
Points of Kolmogorov Statistics." *Journal of the
American Statistical Association*. Vol. 51, No. 273, 1956,
pp. 111–121.

[3] Marsaglia, G., W. Tsang, and J. Wang.
"Evaluating Kolmogorov's Distribution." *Journal
of Statistical Software*. Vol. 8, Issue 18, 2003.

`adtest`

| `kstest2`

| `lillietest`

Was this topic helpful?