n
nicefa.
Advanced Proof

Derivation of the Null Distribution for the Runs Test of Randomness

Students often conflate the total number of runs R R with the number of groups per type. The distinction between the 'even' case (balanced runs) and 'odd' case (asymmetric runs) is critical, as the latter requires summing two mutually exclusive starting scenarios.
Institutional Reference: Applied Statistics
View Full Proof →