A Understanding Kolmogorov-Smirnov Test Results for Random Number Generators

AI Thread Summary
The discussion centers on interpreting the results of the Kolmogorov-Smirnov test applied to random number samples generated from a Landau distribution. The user is confused by the test results, which indicate a uniform probability distribution from 0 to 1, rather than a probability close to 1, suggesting the samples are from the same distribution. Concerns are raised about the lack of detail in the user's code and the ambiguity of the attached histogram, which hinders effective troubleshooting. Participants emphasize the need for more information to accurately diagnose potential issues with the random number generator. Clearer data and code sharing are recommended for better analysis and understanding of the test outcomes.
Federica
Messages
12
Reaction score
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

  • kolmogorov.png
    kolmogorov.png
    4.9 KB · Views: 251
Physics news on Phys.org
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.
 
I think it's easist first to watch a short vidio clip I find these videos very relaxing to watch .. I got to thinking is this being done in the most efficient way? The sand has to be suspended in the water to move it to the outlet ... The faster the water , the more turbulance and the sand stays suspended, so it seems to me the rule of thumb is the hose be aimed towards the outlet at all times .. Many times the workers hit the sand directly which will greatly reduce the water...

Similar threads

Back
Top