What does Rotating Qimen and Liuyao Business Verdicts conclude, in numbers, about “Practice: Reading an Hour Chart, a Liuyao Cast, and a Pre-Registered Business Forecast Test”?
Answer: Chapter 8 demonstrates the look-up on a sample hour chart that contains no birth data and on one business cast, and gives a pre-registered business forecast test: forecasts are scored by the Brier score against the base rate, and raising the direction hit rate from 0.50 to 0.60 needs 158 forecasts. Marked boxes separate published evidence, runnable Python calculations, classical sources and the author's hypotheses.
Scope of the numbers: 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.50, 0.60, 158
| (1) event: receivable in full by the agreed date | |
| outcome yes: chart forecast 0.30 Brier 0.4900 log 1.2040; base rate 0.60 Brier 0.1600 log 0.5108 | |
| outcome no : chart forecast 0.30 Brier 0.0900 log 0.3567; base rate 0.60 Brier 0.3600 log 0.9163 | |
| (2) always the base rate p: mean Brier p(1-p) | |
| p | 0.50: 0.2500 |
| p | 0.60: 0.2400 |
| p | 0.70: 0.2100 |
| (3) stated q, true hit frequency h: mean Brier | |
| h q | 0.70 q=0.80 q=0.90 q=h |
| 0.55 | 0.2700 0.3100 0.3700 0.2475 |
| 0.60 | 0.2500 0.2800 0.3300 0.2400 |
| 0.65 | 0.2300 0.2500 0.2900 0.2275 |
| 0.70 | 0.2100 0.2200 0.2500 0.2100 |
| (4) direction calls, exact binomial, alpha 0.05, power 0.80 | |
| base-rate hit 0.50, true hit 0.55: N | 620 |
| base-rate hit 0.50, true hit 0.60: N | 158 |
| base-rate hit 0.60, true hit 0.65: N | 585 |
| base-rate hit 0.60, true hit 0.70: N | 143 |
Show the full program
# Chapter 8. p07: Scoring pre-registered business forecasts, and how many.
# Each forecast is a probability q, written down before the outcome, for
# a precisely defined yes/no event ("at least 95 per cent of the invoice
# received by the agreed date"). Brier score (q - y)^2 and log score
# -ln(prob given to what happened); lower is better for both. The rival
# is the base rate: the share of such events that came true in the
# firm's own past records. (1) The sample cast's forecast against a base
# rate of 0.60. (2) What an always-base-rate forecaster scores on
# average, p(1 - p). (3) A reader who states q for the side the chart
# favours and is right with frequency h scores h(1-q)^2 + (1-h)q^2.
# (4) Direction calls: smallest N for which a one-sided exact binomial
# test at alpha 0.05 has power 0.80 against a true hit rate p1 when the
# base-rate rule hits p0 (scan from below the normal-theory N).
from math import exp, lgamma, log, sqrt
from statistics import NormalDist
def tail(n, c, p):
lp, lq = log(p), log(1 - p)
return sum(exp(lgamma(n + 1) - lgamma(x + 1) - lgamma(n - x + 1)
+ x * lp + (n - x) * lq) for x in range(c, n + 1))
def n_needed(p0, p1, alpha=0.05):
z = NormalDist().inv_cdf
na = ((z(1 - alpha) * sqrt(p0 * (1 - p0)) + z(0.80) *
sqrt(p1 * (1 - p1))) / (p1 - p0)) ** 2
n = max(10, int(0.8 * na))
while True:
c = int(n * p0)
while tail(n, c, p0) > alpha:
c += 1
if tail(n, c, p1) >= 0.80:
return n
n += 1
if __name__ == "__main__":
q, base = 0.30, 0.60
print(" (1) event: receivable in full by the agreed date")
for y in (1, 0):
print(" outcome {}: chart forecast {:.2f} Brier {:.4f} log {:.4f};"
" base rate {:.2f} Brier {:.4f} log {:.4f}".format(
"yes" if y else "no ", q, (q - y) ** 2,
-log(q if y else 1 - q), base, (base - y) ** 2,
-log(base if y else 1 - base)))
print(" (2) always the base rate p: mean Brier p(1-p)")
for p in (0.50, 0.60, 0.70):
print(" p = {:.2f}: {:.4f}".format(p, p * (1 - p)))
print(" (3) stated q, true hit frequency h: mean Brier")
print(" h q=0.70 q=0.80 q=0.90 q=h")
for h in (0.55, 0.60, 0.65, 0.70):
print(" {:.2f} ".format(h) + " ".join(
"{:.4f}".format(h * (1 - s) ** 2 + (1 - h) * s ** 2)
for s in (0.70, 0.80, 0.90, h)))
print(" (4) direction calls, exact binomial, alpha 0.05, power 0.80")
for p0, p1 in ((0.50, 0.55), (0.50, 0.60), (0.60, 0.65), (0.60, 0.70)):
print(" base-rate hit {:.2f}, true hit {:.2f}: N = {}".format(
p0, p1, n_needed(p0, p1)))Single source and citation
Fan, Y. (2026). The Rotating Qimen Chaibu and Liuyao Najia Codex of Business Verdicts (Version 1.0.0), Chapter 8: Practice: Reading an Hour Chart, a Liuyao Cast, and a Pre-Registered Business Forecast Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-121 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026121,
author = {Fan, Yafu},
title = {The Rotating Qimen Chaibu and Liuyao Najia Codex of Business Verdicts},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Method: Chaibu Bureaus, Four Rotating Plates and the Hundred Patterns Defined
- Chapter 2 · Nine Stars, Eight Doors, Eight Spirits: Twenty-Five Symbols Read for Business and Love
- Chapter 3 · The Ten-Stem Responses, Part One: Wu, Ji and Geng over the Nine Stems
- Chapter 4 · Stem Overlays (II): Xin, Ren and Gui over the Nine Stems
- Chapter 5 · The Three Wonders Arrive: The 27 Overlays of Ding, Bing and Yi on the Heaven Plate
- Chapter 6 · The Nineteen Named Patterns: Detection Rules, Real Frequencies and Verdicts
- Chapter 7 · Six-Line Najia: Forty-Eight Cells of Relation and Move