Wald–Wolfowitz runs test

From WikiMD's Medical Encyclopedia

Wald–Wolfowitz runs test, also known as the runs test, is a non-parametric statistical test that checks a randomness hypothesis for a two-valued data sequence. More specifically, it tests the null hypothesis that the elements of the sequence are mutually independent.

Overview[edit]

The Wald–Wolfowitz runs test is used when dealing with sequences of categorical data stemming from two groups, typically denoted as either a success or a failure. A "run" is defined as a sequence of identical elements (successes or failures) in the data sequence, which is followed and preceded by a different element or no element at all. The test evaluates whether the number of runs in the sequence is too high or too low, which would indicate a deviation from the randomness expected under the null hypothesis.

Application[edit]

This test is particularly useful in scenarios where the data does not meet the assumptions necessary for parametric tests, such as the data not being normally distributed. It has applications in various fields, including psychology, biology, and quality control, where it is used to test the randomness of events or conditions.

Procedure[edit]

To perform the Wald–Wolfowitz runs test, one follows these steps:

  1. Convert the data sequence into a binary sequence (e.g., successes as 1s and failures as 0s).
  2. Count the total number of runs in the sequence. A run is a consecutive sequence of identical elements.
  3. Calculate the expected number of runs under the null hypothesis of randomness, which depends on the total number of successes and failures in the sequence.
  4. Compute the test statistic, which measures the deviation of the observed number of runs from the expected number.
  5. Determine the significance of the result using the distribution of the test statistic under the null hypothesis.

Hypothesis[edit]

The null hypothesis (H0) for the Wald–Wolfowitz runs test states that the elements of the sequence are mutually independent, implying that the sequence is random. The alternative hypothesis (H1) suggests that the elements are not mutually independent, indicating a non-random sequence.

Assumptions[edit]

The main assumption of the Wald–Wolfowitz runs test is that the data consists of a sequence of independent and identically distributed random variables, each belonging to one of two categories (e.g., success or failure).

Limitations[edit]

While the Wald–Wolfowitz runs test is a useful tool for assessing randomness, it has limitations. It is less powerful than some other tests for detecting departures from randomness and may not perform well with small sample sizes. Additionally, it only applies to sequences with two categories and cannot be used for data with more than two categories.

See Also[edit]


Stub icon
   This article is a statistics-related stub. You can help WikiMD by expanding it!




Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Ad. Transform your health with W8MD Weight Loss, Sleep & MedSpa

Tired of being overweight?

Get started with evidence based, physician-supervised

affordable GLP-1 weight loss injections

Now available in New York City and Philadelphia:

✔ Evidence-based medical weight loss ✔ Insurance-friendly visits available ✔ Same-week appointments, evenings & weekends

Learn more:

Start your transformation today with W8MD weight loss centers.

Advertise on WikiMD


WikiMD Medical Encyclopedia

Medical Disclaimer: WikiMD is for informational purposes only and is not a substitute for professional medical advice. Content may be inaccurate or outdated and should not be used for diagnosis or treatment. Always consult your healthcare provider for medical decisions. Verify information with trusted sources such as CDC.gov and NIH.gov. By using this site, you agree that WikiMD is not liable for any outcomes related to its content. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.