Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Power and sample size for t-tests, one-way ANOVA and two proportions (two-sided), version 1.0.2

power-sample-size@1.0.2: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

What this page can and cannot show

Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

Every version of this method · Every method · What the levels mean

Version 1.0.2

Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. power-sample-size@1.0.2

What this page can and cannot show

What was checked

Checked against R 4.4.3 power.t.test, power.anova.test and power.prop.test (strict = FALSE; n solved at tolerance 1e-10) on 26 cases: power within 1e-8 (t, proportions) and 1e-7 (ANOVA), computed n within 1e-6 relative, the smallest integer n, flags and withheld states exact; SciPy nct, ncf and norm agree on all 19 cases with a number (2026-10-13).

Cases: no case set is linked to power-sample-size@1.0.2.

Not yet recorded for this version

  • Equation: not recorded for power-sample-size@1.0.2.
  • Constants: not recorded for power-sample-size@1.0.2.
  • Worked example: not recorded for power-sample-size@1.0.2.
  • Prediction error: not recorded.

What was not checked

What was not checked: not recorded for power-sample-size@1.0.2. Its absence does not mean everything was checked.

Changes

2026-11-21-power-sample-size@1.0.2-1

2026-11-21 · power-sample-size@1.0.2 · Corrections to our methods

  • What was wrong: The normal distribution function inside the power returned no number for very large arguments: its continued fraction for the upper incomplete gamma never met its stopping test where its terms round to one ulp below 1, and z² overflowed beyond about 1.3e154. Version 1.0.1 refused those designs as POWER_UNRESOLVED, a refusal where an answer exists: a two-sample t test with delta 1e200 and sd 1 at a target of 0.8 was refused, where three per group, the floor, has power 1, as R's power.t.test gives.
  • Affected: stats_power_sample_size and the Assay app's power planner in version 1.0.1, only for effects large enough for the normal distribution function's NaN, which came sporadically from about 3e6, regularly from about 2.2e8 in its argument, the noncentrality (on a one-decade grid of delta/sd from 1 to 1e300 for the three t tests and a two-mean one-way ANOVA, 2,107 designs): there 1,102 sample-size calls and 2,005 power calls at n 3 and 100 were refused as POWER_UNRESOLVED, and 345 answers kept their n, total and achieved power but carried a continuous computed root below the floor that the bisection had found among values that were not numbers (10 of them with a different atFloor). Every n, total and power that was a number is unchanged.
  • What changed: In 1.0.2 the normal distribution function is finite at every argument: where the incomplete gamma's leading factor e^−x x^a/Γ(a) rounds to 0 its value is 0 (the fraction is at most 1/(x−a+1) for a ≥ 1 (8.2.2), at most 1/x for a ≤ 1 (8.10.1); below 1 in both), so Φ(−z) is 0 and Φ(z) is 1 from |z| of about 38.6, and beyond z² overflow they are their limits (DLMF 7.11.2 and 7.8.2). Those designs are now answered: delta 1e200 with sd 1 gives three per group, total 6, power 1. POWER_UNRESOLVED stays for a power that is not a number. No value of the distribution function that was a number moved, on 1,200,000 seeded points in its normal range.
  • How it was found: A grid scan of the shared normal distribution function during an engine review on 18 November 2026 (NaN for Φ(−z) sporadically from about 3e6, regularly from about 2.2e8), then an audit probe of every served tool reaching it on 21 November 2026.
  • Cases added: stored reference values: the finding's first NaN points give 0 and 1, no NaN on the 0.01-decade grids of z and of the chi-square argument from 1 to 1e308 at df 1, 2, 5, 10 and 100, and Φ past z² overflow and Q(a, ∞) are their limits, with DLMF 7.8.2's bound checked below half the smallest double; stored reference values: the audit's delta 1e200 calls give R's three per group with power 1.

Tools that use it

Cite this version

Power and sample size for t-tests, one-way ANOVA and two proportions (two-sided). Drybench; power-sample-size@1.0.2; https://www.drybench.com/methods/m/power-sample-size/1.0.2 (accessed [date]).