What do you want to do?
Check a sample size
For example, an AI assistant told you to recruit 300 people per group to detect a 4-point rise in a pass rate. WhyN shows whether 300 can find that rise, and what it would take if not.
Pick this when you already have a number from someone or somewhere.
Plan a sample size
For example, you want to detect a 5-point rise in a pass rate and have no number yet. WhyN works out how many people you need, with the reason for each number.
Pick this when you are designing the experiment from scratch.
What does your experiment compare?
What counts as a unit?
A unit is whatever gets a condition: a person, a plant, a plot, a classroom, an exercise. "Both conditions" means each unit is measured under each one.
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.