What does Solar Terms, Thermal Lag and Seasonal Demand conclude, in numbers, about “The Arithmetic of the Dog Days: the Geng-Day Rule, the Heat Window and Thermal Mass”?
Answer: Chapter 3 lays out the three fu periods by the geng-day rule: their midpoint lies about eleven days after the Northern Hemisphere heat peak, but because the crest is flat they are on average only 0.245 degrees Celsius cooler.
Scope of the numbers: Parameters in this book are illustrative; all calculations are generated by the book's programs; the book is non-personalised business guidance, and its order dates are demonstrations that promise no sales to any merchant. Chapter 4 shows that "the hottest day" is a statistic dominated by weather noise: in illustrative data the single hottest day misses by 16.81 days, while the harmonic phase from three years of daily data misses by only 1.25 days.
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.245
| lag | fu span | fu mean | best mean | gap (C) | top-n in fu | centre gap |
|---|---|---|---|---|---|---|
| 27.5 | d 24-63 | 0.9435 | 0.9804 | 0.517 | 24/40 | +16.0 |
| 27.5 | d 29-58 | 0.9517 | 0.9890 | 0.521 | 14/30 | +16.0 |
| 32.5 | d 24-63 | 0.9629 | 0.9804 | 0.245 | 29/40 | +11.0 |
| 32.5 | d 29-58 | 0.9713 | 0.9890 | 0.247 | 19/30 | +11.0 |
| 44.0 | d 24-63 | 0.9804 | 0.9804 | 0.000 | 40/40 | -0.5 |
| 44.0 | d 29-58 | 0.9889 | 0.9889 | 0.000 | 30/30 | -0.5 |
| model anomaly at Dashu (d = 31.45), lag 32.5: 0.9998 | ||||||
| model anomaly at Liqiu (d = 47.14), lag 32.5: 0.9685 |
Show the full program
# Chapter 3. p32: do the fu days sit on the hottest stretch?
# Steady first-order model in days after Xiazhi (d = 0): the seasonal
# temperature anomaly is A cos(w (d - L)), L = arctan(w tau) / w. The
# fu spans are those of p31: 40 days from d = 24 (2024, 2026) and 30
# days from d = 29 (2025, 2027). For each lag L (Trenberth 1983 values
# 27.5, 32.5, 44 days) the program compares the mean anomaly inside
# the fu span with the best window of equal length, and counts how
# many of the n hottest model days fall inside the fu span. The
# amplitude A = 14.0 C is illustrative, a continental mid-latitude
# order of magnitude, not a measured value for any city.
import math
YEAR = 365.2422
W = 2 * math.pi / YEAR
AMP = 14.0
SPANS = [(24, 40), (29, 30)]
def anomaly(d, lag):
return math.cos(W * (d - lag))
def mean_over(first, n, lag):
return math.fsum(anomaly(first + i, lag) for i in range(n)) / n
if __name__ == "__main__":
print("lag fu span fu mean best mean gap (C) top-n in fu"
" centre gap")
for lag in (27.5, 32.5, 44.0):
for first, n in SPANS:
fu = mean_over(first, n, lag)
days = list(range(-60, 150))
best_first = max(days, key=lambda f: mean_over(f, n, lag))
best = mean_over(best_first, n, lag)
hot = sorted(days, key=lambda d: (-anomaly(d, lag), d))[:n]
inside = len([d for d in hot if first <= d < first + n])
centre = first + (n - 1) / 2 - lag
print("{:4.1f} d{:>3}-{:<3} {:7.4f} {:9.4f} {:7.3f}"
" {:5d}/{:<3} {:+6.1f}".format(
lag, first, first + n - 1, fu, best,
AMP * (best - fu), inside, n, centre))
lag = 32.5
print("model anomaly at Dashu (d = 31.45), lag 32.5: {:.4f}".format(
anomaly(31.45, lag)))
print("model anomaly at Liqiu (d = 47.14), lag 32.5: {:.4f}".format(
anomaly(47.14, lag)))Single source and citation
Fan, Y. (2026). Temperature Phase Lag across the Twenty-Four Solar Terms, First-Order Thermal Inertia behind the Dog Days and Seasonal Demand Forecasting (Version 1.0.0), Chapter 3: The Arithmetic of the Dog Days: the Geng-Day Rule, the Heat Window and Thermal Mass. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-232 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026232,
author = {Fan, Yafu},
title = {Temperature Phase Lag across the Twenty-Four Solar Terms, First-Order Thermal Inertia behind the Dog Days and Seasonal Demand Forecasting},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Solstice Is Not the Hottest Day: First-Order Thermal Inertia and the Phase Lag arctan(ωτ)
- Chapter 2 · Fifteen Degrees a Step: Solar Longitude, the Twenty-Four Terms and the Sinusoid of Sunshine
- Chapter 4 · Harmonic Regression: Estimating Amplitude and Phase from Daily Readings
- Chapter 5 · The Phase of Demand: Regressing Demand on Temperature, and the Misplaced Nominal Season
- Chapter 6 · The Price of a Phase Error: Order Timing under the Newsvendor Model
- Chapter 7 · Classical Sources East and West: the Shi Xun Chapter of the Yi Zhou Shu and Hesiod's Works and Days
- Chapter 8 · Closing the Loop: the Solar-Term Order Calendar, Store Scheduling and a Pre-Registered Test