power-analysis

Calculate statistical power and required sample sizes for common study designs.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sencersoylu/scholar-flow --skill power-analysis-sencersoylu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: power-analysis
Source: https://github.com/sencersoylu/scholar-flow/tree/main/skills/statistics/power-analysis
Command: npx skills add https://github.com/sencersoylu/scholar-flow --skill power-analysis-sencersoylu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, statsmodels, and includes scripts (resource) components.

What problem does it solve?

This Skill helps researchers plan, justify, and optimize statistical power and sample size for common study designs.

Core Features & Use Cases

  • Power and sample-size calculations for t-tests, ANOVA, chi-square, correlation, and regression.
  • Interactive CLI and scripted workflows that generate per-group and total sample sizes, power curves, and effect-size guidance.
  • Use cases include study design planning, grant/protocol justification, pilot data planning, and sensitivity analyses.

Quick Start

Run the calculator with your test type, effect size, alpha, and power to obtain the required sample size.

Frequently Asked Questions about power-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate required sample size for a t-test before running my experiment?

Calculate required sample size for a t-test by inputting your test type, effect size, alpha, and power into the interactive calculator, which outputs per-group and total sample sizes for a priori study planning.

Can I use this to justify sample size in a grant or protocol for an ANOVA design?

Yes, you can justify sample size in a grant or protocol for an ANOVA design by running post-hoc or a priori power calculations that generate required sample sizes and power curves for protocol development.

What statistical tests are supported for statistical power and sample size planning?

Supported statistical tests for power and sample size planning include t-tests, ANOVA, chi-square, correlation, and regression, covering common experimental designs across numpy, scipy, and statsmodels.

How do I determine the right effect size for my sample size calculation?

Determine the right effect size for your sample size calculation using the calculator's built-in effect-size guidance, which helps translate pilot data or expected outcomes into appropriate inputs for sensitivity analyses.

Does this power analysis tool work for post-hoc sensitivity analyses?

Yes, this power analysis tool works for post-hoc sensitivity analyses by computing achieved statistical power based on observed effect sizes, alpha levels, and actual sample sizes from completed studies.

What is the best way to plan pilot data studies using power curves?

Plan pilot data studies using power curves by scripting the calculator to generate power across varying sample sizes and effect sizes, allowing you to optimize experimental design and assess feasibility before full data collection.