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....


Unit: SDL_statis
Class: none
Declaration: function ExactRunsTest (gs1, gs2, observed: integer): double;

The function ExactRunsTest returns the probability of the Wald-Wolfowitz runs test for group sizes gs1 and gs2. The parameter observed specifies the number of observed runs.

Please note that ExactRunsTest calculates the exact probability (and not an approximation) even for big group sizes. This may lead to numeric overflow for group sizes beyond 30. Thus it is recommended to use the RunsTest function for larger group sizes.

Last Update: 2023-Feb-06