What does Continuous Glucose Curves and the Minimal Model conclude, in numbers, about “The Measurement Chain: Interstitial Lag, MARD and Sensor Bias”?
Answer: Chapter 6 converts mean absolute relative difference into error bands: a relative standard deviation of 0.1429, or plus or minus 42.0 for one reading at 150 mg/dL.
Scope of the numbers: It is not medical advice, claims no effect of any kind and offers no dietary, fasting or medication plan; any self-experiment must first be discussed with a licensed physician. Its parameters are illustrative; all calculations are generated by its programs.
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: 0.1429, 150, 42.0
| (1) relative sd for MARD 0.114 | 0.1429 |
| 95% band of one reading at 150 mg/dL: +/- 42.0 mg/dL | |
| (2) mixed error: relative sd 0.1327 + additive sd 6 mg/dL | |
| range (mg/dL) share of readings MARD | |
| below 70 | 0.061 0.133 |
| 70-180 | 0.816 0.114 |
| above 180 | 0.122 0.108 |
| overall | 0.114 |
| (3) sensor bias sd 0.10: ratio of two meals | |
| same sensor: bias cancels; two sensors | 95% range 0.758 to 1.319 |
Show the full program
# Chapter 6. p62: what a mean absolute relative difference (MARD) means.
# MARD = mean of |sensor - reference| / reference. 0.114 is the overall
# MARD reported by Bailey et al. 2015 for one factory-calibrated sensor
# against capillary reference (72 participants; 86.7 % of results in
# zone A of the consensus error grid); everything else is illustrative.
# (1) purely relative normal error: MARD = s * sqrt(2 / pi)
# (2) relative + additive error (6 mg/dL), tuned to the same overall
# MARD on an illustrative day of reference values (log-normal,
# median 120 mg/dL, sd of log 0.35): MARD by glucose range
# (3) a bias shared by all readings of one sensor cancels in a
# within-sensor ratio of two meals but not across two sensors
import math
import random
TARGET = 0.114
s = TARGET / math.sqrt(2.0 / math.pi)
print("(1) relative sd for MARD %.3f: %.4f" % (TARGET, s))
print(" 95%% band of one reading at 150 mg/dL: +/- %.1f mg/dL"
% (1.96 * s * 150.0))
rng = random.Random(20261118)
N = 40000
REF = [120.0 * math.exp(rng.gauss(0.0, 0.35)) for _ in range(N)]
Z1 = [rng.gauss(0.0, 1.0) for _ in range(N)]
Z2 = [rng.gauss(0.0, 1.0) for _ in range(N)]
def mard(r, a, lo=0.0, hi=1e9):
v = [abs(x * r * z1 + a * z2) / x for x, z1, z2 in zip(REF, Z1, Z2)
if lo <= x < hi]
return math.fsum(v) / len(v), len(v)
lo_r, hi_r = 0.0, 0.3
for _ in range(40):
mid = (lo_r + hi_r) / 2.0
if mard(mid, 6.0)[0] < TARGET:
lo_r = mid
else:
hi_r = mid
r = (lo_r + hi_r) / 2.0
print("(2) mixed error: relative sd %.4f + additive sd 6 mg/dL" % r)
print(" range (mg/dL) share of readings MARD")
for lo, hi, name in ((0, 70, "below 70"), (70, 180, "70-180"),
(180, 1e9, "above 180")):
m, n = mard(r, 6.0, lo, hi)
print(" %-13s %.3f %.3f" % (name, n / N, m))
print(" overall %.3f" % mard(r, 6.0)[0])
sb = 0.10
sd_lr = math.sqrt(2.0) * sb
print("(3) sensor bias sd %.2f: ratio of two meals" % sb)
print(" same sensor: bias cancels; two sensors: 95%% range"
" %.3f to %.3f" % (math.exp(-1.96 * sd_lr), math.exp(1.96 * sd_lr)))Single source and citation
Fan, Y. (2026). Areas under Continuous Glucose Curves, the Two-Compartment Minimal Model of Insulin Action and the Dynamics of the Switch to Ketone Metabolism (Version 1.0.0), Chapter 6: The Measurement Chain: Interstitial Lag, MARD and Sensor Bias. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-286 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026286,
author = {Fan, Yafu},
title = {Areas under Continuous Glucose Curves, the Two-Compartment Minimal Model of Insulin Action and the Dynamics of the Switch to Ketone Metabolism},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Trapezoids and Increments: Numerical Methods and Errors for the Area under a Continuous Glucose Curve
- Chapter 2 · Same Meal, Different Curves: Decomposing Individual Variation and the Ceiling on Prediction
- Chapter 3 · The Bergman Minimal Model: the Mathematical Structure of a Remote Compartment of Insulin Action
- Chapter 4 · Sensitivity to Personal Parameters: Which Parameter Moves the Post-Meal Curve
- Chapter 5 · The Switch to Ketone Metabolism: a Gradient, Not a Toggle
- Chapter 7 · Classical Sources East and West: the Suwen on Rich Food and Bernard on Averages
- Chapter 8 · Closing the Loop: A-B-A Logs, Randomised Blocks and Pre-Registration