Find definitions and interpretation guidance for every statistic that is provided with a runs test.

The sample size (N) is the total number of observations in the sample. The sample size affects the expected number of runs and the p-value.

K is the value of the comparison criterion. By default, K is the mean of the sample data. But you can also specify a different value, such as the median. Minitab uses K to calculate the observed number of runs.

The number of observations above K is the number of observations that are greater than the value of the comparison criterion, which is the mean by default. The number of observations below K is the number of observations that are less than or equal to the comparison criterion. Minitab uses these values to calculate the p-value.

The null and alternative hypotheses are two mutually exclusive statements about the order of the data. A hypothesis test uses sample data to determine whether to reject the null hypothesis.

- Null hypothesis
- The order of the data is random.
- Alternative hypothesis
- The order of the data is not random.

The observed number of runs is the number of groups of observations that are above or below the comparison criterion, K. The line represents K. This example contains five runs.

The expected number of runs is the mean of the sampling distribution of runs in a random series. If the number of observed runs is substantially greater than or less than the number of expected runs, it is likely that the data are not in random order. To determine whether the order of your data is random, compare the p-value to the significance level.

The p-value is the probability that measures the evidence against the null hypothesis. Lower probabilities provide stronger evidence against the null hypothesis.

Use the p-value to determine whether the order of your data is random.

To determine whether the order of your data is random, compare the p-value to the significance level. Usually, a significance level (denoted as α or alpha) of 0.05 works well. A significance level of 0.05 indicates a 5% risk of concluding that the order of your data is not random when it actually is random.

- P-value ≤ α: The order of the data is not random (Reject H
_{0}) - If the p-value is less than or equal to the significance level, the decision is to reject the null hypothesis and conclude that the order of the data is not random.
- P-value > α: Cannot conclude the order of the data is not random (Fail to reject H
_{0}) - If the p-value is greater than the significance level, the decision is to fail to reject the null hypothesis. You do not have enough evidence to conclude that the order of the data is not random.