What does VO2max, Zone 2 and the Five-Animal Frolics conclude, in numbers, about “Piecewise Log-Linear MET-Minutes: Knots and Ceilings in the Dose-Response”?

Answer: Chapter 3 fits a piecewise log-linear curve with two knots to pooled data on two thirds of a million people, with a hazard ratio of 0.9431 per MET-hour on the first segment.

Scope of the numbers: Chapter 6 assigns illustrative metabolic equivalents to the Five-Animal Frolics, about 43.75 MET-minutes a round, and schedules a weekly dose. Marked boxes separate published evidence, runnable Python calculations (19 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.9431

best knots: k15, k2 = 20 MET-h/week; chi2 = 3.04
HR per +1 MET-h/week below k10.9431
HR per +1 MET-h/week k1 to k20.9872
HR per +1 MET-h/week above k21.0001
dose observed fitted
3.750.80 0.803
11.250.69 0.688
18.750.63 0.625
31.250.61 0.616
57.500.61 0.617
90.000.68 0.618
fitted HR at 7.5 MET-h/week0.722
Show the full program
# Chapter 3. p31: A piecewise log-linear dose-response for leisure-time
# activity. Data: Arem et al. (2015, JAMA Intern Med; 661,137 adults,
# 116,686 deaths), HRs against 0 MET-h/week for 0.1-<7.5, 7.5-<15,
# 15-<22.5, 22.5-<40, 40-<75 and 75+ MET-h/week. Doses are category
# midpoints (90 for the open top class, illustrative). Model:
#   log HR(x) = b1*min(x,k1) + b2*clip(x-k1, 0, k2-k1) + b3*max(x-k2, 0)
# with HR(0) = 1, fitted by inverse-variance weighted least squares over a
# grid of knots (k1, k2); the 3x3 normal equations are solved exactly.
import math
from fractions import Fraction
from statistics import NormalDist

Z = NormalDist().inv_cdf(0.975)
DATA = [(3.75, 0.80, 0.78, 0.82), (11.25, 0.69, 0.67, 0.70),
        (18.75, 0.63, 0.62, 0.65), (31.25, 0.61, 0.59, 0.62),
        (57.5, 0.61, 0.58, 0.64), (90.0, 0.68, 0.59, 0.78)]


def basis(x, k1, k2):
    return [min(x, k1), min(max(x - k1, 0.0), k2 - k1), max(x - k2, 0.0)]


def solve3(a, b):
    m = [[Fraction(v) for v in row] + [Fraction(r)]
         for row, r in zip(a, b)]
    for c in range(3):
        p = max(range(c, 3), key=lambda r: abs(m[r][c]))
        m[c], m[p] = m[p], m[c]
        for r in range(3):
            if r != c and m[c][c] != 0:
                f = m[r][c] / m[c][c]
                m[r] = [u - f * v for u, v in zip(m[r], m[c])]
    return [float(m[i][3] / m[i][i]) for i in range(3)]


def fit(k1, k2):
    rows = []
    for x, hr, lo, hi in DATA:
        se = (math.log(hi) - math.log(lo)) / (2 * Z)
        rows.append((basis(x, k1, k2), math.log(hr), 1 / se ** 2))
    a = [[math.fsum(w * f[i] * f[j] for f, y, w in rows)
          for j in range(3)] for i in range(3)]
    b = [math.fsum(w * f[i] * y for f, y, w in rows) for i in range(3)]
    beta = solve3(a, b)
    chi = math.fsum(w * (y - math.fsum(bi * fi for bi, fi in zip(beta, f)))
                    ** 2 for f, y, w in rows)
    return beta, chi


def loghr(x, beta, k1, k2):
    return math.fsum(b * f for b, f in zip(beta, basis(x, k1, k2)))


if __name__ == "__main__":
    best = None
    for i in range(2, 31):
        k1 = 1.0 * i
        for j in range(2, 18):
            k2 = 5.0 * j
            if k2 <= k1 + 5:
                continue
            beta, chi = fit(k1, k2)
            if best is None or chi < best[0]:
                best = (chi, k1, k2, beta)
    chi, k1, k2, beta = best
    print("best knots: k1 = %.0f, k2 = %.0f MET-h/week; chi2 = %.2f"
          % (k1, k2, chi))
    for n, b in zip(("below k1", "k1 to k2", "above k2"), beta):
        print("HR per +1 MET-h/week %-9s %.4f" % (n, math.exp(b)))
    print(" dose   observed   fitted")
    for x, hr, lo, hi in DATA:
        print("%5.2f   %8.2f   %6.3f"
              % (x, hr, math.exp(loghr(x, beta, k1, k2))))
    print("fitted HR at 7.5 MET-h/week: %.3f"
          % math.exp(loghr(7.5, beta, k1, k2)))

Single source and citation

Fan, Y. (2026). The Mortality Dose-Response of VO2max, Zone-2 Lactate Thresholds and the Metabolic Equivalents of the Five-Animal Frolics (Version 1.0.0), Chapter 3: Piecewise Log-Linear MET-Minutes: Knots and Ceilings in the Dose-Response. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-187 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026187,
  author    = {Fan, Yafu},
  title     = {The Mortality Dose-Response of VO2max, Zone-2 Lactate Thresholds and the Metabolic Equivalents of the Five-Animal Frolics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book