Test randomness from STD deviation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello
If I have a random seq of 50,000 data and all the data ranging between 0 to 255..then is it possible to test the true randomness by measuring std deviation......
X = randi(256,1,50000)-1;
P = histc(X,0:255);
what shall be next,how to measure if the data are uniformly random in nature by measuring std deviation....
0 comentarios
Respuestas (1)
José-Luis
el 8 de Nov. de 2012
Editada: José-Luis
el 8 de Nov. de 2012
No, the standard deviation by itself will tell you next to nothing about the nature of the distribution. Something like the two-sample Kolmogorov-Smirnov test might help you.
doc kstest2
The problem remains of defining what true randomness is. If your numbers are generated by a computer, then what you get are pseudo-random numbers. For such numbers, the "randomness" breaks down once you have very many samples, or when you consider many dimensions. No all random numbers are created equal.
0 comentarios
Ver también
Categorías
Más información sobre Hypothesis Tests en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!