5D Library › Xuankong Flying-Star Permutations, Twenty-Four-Mountain Compass Discretization and Craniofacial Ratio Metrology · 中文
Chapter 8. A Ten-Flag Audit and a Pre-Registered Blind Paired Test
Ten questions
This chapter turns the book into ten questions a script can check against any feng shui chart or face reading service, the author’s own products included. They judge no reading’s fortune.
- Is the replacement-chart convention left unstated? (Chapter 2)
- Is it left unstated whether true or magnetic north is meant? (Chapter 3)
- Is the compass error above 2 degrees with a single reading? (Chapter 3)
- Is a facing within 3 degrees of a boundary left unmarked? (Chapter 3)
- Is a face read from a photo taken nearer than 3.8 m? (Chapter 4)
- Is landmark error above 1 pixel while bands are used to classify? (Chapter 5)
- Are more than ten ratios scanned for “something special”? (Chapter 5)
- Does the evidence come from testimonials only? (Chapter 6)
- Are outcomes compared without stratifying by orientation? (Chapter 6)
- Are no specific, dated predictions recorded? (Chapter 6)
The audit as a program
The program writes the ten questions as ten automatic flags and applies them to two illustrative services: a “naive” one (common practice) and an “audited” one corrected chapter by chapter in this book.
Calculation
# Chapter 8. p15: Ten automatic flags for a chart or face reading.
# Each flag is a yes / no check on how a reading was made; the
# chapter of this book that supplies the threshold is in brackets.
# Two illustrative services: "naive" (common practice) and "audited"
# (after the corrections of this book).
FLAGS = [
("replacement-chart convention not stated [2]",
lambda s: not s["ti_convention"]),
("true or magnetic north not stated [3]",
lambda s: not s["north_stated"]),
("compass error above 2 degrees, single reading [3]",
lambda s: s["sigma_deg"] > 2 and s["readings"] < 3),
("facing within 3 degrees of an edge, not flagged [3]",
lambda s: not s["edge_flag"]),
("face read from a photo taken nearer than 3.8 m [4]",
lambda s: s["photo_cm"] < 377.5),
("landmark error above 1 px with band thresholds [5]",
lambda s: s["landmark_px"] > 1 and s["bands"]),
("more than ten ratios scanned for something special [5]",
lambda s: s["ratios"] > 10),
("evidence from testimonials only [6]",
lambda s: s["testimonials_only"]),
("outcomes compared without stratifying by facing [6]",
lambda s: not s["stratified"]),
("no specific, dated predictions recorded [6]",
lambda s: not s["specific"]),
]
SERVICES = {
"naive": dict(ti_convention=False, north_stated=False, sigma_deg=4,
readings=1, edge_flag=False, photo_cm=30,
landmark_px=3, bands=True, ratios=20,
testimonials_only=True, stratified=False,
specific=False),
"audited": dict(ti_convention=True, north_stated=True, sigma_deg=2,
readings=3, edge_flag=True, photo_cm=400,
landmark_px=1, bands=False, ratios=5,
testimonials_only=False, stratified=True,
specific=True),
}
if __name__ == "__main__":
for name, sv in SERVICES.items():
hits = [f for f, test in FLAGS if test(sv)]
print(" {}: {} of {} flags".format(name, len(hits), len(FLAGS)))
for f in hits:
print(" [x] " + f)
print("\nReading: the naive service trips every flag. The audited one")
print("trips none, which means only that its readings are")
print("reproducible; whether they predict anything is the question")
print("of the blind test in p16.")
# naive: 10 of 10 flags
# [x] replacement-chart convention not stated [2]
# [x] true or magnetic north not stated [3]
# [x] compass error above 2 degrees, single reading [3]
# [x] facing within 3 degrees of an edge, not flagged [3]
# [x] face read from a photo taken nearer than 3.8 m [4]
# [x] landmark error above 1 px with band thresholds [5]
# [x] more than ten ratios scanned for something special [5]
# [x] evidence from testimonials only [6]
# [x] outcomes compared without stratifying by facing [6]
# [x] no specific, dated predictions recorded [6]
# audited: 0 of 10 flags
#
# Reading: the naive service trips every flag. The audited one
# trips none, which means only that its readings are
# reproducible; whether they predict anything is the question
# of the blind test in p16.The naive service trips all ten flags. The audited one trips none, but that says only that its readings are reproducible, not that they predict anything. Only a test can answer that.
A pre-registered blind paired test
Hypothesis · not established
Test protocol. Homes are paired on facing half, city and build period; in each pair one household had the better pre-registered outcome over three years. A practitioner sees only the two floor plans, facings and build years and picks the home predicted to do better. Without skill the hit rate is 0.5. Exact binomial test, two-sided 0.05. Carried out with pre-registered code by an independent analyst with no financial relationship with the author; results published whether positive or negative.
Calculation
# Chapter 8. p16: A pre-registered blind test of chart readings.
# Pairs of homes are matched on facing half, city and build period;
# within each pair, one household had the better pre-registered
# outcome over three years. A practitioner sees only the two floor
# plans, facings and build years, and picks the home predicted to do
# better. Under no skill the hit rate is 0.5. Exact binomial test,
# two-sided 0.05: the program finds the critical number of hits for n
# pairs and the exact power when the true hit rate is 0.55, 0.60 or
# 0.65, and the smallest n giving power 0.80 for each.
import math
def pmf(n, k, p):
return math.comb(n, k) * p ** k * (1 - p) ** (n - k)
def critical(n):
tail, k = 0.0, n
while k >= 0:
t = tail + pmf(n, k, 0.5)
if 2 * t > 0.05:
return k + 1
tail, k = t, k - 1
return 0
def power(n, p):
c = critical(n)
return sum(pmf(n, k, p) for k in range(c, n + 1))
if __name__ == "__main__":
print(" pairs hits needed power at 0.55 0.60 0.65")
for n in (50, 100, 200, 400, 800):
print(" {:5d} {:13d} {:15.4f} {:7.4f} {:7.4f}".format(
n, critical(n), power(n, 0.55), power(n, 0.60),
power(n, 0.65)))
print()
for p in (0.65, 0.60, 0.55):
n = 10
while power(n, p) < 0.80:
n += 2
print(" true hit rate {:.2f}: {} pairs for power 0.80".format(p, n))
print("\nReading: a practitioner who is right 65 times in 100 can")
print("show it with under a hundred pairs; a modest edge of 0.55")
print("needs several hundred. Either way the test is cheap compared")
print("with a lifetime of untested readings.")
# pairs hits needed power at 0.55 0.60 0.65
# 50 33 0.0765 0.2369 0.5060
# 100 61 0.1343 0.4621 0.8276
# 200 115 0.2617 0.7868 0.9884
# 400 221 0.4806 0.9762 1.0000
# 800 429 0.7932 0.9999 1.0000
#
# true hit rate 0.65: 90 pairs for power 0.80
# true hit rate 0.60: 204 pairs for power 0.80
# true hit rate 0.55: 786 pairs for power 0.80
#
# Reading: a practitioner who is right 65 times in 100 can
# show it with under a hundred pairs; a modest edge of 0.55
# needs several hundred. Either way the test is cheap compared
# with a lifetime of untested readings.With 100 pairs, 61 hits are needed for significance; if the true hit rate is 0.65, the power is 0.8276. Power 0.80 needs 90 pairs at a true hit rate of 0.65, 204 at 0.60 and 786 at 0.55. For a method that claims to see the fortune of a house, this is a cheap test.
Summary
Ten questions (replacement convention, choice of north, compass error, marking of edges, camera distance, landmark error, number of ratios, testimonials, stratification and specific predictions) can all be written as an automatic audit. A test of whether charts predict outcomes should use a blind design with pairs matched on orientation; a few hundred pairs of homes are enough to answer the question.
Fan, Y. (2026). Xuankong Flying-Star Permutations, Twenty-Four-Mountain Compass Discretization and Craniofacial Ratio Metrology: Lo-Shu Orbit Cycles, Magnetic Declination Flip Rates and Landmark Measurement Error Propagation [玄空飞星置换代数、二十四山罗盘离散化与骨相比例计量] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090215 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).