Runs Test

What Is a Runs Test?

A runs test is a statistical procedure that examines whether a string of data is occurring randomly from a specific distribution. The runs test analyzes the occurrence of similar events that are separated by events that are different.

In investing, a runs test can be important for investors to determine if the data set they are using is randomly generated or if it is impacted by an underlying variable. Traders who focus on technical analysis can use a runs test to help analyze the price action of a security.

Key Takeaways

  • A runs test, also known as the Wald–Wolfowitz runs test, was developed by mathematicians Abraham Wald and Jacob Wolfowitz.
  • A runs test is a statistical analysis that helps determine the randomness of data by revealing any variables that might affect data patterns.
  • Technical traders can use a runs test to analyze statistical trends and help spot profitable trading opportunities.
  • For example, an investor interested in analyzing the price movement of a particular stock might conduct a runs test to gain insight into possible future price action of that stock.

Understanding a Runs Test

A run is a series of increasing or decreasing values, often represented on a chart by plus (+) or minus (-) symbols. In statistics, a runs test helps determine the randomness of data by uncovering any variables that might impact data patterns.

For example, a list of truly random single-digit numbers should only have a few instances where a sequence of numbers is ascending numerically. However, in many cases, it is difficult to assert the randomness of data in which there are thousands of sequences in a string of data. Thus, the runs test was created as an objective method of determining randomness.

Types of Runs Tests

The runs test is a shortened version of the full name: the Wald–Wolfowitz runs test, so named after mathematicians Abraham Wald and Jacob Wolfowitz. The Wald-Wolfowitz test is a nonparametric statistical test, which means the data being analyzed does not have to meet certain assumptions or parameters. The Wald-Wolfowitz test can be used to examine the hypothesis that the variables in the data string are mutually independent.

Some statisticians believe another type of runs test—the Kolmogorov–Smirnov test—is a better tool than the Wald-Wolfowitz test for detecting differences between distributions. The Kolmogorov–Smirnov test is a type of goodness-of-fit test that demonstrates if the sample data being tested represents normal distribution patterns or if the data is somehow skewed. The test establishes the discrepancy between the values in the sample data and the normal distribution model.

Benefits of a Runs Test

The runs test model is important in determining whether an outcome of a trial is truly random, especially in cases where random versus sequential data has implications for subsequent theories and analysis. A runs test can be a valuable tool for investors who employ technical analysis to make their trading decisions. These traders analyze statistical trends, such as price movement and volume, to spot potentially profitable trading opportunities. It's important for these traders to understand the underlying variables that could be impacting price movement and a runs test can help with this.

Two powerful ways traders can use a runs test include:

  1. Testing the randomness of distribution, by taking the data in the given order and marking with a plus (+) the data greater than the median, and with a minus (-) the data less than the median (numbers equalling the median are omitted.)
  2. Testing whether a function fits well to a data set, by marking the data exceeding the function value with + and the other data with −. For this use, the runs test, which takes into account the signs but not the distances, is complementary to the chi-square test, which takes into account the distances but not the signs.
Take the Next Step to Invest
The offers that appear in this table are from partnerships from which Investopedia receives compensation. This compensation may impact how and where listings appear. Investopedia does not include all offers available in the marketplace.