Run Chart (runs tests)
Median plus four runs tests (clustering, mixtures, trends, oscillation) with p-values from a normal approximation.
Description
Run-chart engine for pre-assessment of a data series before setting up a control chart. Computes the median, the count of runs about the median (points equal to the median are excluded) and the count of runs up/down. From the Wald-Wolfowitz expectation and standard deviation it produces four z-statistics and p-values: clustering (too few median runs → level shift), mixtures (too many → mixed sources), trends (too few up/down runs → drift) and oscillation (too many → zigzag/overshoot).
Formulas
Assumptions
- Data order matches collection order — sorted data invalidates the tests
- Values equal to the median are excluded from the tests (Minitab convention)
- Normal approximation needs ~10 points or more for reliable p-values
Limitations
- Four simultaneous tests inflate the false-alarm rate; single p < 0.05 is weak evidence
- No control limits — run chart does not replace a control chart for ongoing monitoring
References
- Bradley, J. V. (1968), Distribution-Free Statistical Tests, Prentice-Hall
- Wald, A. & Wolfowitz, J. (1940), On a Test Whether Two Samples Are From the Same Population, Annals of Math. Stat.
- Minitab — Run chart documentation