What does Oscillations, Flattening and Recovery conclude, in numbers, about “The Month, and the Gate”?

Answer: Chapter 8 shows realistic adherence giving up 0.5014 of the gap and the safety gate stopping or referring 0.6315 of adults. Marked boxes separate published evidence, runnable Python calculations (sixteen programs), classical sources and the author's hypotheses.

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. standard-library Python onlyprinted values that match the answer: 0.5014

   starting density 0.8598 of rested, phase error 3.00 hours
   load removed with chance 0.70, light taken with 0.80
   after 30 days, density as a share of rested:
   median 0.9255, 10% to 90% 0.8954 to 0.9539
   phase error left: median 0.000, 10% to 90% 0.000 to 0.000
   a perfect month would reach 0.9915
   so imperfect adherence gives up 0.5014 of the gap
   share of people who end below where they started: 0.0030
   share whose phase is still over an hour out: 0.0000
   the same month with the load removed every day and the
   light taken four days in five:
   median density 0.9915, against 0.9255 above
   so the days of load matter more than the days of light,
   which is the opposite of how the two are usually sold
Show the full program
# Chapter 8. p15: The thirty days, with a real person in them. The plan
# of p12 assumes the load is removed and the light is taken every day.
# Nobody does that. Here each day the load is removed with one chance
# and the light is taken with another, and the two failures cost
# different things: a day of load undoes receptor progress, and a missed
# light day leaves the phase where it was. Four thousand people, thirty
# days, seed 97.
import random

SEED, PEOPLE, DAYS = 97, 4000, 30
P_UNLOAD, P_LIGHT = 0.70, 0.80
SYNTH, BASAL, EXTRA = 1.0, 1.0 / 28.0, 3.0 / 28.0
C_ON, C_OFF = 2.5, 1.0
SHIFT, START_PHASE = 0.3515, 3.0

def occupancy(c):
    return c / (1.0 + c)

def steady(c):
    return SYNTH / (BASAL + EXTRA * occupancy(c))

def step(r, c):
    return r + (steady(c) - r) * (BASAL + EXTRA * occupancy(c))

def settled():
    r = steady(C_OFF)
    for d in range(399):     # ends on a Sunday, as in p09
        r = step(r, C_ON if (d % 7) < 5 else C_OFF)
    return r

def one(rng, start, full):
    r, phase = start, START_PHASE
    for _ in range(DAYS):
        r = step(r, C_OFF if rng.random() < P_UNLOAD else C_ON)
        if rng.random() < P_LIGHT:
            phase = max(0.0, phase - SHIFT)
    return r / full, phase

def q(v, a):
    s = sorted(v)
    return s[int(a * (len(s) - 1))]

if __name__ == "__main__":
    full = steady(C_OFF)
    start = settled()
    rng = random.Random(SEED)
    dens, phases = [], []
    for _ in range(PEOPLE):
        d, p = one(rng, start, full)
        dens.append(d)
        phases.append(p)
    print("   starting density {:.4f} of rested, phase error {:.2f} hours"
          .format(start / full, START_PHASE))
    print("   load removed with chance {:.2f}, light taken with {:.2f}"
          .format(P_UNLOAD, P_LIGHT))
    print("   after {} days, density as a share of rested:".format(DAYS))
    print("   median {:.4f}, 10% to 90% {:.4f} to {:.4f}"
          .format(q(dens, 0.5), q(dens, 0.1), q(dens, 0.9)))
    print("   phase error left: median {:.3f}, 10% to 90% {:.3f} to {:.3f}"
          .format(q(phases, 0.5), q(phases, 0.1), q(phases, 0.9)))
    perfect = start
    for _ in range(DAYS):
        perfect = step(perfect, C_OFF)
    print("   a perfect month would reach {:.4f}".format(perfect / full))
    print("   so imperfect adherence gives up {:.4f} of the gap"
          .format(1.0 - (q(dens, 0.5) - start / full)
                  / (perfect / full - start / full)))
    print("   share of people who end below where they started: {:.4f}"
          .format(sum(1 for d in dens if d < start / full) / PEOPLE))
    print("   share whose phase is still over an hour out: {:.4f}"
          .format(sum(1 for p in phases if p > 1.0) / PEOPLE))
    print("   the same month with the load removed every day and the")
    print("   light taken four days in five:")
    rng2 = random.Random(SEED + 1)
    d2 = []
    for _ in range(PEOPLE):
        r = start
        for _ in range(DAYS):
            r = step(r, C_OFF)
        d2.append(r / full)
    print("   median density {:.4f}, against {:.4f} above"
          .format(q(d2, 0.5), q(dens, 0.5)))
    print("   so the days of load matter more than the days of light,")
    print("   which is the opposite of how the two are usually sold")

Single source and citation

Fan, Y. (2026). HPA-Axis Coupled Oscillations, Cortisol Awakening Response Flattening and Burnout Recovery Kinetics (Version 1.0.0), Chapter 8: The Month, and the Gate. 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