What does The Sleep Debt of Afternoon Tea conclude, in numbers, about “The Bateman Curve: One-Compartment Oral Absorption and One Calibrated Threshold”?
Answer: Chapter 2 uses the Bateman curve of one-compartment oral absorption and calibrates a night-exposure threshold of 0.6054 mg per litre on the coffee cut-off of the Gardiner meta-analysis; it predicts a pre-workout cut-off of 13.92 hours (13.2 in the paper), and the two published cut-offs imply a half-life of 4.30 hours.
Scope of the numbers: Except where a source is named, its parameters are illustrative; all calculations are generated by its programs. The book is not medical advice and claims no health effect; anyone planning a self-experiment should first consult a licensed physician.
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.6054, 13.2, 13.92, 4.30
| theta (mean mg/L, first 4 h of night) | 0.6054 |
| check: coffee 107 mg cut-off | 8.80 h |
| pre-workout 217.5 mg: model 13.92 h vs paper 13.2 h (+0.72) | |
| black tea 47 mg: model 2.87 h vs paper: no cut-off | |
| E at bedtime for tea drunk at bedtime | 0.8028 mg/L (1.33 x theta) |
| paper cut-offs differ by 4.4 h for a dose ratio of 2.033 | |
| half-life implied by the two cut-offs | 4.30 h |
| with that half-life: theta 0.4802, pre-workout 13.20 h, tea 3.70 h |
Key formula
Show the full program
# Chapter 2. p23: one threshold calibrated on Gardiner's coffee cut-off
# 暴露量 E(h) = 摄入后 h 至 h+4 小时(即入睡后前 4 小时)的平均血浆浓度。
# 用 Gardiner 2023 的咖啡截止点(107 mg,睡前 8.8 h)标定阈值 theta,
# 再预测其 217.5 mg 截止点(论文 13.2 h)与红茶 47 mg(论文:无截止点)。
# 两个截止点之差还反推出一个隐含半衰期。参数同 p21(示意)。
import math
KA, V, WIN = 3.0, 0.6 * 70.0, 4.0
def win_mean(h, dose, th, ka=KA, v=V, w=WIN):
ke = math.log(2.0) / th
a = dose * ka / (v * (ka - ke))
pe = (math.exp(-ke * h) - math.exp(-ke * (h + w))) / ke
pa = (math.exp(-ka * h) - math.exp(-ka * (h + w))) / ka
return a * (pe - pa) / w
def cutoff(dose, th, theta):
if win_mean(0.0, dose, th) <= theta:
return 0.0
lo, hi = 0.0, 72.0
for _ in range(200):
mid = (lo + hi) / 2.0
if win_mean(mid, dose, th) > theta:
lo = mid
else:
hi = mid
return (lo + hi) / 2.0
theta = win_mean(8.8, 107.0, 5.0)
print("theta (mean mg/L, first 4 h of night) = {:.4f}".format(theta))
print("check: coffee 107 mg cut-off = {:.2f} h".format(
cutoff(107.0, 5.0, theta)))
pw = cutoff(217.5, 5.0, theta)
print("pre-workout 217.5 mg: model {:.2f} h vs paper 13.2 h ({:+.2f})"
.format(pw, pw - 13.2))
print("black tea 47 mg: model {:.2f} h vs paper: no cut-off".format(
cutoff(47.0, 5.0, theta)))
print("E at bedtime for tea drunk at bedtime: {:.4f} mg/L ({:.2f} x theta)"
.format(win_mean(0.0, 47.0, 5.0), win_mean(0.0, 47.0, 5.0) / theta))
ke_imp = math.log(217.5 / 107.0) / (13.2 - 8.8)
print("paper cut-offs differ by {:.1f} h for a dose ratio of {:.3f}"
.format(13.2 - 8.8, 217.5 / 107.0))
th_imp = math.log(2.0) / ke_imp
print("half-life implied by the two cut-offs: {:.2f} h".format(th_imp))
theta2 = win_mean(8.8, 107.0, th_imp)
print("with that half-life: theta {:.4f}, pre-workout {:.2f} h,"
" tea {:.2f} h".format(theta2, cutoff(217.5, th_imp, theta2),
cutoff(47.0, th_imp, theta2)))Single source and citation
Fan, Y. (2026). Caffeine-Theanine Pharmacokinetics, Adenosine-Receptor Half-Lives and the Sleep Debt of Afternoon Tea (Version 1.0.0), Chapter 2: The Bateman Curve: One-Compartment Oral Absorption and One Calibrated Threshold. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-186 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026186,
author = {Fan, Yafu},
title = {Caffeine-Theanine Pharmacokinetics, Adenosine-Receptor Half-Lives and the Sleep Debt of Afternoon Tea},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Dose Gap: the Theanine in One Cup and Drake's Four Hundred Milligrams
- Chapter 3 · Fast and Slow: the CYP1A2 Half-Life Distribution and Stacked Doses
- Chapter 4 · Adenosine Receptors: Occupancy, Masked Pressure and Saturation
- Chapter 5 · Solving for the Last Cup: Threshold, Quantiles and the Day's Budget
- Chapter 6 · A Sleep-Debt Ledger: an Interval Bracketed by Three Loss Models
- Chapter 7 · Classics East and West: Lu Yu's Chapter on Drinking and Balzac's Treatise on Modern Stimulants
- Chapter 8 · Closing the Loop: Menu Labels, a Fourteen-Night A/B Test and Pre-Registered Refutation