Test randomness from STD deviation
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
José-Luis
2012년 11월 8일
편집: José-Luis
2012년 11월 8일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Hypothesis Tests에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!