What does Discrete Cyclical Networks and Occupancy Entropy conclude, in numbers, about “Practice and a Pre-Registered Test: A Four-Step Checklist and a Blind Permutation Backtest”?

Answer: The simulations (with the same daily model as the power program) show that if the true \(R = 1\) (no effect), 92.0 % of 600 simulated backtests conclude "an effect of 1.5 times or more is excluded", 3.0 % wrongly reach a "larger in opposition months" conclusion, 3.3 % are "unclear" and 1.7 % conclude "smaller in opposition months". If the true \(R = 1.5\), 85.8 % conclude "larger in opposition months; 1.5 times not shown" and 2.3 % reach the strongest conclusion, 88.1 % together, consistent with the design power of 90 % within the simulation error of about ±1.3 percentage points for 600 runs and the use of only 199 permutations; another 9.3 % are "unclear" and 2.5 % wrongly exclude an effect of 1.5 times.

Scope of the numbers: The book presents mathematical models for teaching and research; it is not investment, trading, tax or legal advice. Marked boxes separate published evidence, runnable Python calculations (17 programs, all checked), 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.122, 0.123, 1.20, 1.21, 1.25, 1.49

normal daily shocks: SD of yearly contrast 1.20, SE of D 0.122
power at R1.25: 45%, 1.5: 91%, 1.75: 100%
90 % power needs R >1.49; R = 1.25 would need 303 years
t(5) daily shocks: SD of yearly contrast 1.21, SE of D 0.123
power at R1.25: 44%, 1.5: 91%, 1.75: 100%
90 % power needs R >1.49; R = 1.25 would need 308 years
simulated permutation test (normal daily shocks), R1.0: rejects 2.3%
simulated permutation test (normal daily shocks), R1.5: rejects 89.8%
Show the full program
# Power of the Chapter 8 test on a FIXED 96 years of solar-term months built from DAILY
# returns. Synthetic daily GARCH(1,1) excess returns (normal or t(5) shocks, illustrative
# values), 21 trading days per solar-term month; every daily return in the opposition
# month is multiplied by R (the volatility process itself is unchanged). Month outcome
# log|month return|; D = mean yearly contrast; one-sided alpha 0.025; R = 1.5 = 1 + c.
import math, random
from statistics import NormalDist, stdev
YEARS, Y0, DAYS = 96, 6, 21
Z = NormalDist().inv_cdf

def history(rng, R=1.0, df=None, a=0.08, b=0.91):
    s2, ys, sq = 1.0, [], math.sqrt
    for T in range(12 * YEARS):
        y, m = divmod(T, 12); k = R if ((m + 2) - (y + Y0)) % 12 == 6 else 1.0
        tot = 0.0
        for _ in range(DAYS):
            z = rng.gauss(0, 1)
            if df:                                   # t(df) shock scaled to variance 1
                z /= sq(2 * rng.gammavariate(df / 2, 1) / (df - 2))
            x = sq(s2) * z; tot += k * x; s2 = (1 - a - b) + a * x * x + b * s2
        ys.append(math.log(abs(tot) + 1e-12))
    return ys

def contrasts(ys):
    c = [[12 / 11 * (ys[12 * j + m] - sum(ys[12 * j:12 * j + 12]) / 12)
          for m in range(12)] for j in range(YEARS)]
    sel = [next(m for m in range(12) if ((m + 2) - (j + Y0)) % 12 == 6)
           for j in range(YEARS)]
    return c, sel

if __name__ == "__main__":
    rng = random.Random(1930)
    for df in (None, 5):
        sds = []
        for _ in range(200):
            c, sel = contrasts(history(rng, df=df))
            sds.append(stdev([c[j][sel[j]] for j in range(YEARS)]))
        sd = sum(sds) / len(sds); se = sd / math.sqrt(YEARS)
        lab = "normal" if df is None else f"t({df})"
        pw = {r: 1 - NormalDist().cdf(Z(0.975) - math.log(r) / se)
              for r in (1.25, 1.5, 1.75)}
        mde = math.exp((Z(0.975) + Z(0.90)) * se)
        yrs = math.ceil(((Z(0.975) + Z(0.90)) * sd / math.log(1.25)) ** 2)
        print(f"{lab} daily shocks: SD of yearly contrast {sd:.2f}, SE of D {se:.3f}")
        print("   power at R = " + ", ".join(f"{r}: {p:.0%}" for r, p in pw.items()))
        print(f"   90 % power needs R >= {mde:.2f}; R = 1.25 would need {yrs} years")
    # Check by simulation with the pre-registered within-year permutation test.
    for R in (1.0, 1.5):
        rej = 0
        for _ in range(600):
            c, sel = contrasts(history(rng, R))
            d0 = sum(c[j][sel[j]] for j in range(YEARS)) / YEARS
            null = [sum(c[j][rng.randrange(12)] for j in range(YEARS)) / YEARS
                    for _ in range(199)]
            rej += (1 + sum(d >= d0 for d in null)) / 200 <= 0.025
        print(f"simulated permutation test (normal daily shocks), R = {R}:"
              f" rejects {rej / 600:.1%}")

Single source and citation

Fan, Y. (2026). Two-Scale Renormalization, Occupancy Entropy and Thrust-Wave Superposition in Discrete Cyclical Networks (Version 1.0.0), Chapter 8: Practice and a Pre-Registered Test: A Four-Step Checklist and a Blind Permutation Backtest. 5D Library. https://doi.org/10.5281/zenodo.23796761

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

BibTeX
@book{fan2026037,
  author    = {Fan, Yafu},
  title     = {Two-Scale Renormalization, Occupancy Entropy and Thrust-Wave Superposition in Discrete Cyclical Networks},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23796761},
  url       = {https://doi.org/10.5281/zenodo.23796761}
}

Other chapter answers in this book