Pair single-observation measurements with successive absolute differences while freezing baseline center and limits before monitoring begins.
Individuals and moving-range charts: monitor level and local variation
Use the pair when each period has one reading
An individuals chart plots one measurement per ordered sampling point. A companion moving-range chart plots the absolute difference between consecutive readings, so it can reveal a jump that deserves attention even when the level remains inside its own limits. The pair is useful when rational subgroups of repeated measurements are unavailable. Do not substitute it for a subgroup chart when several readings are deliberately sampled within each period; averaging or selecting one would discard within-period variation. A p chart instead monitors proportions with varying denominators. Time-series gap rules apply before any adjacent difference is calculated.
Freeze a credible baseline
Estimate a center from an earlier stable phase. For moving ranges of two successive baseline observations, divide their mean by the appropriate two-point constant to estimate short-term standard deviation; three such estimated standard deviations on either side of the center give illustrative individuals limits. The moving-range chart has its own upper limit and a zero lower bound under this standard pairing. Record the baseline IDs, sampling interval, calibration version and exclusions. Do not recompute limits after every surprising new point, because an actual shift would then move the reference line along with it. CUSUM and EWMA can complement this pair when small persistent shifts matter more than isolated jumps.
Do not bridge missing or changed periods
A moving range is meaningful only between adjacent observations of the process under the chosen sampling plan. If one shift is missing, comparing the readings on either side spans a longer interval and should not silently become an ordinary two-point range. Start a new run after a known process reset or measurement-system change, and mark the gap on the chart. Serial correlation can make the textbook limits misleading: slowly drifting readings have small successive differences even when the process is no longer stable. Inspect raw points and time spacing, and validate false-alert behavior on a clean baseline before operational use. Control limits describe process behavior under assumptions; they are not product acceptance specifications.
Make alerts inspectable
Show the measurement, moving range, reference center, both limit sets and which rule triggered. A point outside a limit is a signal to investigate, not proof of a faulty product or a named root cause. Record investigation outcome and subsequent measurement rather than redrawing away a signal. For small baselines, estimates can be unstable; the six-point demonstration below is an arithmetic check, not a recommended operational baseline size. A chart export manifest should carry the baseline version and missing-period policy so another reader can reproduce the same alarms. Use text flags as well as colored markers.
Worked contract
from math import isfinite
def individual_range_ledger(baseline: list[tuple[str, float]],
monitoring: list[tuple[str, float]]):
all_readings = baseline + monitoring
identifiers = [sample_id for sample_id, _ in all_readings]
if len(baseline) < 5 or len(identifiers) != len(set(identifiers)) or any(
not sample_id or not isfinite(value)
for sample_id, value in all_readings):
raise ValueError("use valid unique samples and at least five baseline readings")
baseline_values = [value for _, value in baseline]
ranges = [abs(current - previous)
for previous, current in zip(baseline_values, baseline_values[1:])]
center = sum(baseline_values) / len(baseline_values)
mean_range = sum(ranges) / len(ranges)
if mean_range == 0:
raise ValueError("zero baseline variation needs an investigation")
sigma_estimate = mean_range / 1.128
individual_limits = (center - 3 * sigma_estimate,
center + 3 * sigma_estimate)
range_limits = (0.0, 3.267 * mean_range)
last_value = baseline_values[-1]
plotted = []
for sample_id, value in monitoring:
moving_range = abs(value - last_value)
plotted.append((sample_id, value, moving_range,
value < individual_limits[0] or value > individual_limits[1],
moving_range > range_limits[1]))
last_value = value
return center, mean_range, individual_limits, range_limits, plotted
reference_shifts = [("shift-47", 47.0), ("shift-59", 49.0),
("shift-83", 48.0), ("shift-97", 50.0),
("shift-101", 49.0), ("shift-131", 51.0)]
new_shifts = [("shift-149", 52.0), ("shift-173", 54.0)]
center, average_range, bounds, range_bounds, marks = individual_range_ledger(
reference_shifts, new_shifts)
assert center == 49.0 and average_range == 1.6
assert bounds[0] < 47 < bounds[1] < 54
assert marks == [("shift-149", 52.0, 1.0, False, False),
("shift-173", 54.0, 2.0, True, False)]Performance and operating cost
With B baseline readings and M monitored readings, calculating center, successive baseline ranges and alerts takes O(B + M) time. The returned monitor ledger uses O(M) space, while ID validation uses O(B + M); streaming from a prevalidated unique-ID source needs only constant additional state. The eight-reading check detects a level signal at 54 while both observed moving ranges remain below their own limit. Its baseline is intentionally too small for a reliable operating rule. Validate a longer stable phase and the sampling schedule before treating limits as alarms.
Common Mistakes
- Including new alarm points in the baseline average and moving limits.
- Treating a missing shift as though its two neighbors were adjacent samples.
- Calling a control limit a product specification or a guaranteed false-alarm probability.
- Ignoring serial correlation because the moving ranges happen to be small.
Validation drill
Use 47 verified stable production shifts as a frozen baseline, then monitor 83 later shifts. Mark gaps and equipment resets, display both charts with versioned limits, and explain every alert with its raw reading, adjacent reading and investigation state.
Read next
- EWMA control charts: detect slow shifts against a frozen baseline
- CUSUM charts: accumulate small departures from a stable target
- P charts: account for varying denominators before flagging a rate
- Time-series charts: distinguish missing days, zeros and provisional periods
