What does Degrees of Freedom and Motor Synergies conclude, in numbers, about “Practice and a Pre-Registered Trial”?

Answer: The sample size rests on the following assumptions (all assumed values, not estimates from any study): an SD of transfer error of 4.0 mm; a correlation of 0.5 between pre-practice error and transfer error (ANCOVA multiplies the variance by \(1 - 0.5^2\)); a smallest effect of interest of 1.5 mm (about 0.375 SD), two-sided \(\alpha = 0.05\) and 90 % power. Each arm needs 113 analysable participants; allowing for about 15 % missing data, 133 are recruited per arm, 266 in all. The 80 % power alternative is 84 analysable per arm. Sensitivity: with an SD of 3.5–4.5 mm and a correlation of 0.3–0.6, 74 to 173 per arm are needed; with a smallest effect of interest of 1.0 mm, 165 to 388. ANCOVA on 2,000 simulated trials gives a power of 0.896, in agreement with the formula; with no true difference, "intervention better" is wrongly concluded in 2.4 %.

Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (14 programs, all checked), classical sources and the author's hypotheses; all data in the book are fictional or simulated.

中文版

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.3, 0.5, 0.6, 0.896, 1.0, 1.5

main plan113 analysable per arm, 133 recruited per arm, 266 in all
80 % power alternative84 analysable per arm
sensitivity (analysable per arm, power 90 %):
SD rho SESOI 1.0 SESOI 1.5 SESOI 2.0
3.50.3 235 105 59
3.50.5 194 86 49
3.50.6 165 74 42
4.00.3 306 136 77
4.00.5 253 113 64
4.00.6 216 96 54
4.50.3 388 173 97
4.50.5 320 142 80
4.50.6 273 122 69
simulated power, true difference 1.5 mm (n113): 0.896
simulated power, true difference 0.4 mm (n113): 0.130
simulated power, true difference 0.0 mm (n113): 0.024
0.4 mm0.1 SD, the order of a bias-corrected average focus effect
Show the full program
# Chapter 8 trial: sample size. Primary outcome: RMS cursor-tracking error (mm) on a
# NEW trajectory 24 h after practice, without augmented feedback (transfer), analysed
# by ANCOVA with the pre-practice RMS error as covariate. Assumptions (not estimates):
# SD 4.0 mm, baseline-outcome correlation 0.5, smallest effect of interest 1.5 mm,
# two-sided alpha 0.05, power 90 %, 15 % attrition. Part 2 checks power by simulation.
import math, random
from statistics import NormalDist
Z = NormalDist().inv_cdf

def n_ancova(sd, rho, delta, power=0.90, alpha=0.05):
    return math.ceil(2 * (Z(1 - alpha / 2) + Z(power)) ** 2 * sd ** 2 * (1 - rho ** 2)
                     / delta ** 2)

def ancova(y, x, g):
    """OLS of y on [1, g, x]; returns the group coefficient and its SE."""
    n = len(y); mx, mg, my = sum(x) / n, sum(g) / n, sum(y) / n
    sxx = sum((a - mx) ** 2 for a in x); sgg = sum((a - mg) ** 2 for a in g)
    sxg = sum((a - mx) * (b - mg) for a, b in zip(x, g))
    sxy = sum((a - mx) * (b - my) for a, b in zip(x, y))
    sgy = sum((a - mg) * (b - my) for a, b in zip(g, y))
    det = sxx * sgg - sxg ** 2
    bg = (sxx * sgy - sxg * sxy) / det; bx = (sgg * sxy - sxg * sgy) / det
    res = sum((b - my - bg * (c - mg) - bx * (a - mx)) ** 2 for a, b, c in zip(x, y, g))
    return bg, math.sqrt(res / (n - 3) * sxx / det)

def trial(n, delta, rng, sd=4.0, rho=0.5):
    x, y, g = [], [], []
    for arm in (0, 1):                    # arm 1 = intervention, lower error by delta
        for _ in range(n):
            b = rng.gauss(0, 1); e = rng.gauss(0, 1)
            x.append(12 + sd * b)
            y.append(10 + sd * (rho * b + math.sqrt(1 - rho ** 2) * e) - delta * arm)
            g.append(arm)
    bg, se = ancova(y, x, g)
    return -bg, se                        # positive = intervention better

if __name__ == "__main__":
    n = n_ancova(4.0, 0.5, 1.5); rec = math.ceil(n / 0.85)
    print(f"main plan: {n} analysable per arm, {rec} recruited per arm, {2 * rec} in all")
    print(f"  80 % power alternative: {n_ancova(4.0, 0.5, 1.5, 0.80)} analysable per arm")
    print("sensitivity (analysable per arm, power 90 %):")
    print("   SD    rho    SESOI 1.0   SESOI 1.5   SESOI 2.0")
    for sd in (3.5, 4.0, 4.5):
        for rho in (0.3, 0.5, 0.6):
            print(f"  {sd:.1f}   {rho:.1f}     " + "        ".join(
                f"{n_ancova(sd, rho, d):4d}" for d in (1.0, 1.5, 2.0)))
    rng = random.Random(1954); z = Z(0.975)
    for d in (1.5, 0.4, 0.0):
        hits = sum((lambda e: e[0] - z * e[1] > 0)(trial(n, d, rng)) for _ in range(2000))
        print(f"simulated power, true difference {d:.1f} mm (n = {n}): {hits / 2000:.3f}")
    print("0.4 mm = 0.1 SD, the order of a bias-corrected average focus effect")

Single source and citation

Fan, Y. (2026). Embodied Cognition, Bernstein's Degrees-of-Freedom Problem and the Control Theory of Motor Synergies (Version 1.0.0), Chapter 8: Practice and a Pre-Registered Trial. 5D Library. https://doi.org/10.5281/zenodo.23828057

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

BibTeX
@book{fan2026043,
  author    = {Fan, Yafu},
  title     = {Embodied Cognition, Bernstein's Degrees-of-Freedom Problem and the Control Theory of Motor Synergies},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23828057},
  url       = {https://doi.org/10.5281/zenodo.23828057}
}

Other chapter answers in this book