
Statistical Power
If you've ever been asked "how many subjects do you need?" in a grant or IRB form, this is the skill to reach for. It wraps statsmodels and SciPy behind one interface (`sample_size`, `mde`, `power`, `power_curve`) covering t-tests, ANOVA, proportions, correlations, chi-square, and regression, and it steers you toward a sensible effect size instead of letting you invent one. Its sharpest feature is the explicit warning against post-hoc "observed" power, which reviewers rightly reject. The simulation path for mixed models, GLMs, and cluster-randomized designs is where the real value lies, though you'll need a credible data-generating process to trust it. Layout decisions like randomization or blocking belong to a different skill.
- skills.sh installs
- 1.5K
- GitHub stars
- 56.6K
- last updated
- Jul 31, 2026
Install
$ npx -y skills add K-Dense-AI/scientific-agent-skills --skill statistical-power --agent claude-codeInstalls into .claude/skills of the current project.
Files
Statistical Power & Sample Size
Overview
Power analysis answers one of the most consequential questions in study planning: how large a sample do you need to reliably detect an effect of a given size, and what could you detect with the sample you can afford? An underpowered study wastes resources and produces inconclusive or irreproducible results; an overpowered one wastes participants, money, and (in clinical work) exposes more people to risk than necessary. Getting this right before data collection is the single highest-leverage statistical decision in a project.
Four quantities are locked together for any given test: sample size (n), effect size, significance level (α), and power (1 − β). Fix any three and the fourth is determined. Every calculation in this skill is some rearrangement of that relationship.
This skill covers the two ways to do power analysis:
- Closed-form formulas (fast, exact for standard tests) — see
references/closed_form_recipes.md. - Simulation / Monte Carlo (works for any design or model you can simulate and analyze) — see
references/simulation_based_power.md.
Sponsors
Details
- Repository
- github.com/K-Dense-AI/scientific-agent-skills
- Categories
- AI & Agent Building, Productivity & Planning, Design & UI/UX
- License
- MIT license
- First seen
- Aug 2, 2026
More from K-Dense-AI/scientific-agent-skills
All 17- Onekgpd1.2K
- Uncertainty And Units1.1K
- Analytical Method Validation1.1K
- Iso Standards Readiness1.1K
- Genomic Coordinates1.1K
- Ontology Term Resolution1.1K
- Openpiv1.1K
- Pathogen Variant Surveillance1.1K
- Pkpd Modeling1.1K
- Bids1.6K
- Liteparse1.6K
- Pacsomatic1.6K
- Experimental Design1.5K
- Bulk Rnaseq1.5K
- Pathway Enrichment1.5K
- Nextflow1.5K