Sign in
Explore
Skills · SkillData & AIResearch & AnalysisData analysis & BIReviewedWrites files

statistical-power

Calculates sample sizes and statistical power for study planning: a priori power analysis, minimum detectable effect and power curves.

Kind
Skill
Works with
Claude Code, Codex, Cursor, Gemini / Antigravity
Source
Scientific Agent Skills (K-Dense) @ 5f2bc0341354
Path
skills/statistical-power/SKILL.md
Jobs
Planning
Topics
Data analysis & BI

Credit

Made by
K-Dense-AI
Original
github.com/K-Dense-AI/scientific-agent-skills/blob/5f2bc03413…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
gh skill install K-Dense-AI/scientific-agent-skills statistical-power
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/statistical-power/ (the skill folder)
  • 5 file(s) the skill refers to
  • 5 other files in the folder: references/closed_form_recipes.md, references/effect_sizes.md, references/simulation_based_power.md, scripts/power.py and 1 more
Runs scripts
Yes
  • scripts/power.py
  • scripts/simulate_power.py
  • allowed-tools includes Bash
  • shell block in the text
Uses the network
Yes
  • downloads Python packages
Needs secrets
None found
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • scripts/power.py: Unified closed-form power / sample-size interface over statsmodels and scipy.
  • scripts/simulate_power.py: Monte Carlo power when analytical assumptions do not match the design.
Source revision
5f2bc0341354
Licence
MIT
Last activity
23 Nov 2026
Source changed after the scan
Yes
  • Last push 23 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# Statistical Power & Sample Size

## Overview

Power analysis plans the probability of rejecting a specified null under an assumed alternative. It answers **how many independent experimental units are needed to detect a scientifically important effect**, or what effects a feasible sample could detect. Choose the inferential goal first: precision, equivalence, noninferiority, or sequential monitoring need their own calculations; the bundled superiority-test helpers do not cover them.

Four quantities are locked together for any given test: **sample size (n)**, **effect size**, **significance level (α)**, and **power (1 − β)**. For a fixed design, analysis, and nuisance parameters, fixing three permits solving for the fourth when a solution exists. Every calculation in this skill is some rearrangement of that relationship.

This skill covers the two ways to do power analysis:
- **Analytical** power calculations (exact under some standard-test assumptions; asymptotic approximations for others) — see `references/closed_form_recipes.md`.
…