Runs-Based Distribution-Free Charts
- The topic presents a nonparametric method that uses the sequential structure of runs from thresholded data to detect shifts in process location and distribution.
- It leverages finite Markov chain imbedding and permutation arguments to derive exact control limits and performance measures like in-control ARL without relying on distributional assumptions.
- Applications include detecting local anomalies and gradual shifts using binary statistics, making the approach robust, tuning-free, and adaptable to various SPC scenarios.
Runs-based distribution-free charts are a family of nonparametric statistical process control (SPC) tools designed to monitor shifts in the distributional location or structure of a process. These charts leverage the combinatorial structure of runs and patterns in binary sequences—typically created by thresholding continuous or discrete data—to offer exact finite-sample guarantees for performance metrics such as in-control average run length (ARL), without requiring knowledge of the underlying data distribution. Their theoretical foundations center on random permutation arguments and the finite Markov chain imbedding (FMCI) technique, enabling robust, tuning-free monitoring of both location changes and complex distributional departures (Wu, 17 Nov 2025, Wu, 2018, Kumar et al., 2017).
1. Fundamental Concepts and Definitions
Runs-based distribution-free charts operate by converting raw process data into a sequence of binary indicators via a thresholding operation: where is chosen such that for a user-specified baseline (Wu, 17 Nov 2025). This binarization yields two summary statistics:
- (number of successes)
- (number of failures)
Key statistics underpinning runs-based charts include:
- Number of success runs (): the total maximal consecutive blocks of 1’s, computed as
(with ).
- Scan statistic (0): for a window size 1, defined as
2
- Longest run statistic (3-length of consecutive 1’s):
4
Each of these statistics targets specific types of distributional departures: 5 is sensitive to general clustering, 6 detects local anomalies, and the longest-run is specialized for sustained shifts.
2. Distribution-Free Properties and Permutation Arguments
Conditioning on 7 (the total number of ones), 8 is uniformly distributed over all permutations of 9 ones and 0 zeros. Thus, the conditional laws of 1, 2, and the longest run depend only on 3, not on the underlying value or distribution of 4. This yields exact finite-sample distribution-free inference under the null hypothesis (in-control process), as the type I error and in-control ARL are fixed independently of 5 (Wu, 17 Nov 2025, Wu, 2018).
3. FMCI Techniques for Control Limit and Distribution Derivation
Construction of exact finite-sample control limits relies on the finite Markov chain imbedding (FMCI) technique. For specified runs or scan statistics and given 6, FMCI models the pattern formation as a Markov process on an explicit state-space:
- Runs Chart (7): The state space 8 consists of the possible numbers of runs as zeros are inserted between blocks of ones.
- Scan Statistic (9): The state space is constructed as the set of proper suffixes of potential pattern occurrences, plus an absorbing “pattern detected” state.
Control limits are derived as follows:
- The lower control limit 0 is the largest 1 with 2.
- The upper control limit for 3 is the smallest 4 for which 5. Randomization at the control boundary is used to achieve exactly the nominal false alarm rate 6 when discrete distributions do not permit precise thresholds (Wu, 17 Nov 2025).
4. Stepwise Implementation Procedure
The standard implementation proceeds as follows (Wu, 17 Nov 2025):
- Threshold Selection: Calculate 7 as the empirical 8 quantile of the Phase I sample, yielding 9.
- Binarization: Compute 0, 1, 2.
- Chart Type Selection:
- Runs Chart (R-1): Use 3; signal if 4.
- Scan Chart (R-2): Select window 5; signal if 6.
- Randomization (if required): For discrete statistics, randomize on control boundary values to achieve the exact false alarm probability.
- Localization Diagnostics: Upon a signal, report the run or window indices and conditional 7-values for post hoc analysis.
The procedure is directly supported by closed-form recurrences for transition matrices in FMCI, as detailed in the references of Fu–Lou (2003) and Fu–Lou–Wu (2012).
5. Generalizations: 8-Run Patterns and Waiting Times
Runs-based charts can employ a broad class of patterns characterized as 9-runs, as developed by Kumar & Upadhye (2017) (Kumar et al., 2017). Three canonical pattern families are used:
- Setup I: At least 0 and at most 1 zeros, followed by at least 2 ones.
- Setup II: At least 3 zeros, followed by at least 4 and at most 5 ones.
- Setup III: At least 6, at most 7 zeros, then at least 8, at most 9 ones.
The waiting-time until first appearance of the chosen pattern is modeled as a geometric distribution with explicit parameter 0 computable from the pattern parameters and the (unknown) success probability 1. The in-control and out-of-control ARLs are then 2 and 3, respectively, allowing precise calibration of chart sensitivity (Kumar et al., 2017).
6. Performance Metrics and Comparative Results
The principal performance metrics are:
- In-control Average Run Length (4): Under the null, 5, exactly attainable using randomization.
- Out-of-control Average Run Length (6): Calculable for specified alternatives (e.g., shift in 7 or a location parameter).
- Signal Probability: Type I error controlled at 8, regardless of 9.
- Detection Power: Simulation studies show runs charts are effective for early or mid-sample location shifts; scan charts excel at detecting local clusters or window-matching anomalies.
Comparison to alternative nonparametric methods (Mann–Whitney, Kolmogorov–Smirnov, Empirical Likelihood Ratio charts) finds that runs-based approaches are robust to heavy tails and distributional skew, require no asymptotic theory or Gumbel approximations, and maintain exact finite-sample error control (Wu, 17 Nov 2025). Adjustment of parameters such as 0 and window size 1 tunes the OC sensitivity profile.
7. Numerical Illustrations and Tuning Recommendations
Concrete numerical examples validate the theoretical properties. For 2 and 3, applying FMCI transition matrices yields in-control probabilities for 4 at distinct values, and allows construction of control limits for fixed 5 (Wu, 17 Nov 2025). More extensive simulations under normal, exponential, and 6 distributions confirm that finite-sample ARL, false alarm, and power are insensitive to the underlying 7.
Empirical findings recommend:
- Smaller threshold 8 and larger window 9 for enhanced detection of small shifts.
- Intermediate parameters for optimal detection of moderate to large shifts.
- Pattern selection in 0-runs to balance 1 and 2 (Kumar et al., 2017, Wu, 2018).
References:
- "Phase I Distribution-Free Control Charts for Individual Observations Using Runs and Patterns" (Wu, 17 Nov 2025)
- "Distribution-free runs-based control charts" (Wu, 2018)
- "Generalizations of Distributions Related to (3)-runs" (Kumar et al., 2017)