Statistical Foundations · 5 min read
You ship a model and start monitoring a quality metric. Every day you run a significance test. Within a month you will have alarms that mean nothing.
The repeated-testing problem
If each daily test has a 5% false alarm rate and the days were independent, the chance of at least one false alarm in 30 days is 1 − 0.95 to the 30th, about 78%. Real data are correlated, so the number differs, but the direction is the same: frequent looks inflate false alarms.
Use a monitor built for sequences
A CUSUM chart accumulates evidence. Each day, add the metric’s deviation above its baseline minus a small allowance k, and floor the running sum at zero. When the sum crosses a threshold h, raise an alarm. Small persistent shifts build up; single noisy days do not.
You choose k and h from the baseline variability and the smallest shift you care about. The result is an average time between false alarms you can plan around.
Decide what an alarm means
An alarm is a prompt to investigate, not a verdict. Write the response in advance: check data pipeline changes, then input mix, then judge or labeling changes, then the model itself.
Monitor the inputs as well as the outputs. A shift in traffic mix can move a metric with no change in model quality, and you want to be able to tell the two apart.
Document the plan
- The baseline window and how it was chosen.
- The smallest shift worth detecting and the tolerated false alarm rate.
- Who reviews alarms and within what time.
