Research Workbench

Binary sequence run count

Compare the observed number of contiguous runs with its conditional random-order expectation.

Your entries stay in this page’s memory and are not submitted to us. Downloads are generated locally. Reloading or leaving the page clears your entries. Do not enter patient information.

Use 2–500 labels in original order. Both labels must occur. Define any threshold and tie policy before encoding measurements.

The starting values are hypothetical. Results update as you edit. Use aggregate or synthetic inputs only.

Calculation results

Observed runs
4
Expected under random ordering
4
Observed minus expected
0

How to interpret the output

Conditions on the counts of A and B. Excess or deficit is descriptive and supplies no significance test. Planned alternation, clustering and selection can influence the order. Method checked 9 November 2026.

Method reference

Read the worked guide and interpretation examples →