1001Ferramentas
🎲 Calculators

Runs Test (Wald-Wolfowitz)

Computes the Wald-Wolfowitz runs test, which checks whether a sequence of two values is random or has a pattern. A run is a stretch of consecutive equal values; too few runs indicate clustering (a trend), and too many indicate systematic alternation. By comparing the observed number of runs with the number expected under randomness, the z statistic reveals whether the order of the data is compatible with pure chance. It's useful for checking residuals, time series and number generators. Enter the sequence with two distinct symbols.

Resultado

Runs Test (Wald-Wolfowitz)

Computes the Wald-Wolfowitz runs test, which checks whether a sequence of two values is random or has a pattern. A run is a stretch of consecutive equal values; too few runs indicate clustering (a trend), and too many indicate systematic alternation. By comparing the observed number of runs with the number expected under randomness, the z statistic reveals whether the order of the data is compatible with pure chance. It's useful for checking residuals, time series and number generators. Enter the sequence with two distinct symbols.

Is the sequence random or does it hide a pattern?

Look at a sequence of ups and downs, hits and misses, heads and tails. Does it look random? The human eye is terrible at this: it tends to see patterns where there are none and to call random what is actually regular. The Wald-Wolfowitz runs test delivers an objective verdict by counting something simple — how many blocks of consecutive equal values the sequence has.

Each block of identical values in a row is a run. In a random sequence there is an expected number of runs that depends on how many elements there are of each type. Too few runs suggest clustering, like a tide that rises and stays up for a long time; too many suggest forced alternation. The z statistic measures how far the observed number of runs strays from that expectation.

Enter the sequence using two distinct symbols, separated by commas or spaces — for example, ones and zeros, or the letters A and B. The tool counts the runs, identifies how many elements there are of each type and returns the z statistic. It's a classic test for checking the randomness of regression residuals, time series and number-generator outputs.

Related Tools

📊

Kolmogorov-Smirnov Test (Two-Sample)

Computes the two-sample Kolmogorov-Smirnov test, which checks whether two samples come from the same distribution — without assuming what that distribution is. It compares the empirical cumulative distribution functions of the two samples and takes the largest vertical distance between them, the D statistic. Unlike the t-test, which only compares means, the KS test is sensitive to any difference in shape, spread or location. Enter the two samples of values.

🔢

Kruskal-Wallis H Test

Computes the Kruskal-Wallis H test, the non-parametric version of ANOVA for comparing three or more independent groups. Just as Mann-Whitney does for two groups, it works with the ranks of the data instead of the raw values, dispensing with the normality assumption. The H statistic approximately follows a chi-square distribution. It's the choice when the data are ordinal or clearly non-normal. Enter the groups: values by comma, groups by semicolon.

🔗

Wilcoxon Signed-Rank Test

Computes the Wilcoxon signed-rank test, the non-parametric alternative to the paired t-test. When you measure the same subjects twice — before and after a treatment — and the data don't follow a normal distribution, this is the test to use. It works with the differences between pairs: it ranks the magnitudes of those differences, assigns ranks and separately sums the ranks of the positive and negative differences. The tool computes W+, W− and the normal approximation z, with a tie correction. Enter the two paired series.

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.