WhyN

How many units does your experiment need, and why that many? Check a number you were given, or plan one from scratch.

Try an example

What do you want to do?

What do you want to do?

What does your experiment compare?

The details

The questions for your experiment appear here once steps 1 and 2 are answered.

More detail, when you want it

How the numbers trade off: the error budget and the verdict curve
The justification, ready to paste

Every input, every number and the reason for each, written for a preregistration, a grant, or a reply to reviewers. Keep it as an independent record beside any advice you received.


    
Already have results?

WhyN plans and checks designs before data exist. One thing it will not do:

How WhyN works, and how to check it

Every number comes from one equation, Δ/SE = za + zb, under a normal approximation. The left side is the budget: how many standard errors the smallest effect worth detecting spans. The right side is how it is spent, on protection against false alarms and against misses. Sample sizes are always rounded up. The math is small enough to read in ten minutes (src/core/), and a reference script (reference/two_condition.py) prints every number the acceptance tests pin down.

WhyN covers one design family: a two-condition comparison of rates or means, paired or independent, a main effect or an interaction. For designs it does not cover (ANOVA, regression, survival, cluster-randomized, sequential or Bayesian), use G*Power, Superpower or DeclareDesign instead.