Related Experiment Video
Updated: Dec 19, 2025

Design and Optimization Strategies of a High-Performance Vented Box
Published on: June 9, 2023
Smooth operator: Modifying the Anhøj rules to improve runs analysis in statistical process control
Jacob Anhøj1, Tore Wentzel-Larsen2
1Centre of Diagnostic Investigation, Rigshospitalet, University of Copenhagen, Copenhagen, Denmark.
Introduction:
The run chart is one form of statistical process control chart that is particularly useful for detecting persistent shifts in data over time. The Anhøj rules test for shifts by looking for unusually long runs (L) of data points on the same side of the process centre (mean or median) and unusually few crossings (C) of the centre depending on the number of available data points (N). Critical values for C and L have mainly been studied in isolation. But what is really of interest is the joint distribution of C and L, which has so far only been studied using simulated data series. We recently released an R package, crossrun that calculates exact values for the joint probabilities of C and L that allowed us to study the diagnostic properties of the Anhøj rules in detail and to suggest minor adjustments to improve their diagnostic value.
Methods:
Based on the crossrun R package we calculated exact values for the joint distribution of C and L for N = 10-100. Furthermore, we developed two functions, bestbox() and cutbox() that automatically seek to adjust the critical values for C and L to balance between sensitivity and specificity requirements.
Results:
Based on exact values for the joint distribution of C and L for N = 10-100 we present measures of the diagnostic value of the Anhøj rules. The best box and cut box procedures improved the diagnostic value of the Anhøj rules by keeping the specificity and sensitivity close to pre-specified target values.
Conclusions:
Based on exact values for the joint distribution of longest run and number of crossings in random data series this study demonstrates that it is possible to obtain better diagnostic properties of run charts by making minor adjustment to the critical values for C and L.
More Related Videos
Related Concept Videos
Interpreting Run Charts
Run Charts
Introduction to Statistical Process Control
The R Chart
R charts are pivotal for pinpointing shifts in process variability. Stability is indicated when all data points remain within the defined upper and lower...
Interpreting R Charts
An R chart plots the range of subsets of measurements collected from a process. Each point on the chart represents the range—defined as the difference between the maximum and minimum...
The X̄ Chart
The x̄ chart, often known as the individual control chart, is a crucial tool in statistical process control. It is designed to monitor process behavior and performance over time and is widely used in various industries to ensure that processes are operating at their optimum capacity and within specified limits.
A x̄ chart is constructed by plotting individual measurements of a quality...

