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 share | minutes | budget used | alert at minute |
| 1.0 | 2 | 0.046 | 1 |
| 1.0 | 10 | 0.231 | 1 |
| 1.0 | 45 | 1.042 | 1 |
| 0.05 | 30 | 0.035 | 18 |
| 0.05 | 120 | 0.139 | 18 |
| 0.3 | 20 | 0.139 | 3 |
| 0.002 | 600 | 0.028 | none |
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
- Chapter 1 · Base Rates: the More Pushes, the Less Credible Each One
- Chapter 3 · Grouping and Interruption: One Event, One Push
- Chapter 4 · Heartbeats and Probes: Late Is Not Dead
- Chapter 5 · Automatic Repair: Backoff, Circuit Breakers and the Availability Ledger
- Chapter 6 · Lost Links, Thin Links and Permissions: What the Phone May and May Not Do
- Chapter 7 · The Tent, the Field and Requisite Variety: Eastern and Western Sources Examined
- Chapter 8 · Field Tools and Checker Specifications: the Away-From-Desk Ledger and a Pre-Registered Test