|
Contents | Previous | Next | Subchapters |
| Syntax |
kolsmi(sample, function cum) |
| See Also | cnormal , ghist |
kolsmi
is a scalar with the same type as sample.
It is the probability that the maximum
difference between the sample cumulative distribution
and the candidate cumulative distribution is greater than
or equal to the value corresponding to sample (under the
hypothesis that the candidate distribution is correct).
sample = rand(20, 1)
O-Matrix will store twenty realizations of a
random variable that is uniformly distributed between zero and one.
If you continue by entering
kolsmi(sample, function cnormal)
O-Matrix will print the probability
that a normal random variate would yield a sample cumulative distribution
that has a greater deviation than the one corresponding to sample.
This statistic should be very small relative to one,
because sample does not come from a normal random variable.