The Wald-Wolfowitz runs test, commonly referred to as the runs test, is a nonparametric test used to assess the randomness of ordered data. The test evaluates the number of runs, which are consecutive sequences of similar elements within the data. If the number of runs is significantly higher or lower than expected, the data is considered non-random, indicating a detectable pattern or structure.

For binary data, runs are identified using symbols such as + and −, or equivalently, 1s and 0s. In the case of categorical data with two categories, these categories are converted into binary choices. However, in cases like DNA sequences, where categories such as A, T, G, and C are inherent, no conversion is necessary, and the test can be applied directly to the sequences. For numerical data, values are often converted by assigning a + (or 1) to those above a certain threshold (like the mean or median) and a − (or 0) to those below it, enabling the identification of runs.

The test's null hypothesis (H0) states that the data follows a random sequence, while the alternative hypothesis (H1) suggests that the data has an underlying pattern or order. The test statistic, denoted as G, represents the number of observed runs in the data. This value is then compared to critical values in a two-tailed test. If G falls outside the critical range (i.e., it is too high or too low), we reject the null hypothesis, concluding that the data is non-random and exhibits a particular sequence. Conversely, if G falls within the critical range, we fail to reject the null hypothesis, suggesting that the data is likely random without any specific order.

The critical values are obtained from a standard table of runs when the number of elements in the data having a particular characteristic (for instance, values smaller than the median), denoted by n1, and the number of elements in the data having a different characteristic (for instance values greater than the median) denoted by n2 is less than or equal to 20 and at the significance level α= 0.05 (Note: do not confuse these numbers with the sample size n).

When these conditions are not fulfilled, i.e., when n1 and n2 and greater than 20 or when the significance level αis anything else but 0.05, the test statistic z is used, and it is calculated using the following equation:

Equation 1

Where µG and σG are calculated by the following equations:

Equation 2

Equation 3

The critical z values, i.e., negative (left-tailed) and positive (right-tailed) critical z values, are obtained from the standard z distribution table. When the test statistic z (calculated from the above equations) is beyond the range of -z and +z, the randomness is rejected, concluding that there is evidence of a specific sequence in the data. If the test statistic is within the range, the randomness in the data is not rejected.

The runs test is unaffected by sample size or the underlying distribution of the population and sample, making it versatile for various types of sequential data to detect randomness. However, while it can identify whether a sequence is random, it does not measure the degree or magnitude of randomness within the data.

Bölümden 13:

article

Now Playing

13.16 : Wald-Wolfowitz Runs Test II

Nonparametric Statistics

51 Görüntüleme Sayısı

article

13.1 : Parametrik Olmayan İstatistiğe Giriş

Nonparametric Statistics

476 Görüntüleme Sayısı

article

13.2 : Sırada

Nonparametric Statistics

167 Görüntüleme Sayısı

article

13.3 : İşaret Testine Giriş

Nonparametric Statistics

478 Görüntüleme Sayısı

article

13.4 : Eşleşen Çiftler için İşaret Testi

Nonparametric Statistics

30 Görüntüleme Sayısı

article

13.5 : Nominal Veriler için İşaret Testi

Nonparametric Statistics

21 Görüntüleme Sayısı

article

13.6 : Tek Popülasyonun Medyanı için İşaret Testi

Nonparametric Statistics

22 Görüntüleme Sayısı

article

13.7 : Eşleşen Çiftler için Wilcoxon İşaretli Sıralar Testi

Nonparametric Statistics

23 Görüntüleme Sayısı

article

13.8 : Tek Popülasyonun Medyanı için Wilcoxon İşaretli Sıralar Testi

Nonparametric Statistics

33 Görüntüleme Sayısı

article

13.9 : Wilcoxon Sıra-Toplam Testi

Nonparametric Statistics

47 Görüntüleme Sayısı

article

13.10 : Önyükleme

Nonparametric Statistics

437 Görüntüleme Sayısı

article

13.11 : Anderson-Darling Testi

Nonparametric Statistics

451 Görüntüleme Sayısı

article

13.12 : Spearman'ın Sıra Korelasyon Testi

Nonparametric Statistics

484 Görüntüleme Sayısı

article

13.13 : Kendall'ın Tau Testi

Nonparametric Statistics

422 Görüntüleme Sayısı

article

13.14 : Kruskal-Wallis Testi

Nonparametric Statistics

406 Görüntüleme Sayısı

See More

JoVE Logo

Gizlilik

Kullanım Şartları

İlkeler

Araştırma

Eğitim

JoVE Hakkında

Telif Hakkı © 2020 MyJove Corporation. Tüm hakları saklıdır