|See Also||cnormal , ghist|
kolsmiis 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).
O-Matrix will store twenty realizations of a random variable that is uniformly distributed between zero and one. If you continue by entering
sample = rand(20, 1)
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
kolsmi(sample, function cnormal)
sample. This statistic should be very small relative to one, because
sampledoes not come from a normal random variable.