What does Oscillations, Flattening and Recovery conclude, in numbers, about “A Loop with a Delay”?

Answer: Chapter 1 builds a delayed negative feedback loop out of the published half-lives of three hormones: above a delay of 9.8 minutes it oscillates, and at a fifteen-minute delay its period of 171.5 minutes is 2.29 times the observed sixty to ninety.

Scope of the numbers: Its parameters are illustrative or synthetic; all figures are produced by the programs printed in the book; the book is not medical advice and does not diagnose. Marked boxes separate published evidence, runnable Python calculations (sixteen 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. printed values that match the answer: 171.5, 2.29, 9.8

   clearance rates per hour from the published half-lives:
   cortisol 0.5941, corticotropin 2.7726, releasing hormone 4.1589
   delay h   amplitude   period h   mean
   0.00      0.0000      0.000      1.4621
   0.05      0.0000      0.000      1.4621
   0.10      0.0000      0.000      1.4621
   0.15      0.0001      2.312      1.4621
   0.20      0.2420      2.539      1.5289
   0.25      0.4348      2.859      1.6396
   0.33      0.7305      3.374      1.8467
   0.50      1.4957      4.441      2.3653
   the loop starts to oscillate at a delay of 0.1630 hours
   which is 9.8 minutes
   at a delay of 0.25 hours the period is 2.859 hours
   which is 171.5 minutes
   the observed pulse interval in people is 60 to 90 minutes,
   so this loop, built only from plasma half-lives, is about
   2.29 times too slow
   amplitude there is 0.4348 about a mean of 1.6396,
   a relative swing of 0.2652
Show the full program
# Chapter 1. p01: The three-stage loop with a delay. Releasing hormone
# drives corticotropin, corticotropin drives cortisol, and cortisol
# feeds back to suppress the releasing hormone after a transit delay.
# Each clearance rate below is the natural logarithm of two divided by a
# published plasma half-life, so the time constants are not free
# parameters. The feedback is a Hill term of exponent N. The loop is
# integrated forward by small steps with a history buffer for the delay.
# What is asked is: at what delay does the loop stop settling and start
# oscillating, and what period does it then have?
HL_CORT, HL_ACTH, HL_CRH = 70.0, 15.0, 10.0      # minutes
N, GAIN, K = 8.0, 20.0, 1.0
T, DT = 300.0, 0.002                              # hours
LN2 = 0.6931471805599453

BC = LN2 / (HL_CORT / 60.0)
QA = LN2 / (HL_ACTH / 60.0)
MH = LN2 / (HL_CRH / 60.0)
KC, PA, KH = BC * 1.6, QA, MH * GAIN

def simulate(tau, scale=1.0):
    bc, qa, mh = BC * scale, QA * scale, MH * scale
    kc, pa, kh = bc * 1.6, qa, mh * GAIN
    lag = int(round(tau / DT))
    c = [1.0] * (lag + 1)
    a = h = 0.6
    tail = []
    steps = int(T / DT)
    for i in range(steps):
        cl = c[-1 - lag]
        f = 1.0 / (1.0 + (cl / K) ** N)
        h += DT * (kh * f - mh * h)
        a += DT * (pa * h - qa * a)
        c.append(c[-1] + DT * (kc * a - bc * c[-1]))
        if i * DT > T * 0.6:
            tail.append(c[-1])
    amp = 0.5 * (max(tail) - min(tail))
    mean = sum(tail) / len(tail)
    cross = []
    for i in range(1, len(tail)):
        if (tail[i - 1] - mean) < 0.0 <= (tail[i] - mean):
            cross.append(i * DT)
    per = ((cross[-1] - cross[0]) / (len(cross) - 1)
           if len(cross) > 2 else 0.0)
    return amp, per, mean

if __name__ == "__main__":
    print("   clearance rates per hour from the published half-lives:")
    print("   cortisol {:.4f}, corticotropin {:.4f}, releasing hormone"
          " {:.4f}".format(BC, QA, MH))
    print("   delay h   amplitude   period h   mean")
    for tau in (0.00, 0.05, 0.10, 0.15, 0.20, 0.25, 0.33, 0.50):
        amp, per, mean = simulate(tau)
        print("   {:<10.2f}{:<12.4f}{:<11.3f}{:.4f}"
              .format(tau, amp, per, mean))
    lo, hi = 0.0, 0.50
    for _ in range(34):
        mid = 0.5 * (lo + hi)
        if simulate(mid)[0] > 0.01:
            hi = mid
        else:
            lo = mid
    crit = 0.5 * (lo + hi)
    print("   the loop starts to oscillate at a delay of {:.4f} hours"
          .format(crit))
    print("   which is {:.1f} minutes".format(crit * 60.0))
    amp, per, mean = simulate(0.25)
    print("   at a delay of 0.25 hours the period is {:.3f} hours"
          .format(per))
    print("   which is {:.1f} minutes".format(per * 60.0))
    print("   the observed pulse interval in people is 60 to 90 minutes,")
    print("   so this loop, built only from plasma half-lives, is about")
    print("   {:.2f} times too slow".format(per * 60.0 / 75.0))
    print("   amplitude there is {:.4f} about a mean of {:.4f},"
          .format(amp, mean))
    print("   a relative swing of {:.4f}".format(amp / mean))

Single source and citation

Fan, Y. (2026). HPA-Axis Coupled Oscillations, Cortisol Awakening Response Flattening and Burnout Recovery Kinetics (Version 1.0.0), Chapter 1: A Loop with a Delay. 5D Library. https://doi.org/10.5281/zenodo.24090252

DOI: 10.5281/zenodo.24090252 · Read the monograph · 5DL-B-097 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026097,
  author    = {Fan, Yafu},
  title     = {HPA-Axis Coupled Oscillations, Cortisol Awakening Response Flattening and Burnout Recovery Kinetics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090252},
  url       = {https://doi.org/10.5281/zenodo.24090252}
}

Other chapter answers in this book