What does Flying-Star Light, Sound and Timing conclude, in numbers, about “Practice: Sample House A, Sample Chart A and a Pre-Registered Test”?
Answer: Chapter 8 takes sample house A and sample chart A through the whole procedure and gives a pre-registered test: two primary sleep outcomes and an effect size of 0.3 need 109 households; with only three declared axes, 0.25-degree core windows cover 0.0328 of weeks, while counting all 156 contacts they cover 0.5796. Marked boxes separate published evidence, runnable Python calculations, classical sources and the author's hypotheses.
Scope of the numbers: Both traditions are stated exactly and computed to the end by their own arithmetic; the combination of the three is the book's prescription and a testable hypothesis, not a demonstrated effect. Marked boxes separate published evidence, runnable Python calculations, 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.0328, 0.25, 0.3, 0.5796, 109, 156
| test 1, homes needed (crossover) | |
| d_z alpha 0.05 alpha 0.025 | |
| 0.5 | 34 41 |
| 0.3 | 90 109 |
| 0.2 | 199 241 |
| test 2, people needed (26 logged weeks each) | |
| d icc 0.3 icc 0.5 icc 0.7 | |
| 0.3 | 30 47 65 |
| 0.2 | 66 104 142 |
| share of weeks inside at least one window | |
| all 156 contacts orb 1.50 | 0.9945 orb 1.00: 0.9688 orb 0.25: 0.5796 |
| 3 declared axes orb 1.50 | 0.1813 orb 1.00: 0.1248 orb 0.25: 0.0328 |
Show the full program
# Chapter 8. p07: Sample sizes for the pre-registered test of the book.
# Test 1 (space). Crossover, each home lives 4 weeks under the chart-dealt
# zone uses and 4 weeks under a sham dealing (the chart of the opposite
# sitting mountain), both with the SAME light and sound targets, order
# randomised. Outcomes by wrist actigraphy (sleep efficiency, sleep onset
# latency) and a pre-declared task-output count. Paired effect size d_z;
# n = ((z_a + z_b) / d)^2 + z_a^2 / 2, two-sided alpha 0.05 (or 0.025
# for two primary outcomes), power 0.80.
# Test 2 (time). Each person's weekly output inside the core windows of
# their own chart against the windows of a chart drawn from another
# participant (blind, as in Carlson 1985). Weeks per person w, intraclass
# correlation icc; design effect 1 + (w - 1) icc on the person count.
# Last part: with k directed contacts each open 2 orb / 90 of the time,
# the share of weeks under at least one window is 1 - exp(-2 k orb / 90).
from math import ceil, exp
Z = {0.05: 1.9600, 0.025: 2.2414}
ZB = 0.8416
def n_paired(d, alpha):
za = Z[alpha]
return ceil(((za + ZB) / d) ** 2 + za ** 2 / 2)
def n_people(d, weeks, icc, alpha=0.05):
deff = 1 + (weeks - 1) * icc
return ceil(n_paired(d, alpha) * deff / weeks)
if __name__ == "__main__":
print(" test 1, homes needed (crossover)")
print(" d_z alpha 0.05 alpha 0.025")
for d in (0.5, 0.3, 0.2):
print(" {:.1f} {:10d} {:11d}".format(d, n_paired(d, 0.05), n_paired(d, 0.025)))
print("\n test 2, people needed (26 logged weeks each)")
print(" d icc 0.3 icc 0.5 icc 0.7")
for d in (0.3, 0.2):
print(" {:.1f} {:7d} {:7d} {:7d}".format(
d, *[n_people(d, 26, icc) for icc in (0.3, 0.5, 0.7)]))
print("\n share of weeks inside at least one window")
for k, label in ((156, "all 156 contacts"), (6, "3 declared axes")):
print(" {:16s} ".format(label) + " ".join(
"orb {:.2f}: {:.4f}".format(o, 1 - exp(-2 * k * o / 90))
for o in (1.5, 1.0, 0.25)))Single source and citation
Fan, Y. (2026). The Xuankong Flying-Star Sound-and-Light Field and Hamburg Midpoint Timing Codex (Version 1.0.0), Chapter 8: Practice: Sample House A, Sample Chart A and a Pre-Registered Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-122 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026122,
author = {Fan, Yafu},
title = {The Xuankong Flying-Star Sound-and-Light Field and Hamburg Midpoint Timing Codex},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Method: Twenty-Four Mountains, Three Layers of Stars, Light and Sound Targets, and the 90-Degree Dial
- Chapter 2 · The Twenty-Four Houses of Period 9: A Sound and Light Prescription for Each
- Chapter 3 · The Twenty-Four Houses of Period 8: Sound and Light Fields of the Older Stock, and the Re-layout for Period 9
- Chapter 4 · The Nine Numbers as Sound and Light Fields: Illuminance, Colour Temperature and Sound Level
- Chapter 5 · The Eighty-One Pairs: Stillness and Movement in Every Palace
- Chapter 6 · The Seventy-Eight Axes: What to Schedule, What to Avoid, How Long the Window Lasts
- Chapter 7 · Synthesis: A Zone's Star Pair, a Timing Window and One Week's Prescription