Skip to content
Prev 262417 / 398502 Next

Test if data uniformly distributed (newbie)

Yes, punif is the function to use, however the KS test (and the others) are based on an assumption of independence, and if you know that your data points sum to 1, then they are not independent (and not uniform if there are more than 2).  Also note that these tests only rule out distributions (with a given type I error rate), but cannot confirm that the data comes from a given distribution (just that either they do, or there is not enough power to distinguish between the actual and the test distributions).

What is your ultimate question/goal?  Why do you care if the data is uniform or not?