A single measurement slightly above target may be harmless. A long run of small positive deviations may reveal that a process has shifted. A cumulative-sum chart turns that idea into sequential evidence. For an upward shift, it adds each observation’s excess above a reference-adjusted target and resets the score at zero when the evidence points back towards normal. An alarm occurs when the accumulated score crosses a decision threshold. Mathematics matters because baselines, standard deviations, recursion, false alarms and detection delay must be balanced before a line on a chart becomes a responsible decision.
The practical search question is not simply “what is this named method?” but “which mathematical structure makes the method work, what does it guarantee, and what evidence would show that it is a poor choice?” This article keeps those questions together so students can connect mathematics education with computing, engineering, data reasoning and careful everyday decisions without turning one technique into a career promise.
Quick navigation: Why it matters · Mechanism · Worked example · Deeper ideas · Investigations · Limits · Learning route · Parent guidance · FAQs · Sources
Why this mathematics matters
Mathematics is important here because it turns an apparently visual or computational trick into a chain of reasons. The representation tells us what information is kept. The equation or invariant explains each legal step. The complexity analysis describes the work. The boundary conditions say when a conclusion should not be trusted. That combination is a practical form of problem-solving literacy.
A strong learner should be able to move in both directions: from a real task to a mathematical model, and from a formal guarantee back to its real meaning. Naming an algorithm is not enough. The useful achievement is to explain why the next operation is valid, check a small instance independently, and notice which assumptions the implementation has added.
Source: NIST/SEMATECH handbook section on CUSUM control charts.
Primary or implementation reference: Page’s 1954 Biometrika paper on continuous inspection schemes.
How the mechanism works
Choose an in-control target mean mu_0, a reference value K related to the shift worth detecting, and a decision interval H. For a one-sided upper CUSUM, set C_0^+=0 and update C_t^+=max(0,C_(t−1)^+ + x_t − (mu_0+K)). Signal when C_t^+>H or meets the declared boundary. A lower chart mirrors the calculation: C_t^−=max(0,C_(t−1)^− + (mu_0−K)−x_t). Standardised versions express K and H in sigma units. After an alarm, investigation and reset rules must be defined; the calculation does not diagnose the cause by itself.
CUSUM is a recursive sequential statistic. The reset at zero discards accumulated evidence in the wrong direction, while persistent deviations add coherently. K creates a dead-band: fluctuations smaller than the reference value contribute less or are cancelled. H trades sensitivity against false-alarm frequency. Performance is commonly summarised by average run length—the expected number of samples to a signal under a specified process state. Those expectations require a probabilistic model, often including independence and a stable in-control distribution. Autocorrelation or changing variance can invalidate nominal alarm behaviour.
Keep a four-column notebook labelled object, rule, guarantee and caveat. In the first column name the inputs and stored state. In the second write one update precisely. In the third state what remains true after the update. In the fourth record a tie, approximation, domain restriction or hardware assumption. This routine prevents symbols from drifting away from their meaning.
Worked example and core calculations
Suppose a process target is 10, choose K=0.5 and upper threshold H=3. Observe 10.2, 10.6, 11.1, 11.4, 11.3, 11.2. The increments x_t−10.5 are −0.3, 0.1, 0.6, 0.9, 0.8, 0.7. Starting at zero and resetting negatives gives C^+=0,0.1,0.7,1.6,2.4,3.1. The final score crosses 3, so the chart signals sustained upward evidence. It does not prove why the process changed; the next step is investigation with the same care used to set the baseline.
How to audit the calculation
- Recompute every intermediate value directly from the definition.
- Keep labels, indices, signs, units and normalisation visible.
- Test a case with a known exact answer.
- State tie rules, random seeds, tolerances and boundary conventions.
- Compare with a slower transparent baseline or trusted implementation.
- Separate agreement of numbers from suitability of the real-world model.
Small examples are not childish; they are diagnostic instruments. A five-line trace can reveal a reversed inequality, a missing scale factor or an inconsistent label convention before a large dataset hides the same error behind plausible output.
Four deeper ideas
CUSUM remembers directionally consistent evidence
Several modest deviations can matter more than one isolated extreme.
To transfer this idea, ask what would remain true if labels, scale or input order changed. Then identify the step whose justification would fail if the stated assumption were removed. This turns the paragraph into a reusable reasoning pattern rather than a fact to memorise.
The reference value defines relevance
K encodes the shift scale that the design is trying to detect efficiently.
To transfer this idea, ask what would remain true if labels, scale or input order changed. Then identify the step whose justification would fail if the stated assumption were removed. This turns the paragraph into a reusable reasoning pattern rather than a fact to memorise.
Did you know? Alarm speed is judged as a distribution
Average run length describes repeated-operation behaviour, not a guaranteed alarm time.
To transfer this idea, ask what would remain true if labels, scale or input order changed. Then identify the step whose justification would fail if the stated assumption were removed. This turns the paragraph into a reusable reasoning pattern rather than a fact to memorise.
A signal is a prompt for diagnosis
The statistic detects incompatibility with the baseline design; it does not name a mechanical, human or data cause.
To transfer this idea, ask what would remain true if labels, scale or input order changed. Then identify the step whose justification would fail if the stated assumption were removed. This turns the paragraph into a reusable reasoning pattern rather than a fact to memorise.
Twelve practical investigations
1. Upward shift
Reproduce the worked sequence. Trace each reset and addition.
What the mathematics reveals: Small consistent excesses accumulate. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Declare the boundary rule. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
2. Isolated spike
Use one large value then normal data. Observe decay or reset.
What the mathematics reveals: CUSUM distinguishes persistence imperfectly. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Investigate special causes. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
3. No shift
Simulate baseline noise. Estimate false-alarm run lengths.
What the mathematics reveals: Random sequences still cross thresholds eventually. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Use repeated trials. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
4. Downward shift
Apply the lower recursion. Compare directions.
What the mathematics reveals: Two one-sided charts answer different questions. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Label signs. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
5. Wrong baseline
Set mu0 too low. Watch frequent alarms.
What the mathematics reveals: Baseline bias becomes signal bias. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Validate history. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
6. Autocorrelation
Generate slowly varying noise. Compare nominal behaviour.
What the mathematics reveals: Independence assumptions matter. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Model dependence. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
7. Changing variance
Double sigma midway. Observe alarm frequency.
What the mathematics reveals: Spread changes can mimic mean shifts. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Monitor scale. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
8. Seasonality
Add a daily cycle. Run raw and adjusted charts.
What the mathematics reveals: Expected patterns should be modelled. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Do not call them anomalies. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
9. Missing sample
Skip a time point. Choose a documented rule.
What the mathematics reveals: Time and observation count differ. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Preserve timestamps. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
10. Threshold comparison
Try H=2 and H=5. Estimate delay and false alarms.
What the mathematics reveals: Sensitivity has a cost. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Report both. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
11. Independent baseline
Compare with a Shewhart chart. Use the same data.
What the mathematics reveals: CUSUM is often sensitive to small sustained shifts. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: No chart dominates every case. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
12. Decision audit
Record alarms and investigations. Classify true and false signals.
What the mathematics reveals: Operational evidence improves design. Evidence to collect: write the input, predict the next state, carry out the calculation, and compare the result with an independently produced reference. Explain the exact invariant, equation, inequality or counting rule that supports the conclusion. Then vary one assumption and record whether the result changes smoothly, discontinuously or not at all.
Limit to keep visible: Avoid outcome cherry-picking. A useful report places this boundary beside the result rather than hiding it in a final disclaimer.
Limits and misconceptions
CUSUM design assumes a meaningful stable baseline. A drifting target, seasonal pattern, autocorrelation, data batching or changing measurement precision can create misleading alarms. K and H cannot be chosen responsibly from convenience alone; they determine sensitivity and false-alarm behaviour. Retrospective tuning on the same incidents can overstate performance. Missing data and unequal sampling intervals need explicit treatment. Multiple monitored streams raise multiplicity and alert-management questions. In education or healthcare, a score must never become an automatic judgement about a person without context, case mix, uncertainty and human review.
Five misconceptions to challenge
- CUSUM simply totals the measurements: It accumulates reference-adjusted deviations and usually resets evidence in the wrong direction.
- Crossing H proves the cause: It signals evidence of change, not diagnosis.
- A lower threshold is always better: It usually increases false alarms.
- The target can be estimated from any convenient period: A contaminated baseline distorts the chart.
- One design works for every shift size: K and H encode a chosen detection trade-off.
Another broad misconception is that advanced mathematics automatically creates intelligence, admission, income or employment. It does not. Deliberate study can strengthen modelling, abstraction, calculation and explanation, while real pathways also depend on interests, communication, domain knowledge, opportunities and circumstances outside one topic.
A learning route for students
Move from a visible trace to a symbolic rule, then to code and critique. For every step below, prepare three pieces of evidence: a correct hand example, a boundary or failure case, and a short explanation using the relevant invariant. Do not advance merely because software returned a number.
Step 1: Define an in-control baseline
Begin with the smallest non-trivial instance that lets you define an in-control baseline. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 2: Standardise deviations
Begin with the smallest non-trivial instance that lets you standardise deviations. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 3: Update an upper cusum
Begin with the smallest non-trivial instance that lets you update an upper CUSUM. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 4: Update a lower cusum
Begin with the smallest non-trivial instance that lets you update a lower CUSUM. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 5: Choose and interpret k
Begin with the smallest non-trivial instance that lets you choose and interpret K. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 6: Choose and interpret h
Begin with the smallest non-trivial instance that lets you choose and interpret H. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 7: Calculate run length
Begin with the smallest non-trivial instance that lets you calculate run length. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 8: Distinguish detection from diagnosis
Begin with the smallest non-trivial instance that lets you distinguish detection from diagnosis. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 9: Test model assumptions
Begin with the smallest non-trivial instance that lets you test model assumptions. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
Step 10: Audit false alarms and delay
Begin with the smallest non-trivial instance that lets you audit false alarms and delay. Predict the result before calculating. Write each state change clearly enough that another student can reproduce it. Compare with a trusted implementation only after the hand trace is complete.
Next, change one feature—size, ordering, sign, tolerance, labelling or data distribution—and explain which part of the reasoning changes. Finish by teaching the step without code and by naming one input for which the method is unhelpful. This predict–calculate–vary–explain cycle is a strong test of transferable understanding.
A four-week practice plan
- Week 1 — vocabulary and diagrams: define each object, redraw the mechanism and reproduce the worked example.
- Week 2 — equations and manufactured tests: derive the key relation and test inputs with known answers.
- Week 3 — implementation and evidence: use a trusted library, record parameters and compare with a transparent baseline.
- Week 4 — transfer and critique: apply the method to a new context, report limits and identify when a different method is better.
Guidance for parents and educators
Ask “what stays true?” and “what could make this conclusion fail?” before asking for speed. Invite the student to draw the input and output, estimate the result and locate the first step that disagrees with a reference. These prompts reveal conceptual understanding more clearly than memorised terminology.
Advanced enrichment should sit beside secure school foundations in algebra, functions, geometry, statistics and computational thinking. It need not accelerate a student into a fixed career identity. A healthy goal is curiosity with discipline: the learner becomes comfortable reading unfamiliar notation, checking an example, revising a model and communicating uncertainty.
Evidence prompts for a useful conversation
- Which quantity is observed and which is inferred?
- Which step saves work, and why is it allowed?
- Is the claim exact, approximate, probabilistic or empirical?
- What units and conventions are in use?
- Which input makes the method struggle?
- What simple baseline could check the answer?
- What would count as evidence that the parameters are poor?
Mini-project assessment
A strong mini-project contains the original question, a small reproducible dataset, a hand-worked example, code or a spreadsheet trace, at least one boundary test, a comparison with a baseline, and a paragraph on limits. Assess the reasoning trail as well as the final output. Repairing a model after a surprising result is valuable mathematical progress.
Six evidence checks for a finished project
Check 1: Define an in-control baseline
Ask the student to demonstrate how to define an in-control baseline without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Check 2: Standardise deviations
Ask the student to demonstrate how to standardise deviations without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Check 3: Update an upper cusum
Ask the student to demonstrate how to update an upper CUSUM without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Check 4: Update a lower cusum
Ask the student to demonstrate how to update a lower CUSUM without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Check 5: Choose and interpret k
Ask the student to demonstrate how to choose and interpret K without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Check 6: Choose and interpret h
Ask the student to demonstrate how to choose and interpret H without relying on a hidden software step. The evidence should include a labelled input, the exact rule used, one intermediate state and a result that can be checked independently. If the answer changes after labels or order change, the student should say whether that reflects the mathematics or only a convention.
Then request one deliberately awkward example. The learner should predict the difficulty before running the method, explain what the output does and does not establish, and name a reasonable alternative or safeguard. This check joins correctness with judgement: a technically valid calculation is useful only when its assumptions and interpretation remain visible.
Frequently asked questions
What does CUSUM stand for?
Cumulative sum.
What does it detect?
Sustained evidence of a change relative to a designed baseline.
What is K?
A reference value that tunes the shift size of interest.
What is H?
The decision threshold for signalling.
Why reset at zero?
To discard accumulated evidence pointing away from the monitored direction.
What is average run length?
The expected number of samples before a signal under a specified state.
Does an alarm prove a cause?
No.
Can it monitor decreases?
Yes, with a lower-sided recursion.
Why can autocorrelation be a problem?
It changes the run-length behaviour assumed by a simple independent model.
What should students know first?
Means, standard deviation, sequences, recursion, probability and graphs.
Useful next reading and sources
Source: NIST/SEMATECH handbook section on CUSUM control charts.
Source: Page’s 1954 Biometrika paper on continuous inspection schemes.
Related eduKateSG reading: Savitzky–Golay signal smoothing.
Related eduKateSG reading: Greenwald–Khanna streaming quantiles.
Related eduKateSG reading: Comparing percentages fairly.
Read sources with a question in mind: which definition, theorem, default or limitation is being supported? An authoritative link is useful evidence, but it does not replace a worked calculation or a clear statement of how the source applies to the example.
A cheerful final thought
Mathematics becomes friendlier when every symbol has a job and every claim has a boundary. Start small, make the state visible, test the awkward case, and celebrate the moment when a pattern becomes explainable. That is the practical benefit of learning mathematics: not certainty about every future, but a growing ability to ask better questions and build trustworthy answers.
