Sample-size estimation for a two-sample z-test given effect size, alpha and power.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- Experiment planning — decide how many users to enroll before launch.
- Budgeting — trade detectable effect size against required sample size.
- Study design teaching — expose the relationship between alpha, power and n.
Download power.exe from the Releases page, then:
Get-Content data.csv | .\power.exe
# or
.\power.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o power.exe .{
"effect": 0.5,
"alpha": 0.05,
"power": 0.8,
"sample_size_per_group": 63
}
Flags: -effect (standardized difference), -alpha, -power. No input file needed.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
