What does Pocket Command of Container Fleets conclude, in numbers, about “Detectors: Cumulative Sums, Weighted Averages and the Error Budget”?

Answer: Chapter 2 compares fixed thresholds, cumulative sums and weighted averages and hangs alerts on the error budget: a target of 0.999 leaves only 43.2 minutes of full outage a month.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book offers non-personalised operating guidance, promises no availability figure, and was written without connecting to any machine. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 43.2

budget 43.2 min of full outage; fast burn threshold 14.4 x
error shareminutesbudget usedalert at minute
1.020.0461
1.0100.2311
1.0451.0421
0.05300.03518
0.051200.13918
0.3200.1393
0.0026000.028none
Show the full program
# Chapter 2. p23: alert on the error budget, not on every blip
# Availability target 0.999 over 30 days. Burn rate = observed error
# share / (1 - target). An alert on a 1-hour window fires when that
# hour alone would spend 2 % of the monthly budget. Incidents below
# are illustrative (error share, minutes); the check runs every minute.
import math

TARGET, DAYS = 0.999, 30
BUDGET_MIN = DAYS * 24 * 60 * (1.0 - TARGET)
FAST = 0.02 * DAYS * 24 / 1.0
WIN = 60


def first_alert(share, minutes):
    """Minute at which the 1-hour mean burn rate first reaches FAST."""
    errs = []
    for t in range(1, minutes + WIN + 1):
        errs.append(share if t <= minutes else 0.0)
        window = errs[-WIN:]
        burn = math.fsum(window) / WIN / (1.0 - TARGET)
        if burn >= FAST:
            return t
    return None


print("budget {:.1f} min of full outage; fast burn threshold {:.1f} x".format(
    BUDGET_MIN, FAST))
print("error share  minutes  budget used  alert at minute")
for share, minutes in ((1.0, 2), (1.0, 10), (1.0, 45), (0.05, 30),
                       (0.05, 120), (0.3, 20), (0.002, 600)):
    used = share * minutes / BUDGET_MIN
    hit = first_alert(share, minutes)
    print("{:<11}  {:>7}  {:>11.3f}  {:>15}".format(
        share, minutes, used, "none" if hit is None else hit))

Single source and citation

Fan, Y. (2026). Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity (Version 1.0.0), Chapter 2: Detectors: Cumulative Sums, Weighted Averages and the Error Budget. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-416 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026416,
  author    = {Fan, Yafu},
  title     = {Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book