The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... 
Home MathPack Statis Functions RunsTest  
See also: ExactRunsTest, RunsTestSerial  
RunsTest 

The WaldWolfowitz runs test is a nonparametric statistical test that checks for randomness of the binary data sequence Data. The function returns the pvalue in the variable parameter p, and TRUE as a function result if the pvalue is less than 0.05.
Please note that the RunsTest algorithm uses the exact calculation of the probability p for group sizes less than 26 (this means that neither the count of TRUE bits nor the count of FALSE bits in the Data field exceeds 25), otherwise it approximates the p value in order to avoid numeric overflow.
