Run Chart (runs tests)

Median plus four runs tests (clustering, mixtures, trends, oscillation) with p-values from a normal approximation.

Statusvalidated
Version1.0.0
Minitab equivalentStat > Quality Tools > Run Chart

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

Runs about median
m₁/m₂ = points above/below median; N = m₁+m₂
Runs up or down
n = number of points (after removing ties)
p-Werte
Φ is the standard normal CDF (Abramowitz/Stegun 7.1.26)

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