Runs Test for Randomness Calculator

Test whether a binary sequence is random using the Wald-Wolfowitz runs test.

Expected Runs

13.0000

标准差2.3452
Z Statistic-2.1320

Expected Runs vs Count Type A

公式

## Wald-Wolfowitz Runs Test **mu = 1 + 2*n1*n2/(n1+n2)** Tests randomness of binary sequences.

计算示例

15 As, 10 Bs, 8 runs.

  1. 01Expected = 13
  2. 02Z = -2.15, not random

常见问题

What is a run?

A maximal consecutive sequence of same type.

Too few runs?

Suggests clustering or trends.

Significance?

Compare |Z| to 1.96 at alpha=0.05.

学习

Understanding the Normal Distribution

相关计算器