Take the 2-minute tour ×
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

I would like to optimize a physical model using kolmogorov-smirnov test between the experimental data and generated data. The output of ks.text(x,y) give me the distance D and the p-value. Which is the relation between them and which is suitable for my task? namely i should take the model that give me a smaller distance or a smaller p-value?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

A low p-value means that it is likeley that the data is different from the model. So you want a high p-value to have a good fitting.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.