Cumulative Sum Control Chart
A Cumulative Sum (CUSUM) control chart is a statistical quality control tool that detects small shifts in process means by accumulating deviations from a target value over time. Unlike traditional control charts that examine individual observations, CUSUM charts are more sensitive to subtle, persistent changes in the underlying process.
Understanding CUSUM charts
CUSUM charts work by calculating and plotting the cumulative sum of deviations from a target value. The basic CUSUM statistic at time is calculated as:
Where:
- is the current observation
- is the target mean
- is the previous CUSUM value
Next generation time-series database
QuestDB is an open-source time-series database optimized for market and heavy industry data. Built from scratch in Java and C++, it offers high-throughput ingestion and fast SQL queries with time-series extensions.
One-sided and two-sided CUSUM
CUSUM charts can be implemented as one-sided or two-sided monitoring schemes:
One-sided CUSUM
Tracks either positive or negative shifts:
Where:
- is the reference value (usually set to )
- is the shift size to detect
Two-sided CUSUM
Monitors both positive and negative shifts simultaneously:
Next generation time-series database
QuestDB is an open-source time-series database optimized for market and heavy industry data. Built from scratch in Java and C++, it offers high-throughput ingestion and fast SQL queries with time-series extensions.
Applications in financial markets
CUSUM charts are particularly valuable in:
- Anomaly Detection in Time Series Data for identifying market regime changes
- Risk Management in Swaps Trading for monitoring collateral values
- Real-time Trade Surveillance for detecting unusual trading patterns
Decision intervals and implementation
The decision interval determines when the CUSUM signals an out-of-control condition:
- If or exceeds , the process is considered out of control
- The choice of affects the Average Run Length (ARL) properties
- Typical values for are between 4 and 5 standard deviations
Performance considerations
When implementing CUSUM charts in real-time systems:
- Memory efficiency: Only need to store previous CUSUM value
- Computational simplicity: Basic arithmetic operations
- Sensitivity adjustment through parameters and
Next generation time-series database
QuestDB is an open-source time-series database optimized for market and heavy industry data. Built from scratch in Java and C++, it offers high-throughput ingestion and fast SQL queries with time-series extensions.
Extensions and variations
Fast Initial Response (FIR)
Modifies the standard CUSUM to provide faster detection during startup:
Adaptive CUSUM
Dynamically adjusts parameters based on observed data:
- Variable reference value
- Adaptive decision interval
- Time-varying target mean
Best practices
-
Choose appropriate values for and based on:
- Expected shift magnitude
- Desired ARL properties
- False alarm tolerance
-
Regular parameter review:
- Validate target mean
- Assess detection performance
- Adjust for changing market conditions
-
Integration with other monitoring tools:
- Anomaly Score systems
- Alert Thresholding mechanisms
- Real-time Analytics platforms