Hello,(adsbygoogle = window.adsbygoogle || []).push({});

Hello,

I have recorded some discrete data with an unspecified distribution.

I have generated some discrete data from a model.

I'm looking to check to see if the generated data has the same distribution as the real data.

If the data was continious, I would use a Q-Q plot and a striaght line would indicate that it is true.

As the data is discrete, I need another test.

Can you use a two-sample Kolmogorov-Smirnov test to test the hypothesis that the two samples come from the same distribution?

Here is a link to the test http://www.mathworks.co.uk/help/stats/kstest2.html

Kind regards

J

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Two-sample Kolmogorov-Smirnov test

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**