A Kolmogorov-Smirnov Test

10
1
Hi all,

I have some doubts regarding the Kolmogorov test: I made a simple c++ program generating two samples of random numbers following a Landau distribution (I used the "hit and miss" method). I made the Kolmogorov test, in order to check the randomness of the generator, but I'm having some problems with the interpretation of the results (I attach the histogram here).

It seems I'm having a probability which is (more or less) uniformly distributed from 0 to 1. Is that correct? Or there's something wrong with my code? I expected to get a probability really close to 1, since the two sets come from the same distribution.
 

Attachments

Vanadium 50

Staff Emeritus
Science Advisor
Education Advisor
23,107
5,401
This sounds a lot like "Tell me if I have a bug in my code that I won't share with you based on a plot with ambiguous labels and not enough information to reproduce."

I think you might want to add some more details. A lot of them.
 

Want to reply to this thread?

"Kolmogorov-Smirnov Test" You must log in or register to reply here.

Related Threads for: Kolmogorov-Smirnov Test

Replies
1
Views
592
  • Posted
Replies
8
Views
3K
  • Posted
Replies
5
Views
902
  • Posted
2
Replies
37
Views
8K
  • Posted
Replies
3
Views
2K
  • Posted
Replies
15
Views
2K
  • Posted
Replies
22
Views
2K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top