What does Dendrobium officinale: Cultivation and Extract conclude, in numbers, about “Practice and a Pre-registered Trial”?
Answer: The protocol plans for 36 completers. If the within-person SD of the difference is 20 minutes, that gives about 83 % power to detect a 10-minute gain; 90 % power would need 44. It recruits 44 to allow for drop-out after the adaptation night. The SD is an assumption to be checked in a pilot of 10 people, and if the pilot shows it to be 25 minutes or more, the sample size will be recalculated before the main trial begins.
Scope of the numbers: Health notice: this book is not medical advice and does not claim that D. Marked boxes separate published evidence, runnable Python calculations (14 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: 20, 25, 36, 44, 83, 90
| SD of within-person difference 15 min | 20 people for 80 % power, 26 for 90 % |
| SD of within-person difference 20 min | 34 people for 80 % power, 44 for 90 % |
| SD of within-person difference 25 min | 51 people for 80 % power, 68 for 90 % |
| planned 36 completers, SD 20 min: power 83 % |
Show the full program
import math
from statistics import NormalDist
N = NormalDist()
def n_crossover(sd_diff, delta, alpha=0.05, power=0.90):
"""Two-period crossover: each person drinks both cups, in random order. One primary outcome,
two-sided alpha = 0.05."""
za, zb = N.inv_cdf(1 - alpha / 2), N.inv_cdf(power)
return math.ceil(((za + zb) * sd_diff / delta) ** 2 + za ** 2 / 2)
def power_at(n, sd_diff, delta, alpha=0.05):
za = N.inv_cdf(1 - alpha / 2)
return N.cdf(delta / sd_diff * math.sqrt(n - za ** 2 / 2) - za)
# Primary outcome: minutes of slow-wave sleep (N3) by polysomnography; smallest worthwhile gain 10 min.
for sd in (15, 20, 25):
print(f"SD of within-person difference {sd} min: {n_crossover(sd, 10, power=0.80)} people for 80 % power, "
f"{n_crossover(sd, 10)} for 90 %")
print(f"planned 36 completers, SD 20 min: power {100 * power_at(36, 20, 10):.0f} %")Single source and citation
Fan, Y. (2026). Ecological Cultivation, Stress-Induced Polysaccharide Synthesis and Fresh-Extract Rheology of Dendrobium officinale (Version 1.0.0), Chapter 8: Practice and a Pre-registered Trial. 5D Library. https://doi.org/10.5281/zenodo.23729740
DOI: 10.5281/zenodo.23729740 · Read the monograph · 5DL-B-012 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026012,
author = {Fan, Yafu},
title = {Ecological Cultivation, Stress-Induced Polysaccharide Synthesis and Fresh-Extract Rheology of Dendrobium officinale},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23729740},
url = {https://doi.org/10.5281/zenodo.23729740}
}