Sign In

The Wald-Wolfowitz test, also known as the runs test, is a nonparametric statistical test used to assess the randomness of a sequence of two different types of elements (e.g., positive/negative values, successes/failures). It examines whether the order of the elements in a sequence is random or if there is a pattern or trend present. This nonparametric test applies to any ordered data despite the population and sample data distribution, even if a higher sample size is available.

The test works by analyzing "runs" in the data—continuous sequences of similar elements. A "run" is defined as a series of consecutive identical symbols (e.g., a run of positive values or a run of negative values). The Wald-Wolfowitz test compares the observed number of runs to the number of runs expected under randomness. Consider the following example for the sequence or run:

Dataset-1:

0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1

In this dataset, the [0, 0]; [1, 1, 1]; [0, 0, 0]; [1]; [0]; [1]; [0, 0, 0]; [1, 1]; [0, 0]; [1, 1] are the recognizable sequences or runs, for a total of 10 runs. As 0 and 1 are different in nature (i.e., they provide different information, e.g., absence and presence), 0 and 1 together cannot form a run. This means that [0, 1]; [0, 1] cannot be considered as a run.

The basic principle of the WWR test is "Reject the randomness of the data when the number of runs is extremely low or extremely high". The test provides a quantitative measure of randomness at a certain level of significance, for instance, 0.05. The WWR test alone, however, does not offer any clear indication of how random a given dataset is. The magnitude of randomness is still qualitative and needs to be interpreted based on the nature of the data (i.e., binary, categorical, or numerical).

Tags

Wald Wolfowitz TestRuns TestNonparametric Statistical TestRandomness AssessmentOrdered DataRuns AnalysisDataset ExampleQuantitative MeasureSignificance LevelData Interpretation

From Chapter 13:

article

Now Playing

13.15 : Wald-Wolfowitz Runs Test I

Nonparametric Statistics

550 Views

article

13.1 : Introduction to Nonparametric Statistics

Nonparametric Statistics

549 Views

article

13.2 : Ranks

Nonparametric Statistics

199 Views

article

13.3 : Introduction to the Sign Test

Nonparametric Statistics

578 Views

article

13.4 : Sign Test for Matched Pairs

Nonparametric Statistics

57 Views

article

13.5 : Sign Test for Nominal Data

Nonparametric Statistics

47 Views

article

13.6 : Sign Test for Median of Single Population

Nonparametric Statistics

53 Views

article

13.7 : Wilcoxon Signed-Ranks Test for Matched Pairs

Nonparametric Statistics

55 Views

article

13.8 : Wilcoxon Signed-Ranks Test for Median of Single Population

Nonparametric Statistics

57 Views

article

13.9 : Wilcoxon Rank-Sum Test

Nonparametric Statistics

99 Views

article

13.10 : Bootstrapping

Nonparametric Statistics

498 Views

article

13.11 : The Anderson-Darling Test

Nonparametric Statistics

559 Views

article

13.12 : Spearman's Rank Correlation Test

Nonparametric Statistics

544 Views

article

13.13 : Kendall's Tau Test

Nonparametric Statistics

505 Views

article

13.14 : Kruskal-Wallis Test

Nonparametric Statistics

460 Views

See More

JoVE Logo

Privacy

Terms of Use

Policies

Research

Education

ABOUT JoVE

Copyright © 2025 MyJoVE Corporation. All rights reserved