power-analysis

Calculates statistical power and required sample sizes for research designs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/astoreyai/ai_scientist --skill power-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: power-analysis
Source: https://github.com/astoreyai/ai_scientist/tree/main/skills/power-analysis
Command: npx skills add https://github.com/astoreyai/ai_scientist --skill power-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps calculate statistical power and determine required sample sizes.

Core Features & Use Cases

  • Power Calculations: for t-tests, ANOVA, correlation, regression.
  • Software Guidance: G*Power, R, Python examples.
  • NIH Rigor: Justify sample size and present sensitivity analyses.

Quick Start

Compute the sample size needed for an independent t-test with d = 0.5, power 0.8, alpha 0.05.

Frequently Asked Questions about power-analysis

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

FAQPage Schema
How do I calculate the sample size needed for a study?

Statistical power analysis determines required sample size by specifying effect size, significance level (alpha), desired power (typically 0.8), and test type. Input these parameters into power calculation software or code to compute the minimum sample size that detects your effect with your chosen confidence.

What is statistical power and why does it matter for study design?

Statistical power is the probability your test detects a true effect if one exists. Higher power reduces the risk of false negatives. Power analysis ensures studies are adequately sized to answer research questions, which is critical for grant proposals, pre-registration, and ethical review.

Can I perform power analysis for t-tests, ANOVA, and correlation studies?

Yes. Power analysis applies across designs including independent and paired t-tests, one-way ANOVA, chi-square, correlation, and multiple regression. Each test type requires specifying its relevant parameters—effect size, alpha, and sample size—to compute power or determine required sample size.

How do I use G*Power or R to calculate statistical power?

G*Power provides a graphical interface for power calculations across test types. R and Python offer libraries (like pwr in R) for programmatic power analysis. Both approaches require entering effect size, alpha level, desired power, and test specifications to compute sample size or post-hoc power.

What should I do with power analysis results for a research proposal?

Include sample size justification and sensitivity analyses in grant proposals and ethical review submissions. Power analysis demonstrates study rigor and feasibility. For retrospective analyses, interpret null results using power calculations to assess whether negative findings reflect true absence of effect or insufficient statistical power.

Can power analysis help me interpret null or nonsignificant results?

Yes. Retrospective power analysis clarifies whether a null result reflects a genuinely absent effect or inadequate sample size. Sensitivity analyses show what effect sizes your study could reliably detect, supporting conclusions about study limitations and meta-analyses.