What does Continuous Glucose Curves and the Minimal Model conclude, in numbers, about “Sensitivity to Personal Parameters: Which Parameter Moves the Post-Meal Curve”?
Answer: Chapter 4 finds that with glucose alone, insulin sensitivity and secretion appear only as a product, both with an elasticity of 0.531.
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 only
| reference person: 2-h iAUC 3247, peak +65.2 mg/dL at 40 min | |||
| param | value | elast iAUC | elast peak |
| SI | 0.0005 | -0.531 | -0.202 |
| SG | 0.025 | -0.331 | -0.345 |
| p2 | 0.025 | -0.322 | -0.165 |
| k | 0.04 | +0.310 | +0.805 |
| Am | 250 | +0.837 | +0.918 |
| gam | 0.12 | -0.531 | -0.202 |
| n | 0.1 | +0.404 | +0.103 |
| largest |elasticity| of iAUC: Am, SI, gam |
Show the full program
# Chapter 4. p41: which personal parameter moves a meal curve most?
# Oral version of the minimal model (all parameters illustrative):
# Ra(t) = Am k^2 t exp(-k t) glucose appearance, mg/dL/min
# dG/dt = -(SG + X) G + SG Gb + Ra
# dX/dt = -p2 X + p2 SI (I - Ib)
# dI/dt = -n (I - Ib) + gam max(G - Gb, 0)
# Am 250 mg/dL, k 0.04/min, SG 0.025, p2 0.025, SI 5.0e-4, n 0.1/min,
# gam 0.12 microU/mL/min per mg/dL, Gb 90, Ib 8. RK4, step 1 min.
# Elasticity = d ln(output) / d ln(parameter), central difference 5 %.
import math
BASE = {"SI": 5.0e-4, "SG": 0.025, "p2": 0.025, "k": 0.04,
"Am": 250.0, "gam": 0.12, "n": 0.1}
GB, IB = 90.0, 8.0
def meal(p, t_end=120, h=1.0):
si, sg, p2, k = p["SI"], p["SG"], p["p2"], p["k"]
am, gam, n = p["Am"], p["gam"], p["n"]
def f(t, g, x, i):
ra = am * k * k * t * math.exp(-k * t)
return (-(sg + x) * g + sg * GB + ra,
-p2 * x + p2 * si * (i - IB),
-n * (i - IB) + gam * max(g - GB, 0.0))
s = (GB, 0.0, IB)
gs = [GB]
for j in range(int(t_end / h)):
t = j * h
a = f(t, *s)
b = f(t + h / 2, *[v + h / 2 * d for v, d in zip(s, a)])
c = f(t + h / 2, *[v + h / 2 * d for v, d in zip(s, b)])
d = f(t + h, *[v + h * e for v, e in zip(s, c)])
s = tuple(v + h / 6 * (p1 + 2 * p2_ + 2 * p3 + p4)
for v, p1, p2_, p3, p4 in zip(s, a, b, c, d))
gs.append(s[0])
ys = [max(v - GB, 0.0) for v in gs]
iauc = h * math.fsum([ys[0] / 2] + ys[1:-1] + [ys[-1] / 2])
pk = max(range(len(gs)), key=lambda j: gs[j])
return iauc, gs[pk] - GB, pk * h
ia, pk, tp = meal(BASE)
print("reference person: 2-h iAUC %.0f, peak +%.1f mg/dL at %d min"
% (ia, pk, tp))
print("param value elast iAUC elast peak")
rows = []
for name in ("SI", "SG", "p2", "k", "Am", "gam", "n"):
up, dn = dict(BASE), dict(BASE)
up[name] *= 1.05
dn[name] /= 1.05
a1, k1, _ = meal(up)
a0, k0, _ = meal(dn)
e_a = (math.log(a1) - math.log(a0)) / (2 * math.log(1.05))
e_p = (math.log(k1) - math.log(k0)) / (2 * math.log(1.05))
rows.append((abs(e_a), name))
print("%-5s %8.4g %+8.3f %+8.3f" % (name, BASE[name], e_a, e_p))
print("largest |elasticity| of iAUC: " + ", ".join(
n for _, n in sorted(rows, reverse=True)[:3]))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 4: Sensitivity to Personal Parameters: Which Parameter Moves the Post-Meal Curve. 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 5 · The Switch to Ketone Metabolism: a Gradient, Not a Toggle
- Chapter 6 · The Measurement Chain: Interstitial Lag, MARD and Sensor Bias
- 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