What does Autonomic Balance, Six Stages and Multimodal Inversion conclude, in numbers, about “Drift in the Temperature Rhythm and the Core-to-Fingertip Gradient”?

Answer: Chapter 3 computes the day-to-day wandering of the temperature-rhythm peak: one day of data has only a 0.652 chance of revealing a one-hour drift, seven days 0.836; if room temperature is not measured with the core-to-fingertip gradient, the error in working back almost triples.

Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 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.652, 0.836

daysmean peaksd of peak (min)amplitude1 h shift seen
116.9460.70.4140.652
216.9941.90.4010.728
317.0335.50.3990.710
716.9923.50.3960.836
Show the full program
# Chapter 3. p05: Reading a temperature rhythm (cosinor). Core temperature
# is sampled every 10 minutes: mesor 36.9 deg C, amplitude 0.40 deg C,
# peak (acrophase) at 17:00. Real recordings are messier than white
# noise: the peak wanders from day to day (sd 40 min) and activity, meals
# and sleep add slow, correlated noise (AR(1), lag-1 correlation 0.95,
# sd 0.15 deg C). Least squares on cos and sin of the 24 h cycle gives mesor,
# amplitude and acrophase; their spread over 500 repeats (seed 86) shows
# how many days are needed before a 1-hour drift in the peak can be seen.
import random
from math import atan2, cos, pi, sin, sqrt

def series(rng, days, shift_h=0.0):
    out, e = [], rng.gauss(0, 0.15)
    for d in range(days):
        jit = rng.gauss(0, 40 / 60.0)
        for i in range(144):
            t = d * 24 + i / 6.0
            e = 0.95 * e + sqrt(1 - 0.95 ** 2) * rng.gauss(0, 0.15)
            out.append((t, 36.9 + 0.40 * cos(
                2 * pi * (t - 17 - shift_h - jit) / 24) + e))
    return out

def cosinor(data):
    n = len(data)
    c = [cos(2 * pi * t / 24) for t, _ in data]
    s = [sin(2 * pi * t / 24) for t, _ in data]
    y = [v for _, v in data]
    m = sum(y) / n
    # cos and sin are orthogonal over whole days
    b = 2 * sum(ci * (yi - m) for ci, yi in zip(c, y)) / n
    g = 2 * sum(si * (yi - m) for si, yi in zip(s, y)) / n
    amp = sqrt(b * b + g * g)
    peak = (atan2(g, b) * 24 / (2 * pi)) % 24
    return m, amp, peak

if __name__ == "__main__":
    rng = random.Random(86)
    print("   days  mean peak   sd of peak (min)  amplitude  1 h shift seen")
    for days in (1, 2, 3, 7):
        peaks, amps, seen = [], [], 0
        for _ in range(500):
            _, a, p = cosinor(series(rng, days))
            _, _, q = cosinor(series(rng, days, 1.0))
            peaks.append(p)
            amps.append(a)
            seen += (q - p) > 0.5
        mp = sum(peaks) / 500
        sd = sqrt(sum((p - mp) ** 2 for p in peaks) / 499)
        print("   {:4d}  {:9.2f}   {:16.1f}  {:9.3f}  {:14.3f}".format(
            days, mp, 60 * sd, sum(amps) / 500, seen / 500))

Single source and citation

Fan, Y. (2026). Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion (Version 1.0.0), Chapter 3: Drift in the Temperature Rhythm and the Core-to-Fingertip Gradient. 5D Library. https://doi.org/10.5281/zenodo.24090227

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

BibTeX
@book{fan2026086,
  author    = {Fan, Yafu},
  title     = {Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090227},
  url       = {https://doi.org/10.5281/zenodo.24090227}
}

Other chapter answers in this book