What does Cross-Border Dental Pricing and Escrow conclude, in numbers, about “Closing the Loop: The Comparison-and-Escrow Ledger, the Calculator and a Pre-Registered Test”?
Answer: Chapter 8 sets out the comparison-and-escrow ledger, the Cross-Border Service Total-Cost and Escrow Release Calculator and a pre-registered test plan: the total-cost test needs 71 paired records and the signal test 181 plans per group. Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.
Scope of the numbers: Its prices, probabilities and costs are illustrative and describe no real provider, country or price; all calculations are generated by its programs. It is general information on medicine, finance and law, not advice, and it makes no claim of benefit or success rate; plans must be decided in person with a licensed dentist or physician, and client money must be held by a licensed third party.
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: 181, 71
| z(0.975) | 1.9600, z(0.80) = 0.8416 |
| H1 paired, delta 500, sd 1,500: n | 71 |
| H2 rework 0.06 vs 0.15: n | 181 per group |
| simulated power at that size, 2,000 reps | 0.818 |
| H3 zero failures in n stages, upper bound < 0.0364: n | 81 |
| bound at that n | 0.0363 |
Show the full program
# Chapter 8. p82: sample sizes for the pre-registered one-year checks.
# H1 paired: realised minus ledger-predicted first-year extra cost,
# detect a mean shift of 500 U when the s.d. is 1,500 U.
# H2 two groups: rework within a year, clinics with >= 3 separating
# signals (0.06) against <= 1 signal (0.15); normal approximation,
# then a seeded simulation of the power at that size.
# H3 provider failure per stage: how many stages, all observed without
# a failure, push the exact one-sided 95 % upper bound below the
# escrow break-even 0.0364 of p53.
# alpha = 0.05 two-sided, power 0.80. Effect sizes illustrative.
import math
import random
from statistics import NormalDist
Z = NormalDist()
ZA, ZB = Z.inv_cdf(0.975), Z.inv_cdf(0.80)
n1 = math.ceil(((ZA + ZB) * 1500.0 / 500.0) ** 2)
print("z(0.975) = {:.4f}, z(0.80) = {:.4f}".format(ZA, ZB))
print("H1 paired, delta 500, sd 1,500: n = {}".format(n1))
p1, p2 = 0.06, 0.15
pb = 0.5 * (p1 + p2)
num = ZA * math.sqrt(2 * pb * (1 - pb)) + ZB * math.sqrt(
p1 * (1 - p1) + p2 * (1 - p2))
n2 = math.ceil((num / (p2 - p1)) ** 2)
print("H2 rework 0.06 vs 0.15: n = {} per group".format(n2))
rng = random.Random(20261120)
REPS, hits = 2000, 0
for _ in range(REPS):
a = 0
b = 0
for _ in range(n2):
a += rng.random() < p1
b += rng.random() < p2
pa, pbb = a / n2, b / n2
pp = (a + b) / (2 * n2)
se = math.sqrt(2 * pp * (1 - pp) / n2)
if se > 0 and abs(pa - pbb) / se > ZA:
hits += 1
print(" simulated power at that size, {:,} reps: {:.3f}".format(
REPS, hits / REPS))
n3 = 1
while 1.0 - 0.05 ** (1.0 / n3) >= 0.0364:
n3 += 1
print("H3 zero failures in n stages, upper bound < 0.0364: n = {}".format(
n3))
print(" bound at that n: {:.4f}".format(1.0 - 0.05 ** (1.0 / n3)))Single source and citation
Fan, Y. (2026). Cross-Border Dental and Wellness Service Pricing, Multi-Stage Quality Signalling and Client Escrow Mechanics (Version 1.0.0), Chapter 8: Closing the Loop: The Comparison-and-Escrow Ledger, the Calculator and a Pre-Registered Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-338 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026338,
author = {Fan, Yafu},
title = {Cross-Border Dental and Wellness Service Pricing, Multi-Stage Quality Signalling and Client Escrow Mechanics},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Illusion of the Sticker Gap: Expected Total Cost and the Rework Threshold
- Chapter 2 · The Upkeep Annuity: Wear, Discounting and the Year the Gap Turns Over
- Chapter 3 · Lemons and Price Signals: When a High Price Only Pools
- Chapter 4 · Credence Goods and Multi-Stage Signals: Credentials, Consecutive Cases and the Bayesian Posterior
- Chapter 5 · Staged Escrow: Stop Probability, Recovery Rate and the Review Holdback
- Chapter 6 · The Upkeep Reserve: Actuarial Values, the Reserve Curve and the Probability of Ruin
- Chapter 7 · Classical Sources East and West: Sun Simiao on Flaunting a Name, and Hammurabi on Payment by Result