What does Psychophysics and Multisensory Integration conclude, in numbers, about “Practice and a Pre-Registered Trial”?

Answer: The four-step checklist asks in turn whether a design depends on a single channel that may fail, whether weak signals have synchronous support from a second channel, whether the audiovisual timing difference lies within the asymmetric window (sound no more than about 45 ms early or 125 ms late), and how much of the time the learner explores actively. The pre-registered trial compares, under identical audiovisual conditions, "real-time pitch or formant error encoded as forearm vibration" with "the same device not vibrating", measured by pitch-imitation error without feedback 24 hours later. It has a single primary outcome in cents; an external pilot of 20 people followed by a sample-size rule written as code (standard deviation at its 80 % upper confidence limit, smallest effect of interest fixed at 20 cents, 150 to 350 per arm), with a plan of 191 analysable participants per arm (225 recruited); a decision rule written as code; safety provisions for vocal load and vibration; and it will be published whatever the result.

Scope of the numbers: This book is not medical advice and cannot diagnose any sensory or neurological condition. Marked boxes separate published evidence, runnable Python calculations (17 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: 150, 191, 20, 225, 350, 80

check16% poor-pitch singers (229 c), rest 30 c -> mean 61 c; split alone gives SD 72 c
plan: SD 75, r 0.6, SESOI 20 (d0.27), 90 % power: 191 per arm, recruit 225 (450)
analysable per arm SESOI 1520 30
SD 60, r 0.4284 160 72
SD 60, r 0.6217 123 55
SD 75, r 0.4443 250 112
SD 75, r 0.6338 191 86
SD 90, r 0.4637 359 160
SD 90, r 0.6486 274 123
pilot of 10 per arm: SE of an arm difference about 27 c (SESOI 20)
80 % upper limit with df 18: SD x 1.183, so n x 1.40
pilot SD, r -> SD used, r used -> n per arm -> clamped -> recruit (all)
50, 0.6559.2, 0.60 -> 119 -> 150 -> 177 (354)
60, 0.7071.0, 0.60 -> 171 -> 171 -> 202 (404)
75, 0.6088.7, 0.60 -> 266 -> 266 -> 313 (626)
90, 0.45106.5, 0.45 -> 477 -> 350 -> 412 (824)
true benefit0.0: P(some benefit verdict) 0.028, P(benefit >= SESOI shown) 0.000
true benefit 20.0: P(some benefit verdict) 0.908, P(benefit >= SESOI shown) 0.026
true benefit 40.0: P(some benefit verdict) 1.000, P(benefit >= SESOI shown) 0.894

Key formula

\[e = 1200\,\log_2\frac{f_0}{f_t},\]
Show the full program
# Sample size for the Chapter 8 trial, with a pre-registered re-estimation rule.
# Primary outcome: mean absolute pitch error (cents) when imitating 5 target notes,
# 24 h after training, without feedback. Planning values, all ASSUMED:
#   SD between people 75 cents (published means only; see the check below),
#   correlation with baseline r 0.6, smallest effect of interest (SESOI) 20 cents,
#   two-sided alpha 0.05, 90 % power, 15 % loss. ANCOVA on the baseline shrinks the
#   variance by (1 - r^2) (Borm, Fransen & Lemmens 2007).
# Pilot rule: external pilot, n = 20 (10 per arm), never in the main analysis. An
# independent statistician reports only the pooled within-arm SD (df 18) and r.
# SD used = one-sided 80 % upper confidence limit (Browne 1995); r used = pilot r, but
# never above the planned 0.6 nor below 0. SESOI stays 20: the pilot never estimates
# the effect. Final n is clamped to [150, 350] analysable per arm.
import math, random
from statistics import NormalDist
N = NormalDist()
SESOI, LOSS, N_MIN, N_MAX = 20.0, 0.15, 150, 350

def per_arm(sd, delta, r, alpha=0.05, power=0.90):
    z = N.inv_cdf(1 - alpha / 2) + N.inv_cdf(power)    # +1 below ~ t correction z_a^2/4
    return math.ceil(2 * z ** 2 * sd ** 2 * (1 - r ** 2) / delta ** 2) + 1

def chi2_cdf(x, k):                          # regularised lower gamma P(k/2, x/2), series
    a, y = k / 2, x / 2
    term = total = 1 / a
    for i in range(1, 500):
        term *= y / (a + i); total += term
    return total * math.exp(-y + a * math.log(y) - math.lgamma(a))

def chi2_ppf(p, k):
    lo, hi = 1e-9, 10 * k + 100
    for _ in range(100):
        mid = (lo + hi) / 2
        lo, hi = (mid, hi) if chi2_cdf(mid, k) < p else (lo, mid)
    return (lo + hi) / 2

def reestimate(s, r, df=18, conf=0.80):
    s_up = s * math.sqrt(df / chi2_ppf(1 - conf, df))
    r_use = min(max(r, 0.0), 0.6)
    n = per_arm(s_up, SESOI, r_use)
    return s_up, r_use, n, min(max(n, N_MIN), N_MAX)

def simulate(rng, n, true_diff, sd=75.0, r=0.6, sims=3000):
    benefit = strongest = 0
    for _ in range(sims):
        arms = []
        for shift in (0.0, -true_diff):                     # arm A lowers the error
            xs = [rng.gauss(0, sd) for _ in range(n)]
            ys = [r * x + rng.gauss(shift, sd * math.sqrt(1 - r * r)) for x in xs]
            arms.append((xs, ys))
        cx = [[x - sum(xs) / n for x in xs] for xs, _ in arms]   # centre within arms
        cy = [[y - sum(ys) / n for y in ys] for _, ys in arms]
        b = sum(x * y for a, c in zip(cx, cy) for x, y in zip(a, c)) \
            / sum(x * x for a in cx for x in a)
        adj = [sum(y - b * x for x, y in zip(xs, ys)) / n for xs, ys in arms]
        d = adj[0] - adj[1]                       # B minus A: positive = A better
        rss = sum((y - b * x) ** 2 for a, c in zip(cx, cy) for x, y in zip(a, c))
        lo = d - 1.96 * math.sqrt(rss / (2 * n - 3) * 2 / n)
        benefit += lo > 0; strongest += lo >= SESOI
    return benefit / sims, strongest / sims

if __name__ == "__main__":
    p, good, poor = 7 / 45, 30.0, 229.0           # Pfordresher & Brown 2007, Exp. 2
    print(f"check: {p:.0%} poor-pitch singers (229 c), rest 30 c -> mean"
          f" {p * poor + (1 - p) * good:.0f} c; split alone gives SD"
          f" {math.sqrt(p * (1 - p)) * (poor - good):.0f} c")
    n = per_arm(75, SESOI, 0.6); rec = math.ceil(n / (1 - LOSS))
    print(f"plan: SD 75, r 0.6, SESOI 20 (d = {20 / 75:.2f}), 90 % power: {n} per arm,"
          f" recruit {rec} ({2 * rec})")
    print("analysable per arm      SESOI 15     20     30")
    for sd in (60, 75, 90):
        for r in (0.4, 0.6):
            print(f"  SD {sd}, r {r:.1f} {'':8s}"
                  + "".join(f"{per_arm(sd, dl, r):7d}" for dl in (15, 20, 30)))
    se = 75 * math.sqrt(2 / 10) * math.sqrt(1 - 0.36)
    print(f"pilot of 10 per arm: SE of an arm difference about {se:.0f} c (SESOI 20)")
    k = math.sqrt(18 / chi2_ppf(0.20, 18))
    print(f"80 % upper limit with df 18: SD x {k:.3f}, so n x {k * k:.2f}")
    print("pilot SD, r -> SD used, r used -> n per arm -> clamped -> recruit (all)")
    for s, r in ((50, 0.65), (60, 0.70), (75, 0.60), (90, 0.45)):
        s_up, r_lo, raw, n2 = reestimate(s, r)
        rec2 = math.ceil(n2 / (1 - LOSS))
        print(f"  {s:4d}, {r:.2f} -> {s_up:5.1f}, {r_lo:.2f} -> {raw:4d} -> {n2:3d}"
              f" -> {rec2} ({2 * rec2})")
    rng = random.Random(2026)
    for true in (0.0, 20.0, 40.0):
        p_any, p_top = simulate(rng, n, true)
        print(f"true benefit {true:4.1f}: P(some benefit verdict) {p_any:.3f},"
              f" P(benefit >= SESOI shown) {p_top:.3f}")

Single source and citation

Fan, Y. (2026). Psychophysics, the Weber-Fechner Law and Optimal Bayesian Multisensory Integration (Version 1.0.0), Chapter 8: Practice and a Pre-Registered Trial. 5D Library. https://doi.org/10.5281/zenodo.23788548

DOI: 10.5281/zenodo.23788548 · Read the monograph · 5DL-B-034 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026034,
  author    = {Fan, Yafu},
  title     = {Psychophysics, the Weber-Fechner Law and Optimal Bayesian Multisensory Integration},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23788548},
  url       = {https://doi.org/10.5281/zenodo.23788548}
}

Other chapter answers in this book