I would like to ask for help. I do Kolmogorov Smirnov test. I entered data. I need to set the level of probability. It should be using pvalue and the result should be true / false. But unfortunately I do not.
data = RandomVariate [NormalDistribution [], 10];
KolmogorovSmirnovTest [data]
You set the significance level (rather than a P-value). The default (as stated in the documentation) is 0.05 but if you want it to be something else such as 0.10, then you can use the following:
I think you need to read about the Kolmogorov-Smirnov test or the associated Mathematica documentation. Why would you expect a “Yes” (meaning “no evidence of a difference”) when you are comparing a sample from a N(0,1) vs. a N(521,3) distribution?
OK. I understand now. (I’m a little slow.) The output is just some text so you could use a brute force approach to make the translation into another variable: