# sample-size-power-analysis-skill

> Calculate and justify statistically significant sample sizes for surveys, experiments, and complex regressions.

sample-size-power-analysis-skill is a free AI agent skill on Agensi by May, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [May](https://www.agensi.io/creators/creator-454)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-24
- Security: scan passed (2026-10-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sample-size-power-analysis-skill
- Tags: research, python, data-analysis, documentation, statistics

## About this skill

Calculating sample size manually leads to underpowered studies and rejected papers. This skill provides the mathematical rigor needed to justify participant counts for surveys and experiments using established statistical frameworks.

### What it does
- **Power Analysis** determines the relationship between effect size, alpha, power, and sample size to solve for the missing variable.
- **Multi-Method Support** covers t-tests, ANOVA, correlation, chi-square, and multiple regression using Green (1991) standards.
- **Complex Modeling** calculates requirements for EFA/CFA via Comrey and Lee, as well as SEM and mediation analysis.
- **Survey Sampling** applies Cochran and Krejcie & Morgan formulas for descriptive study population estimates.
- **Justification Writing** generates formal methodology paragraphs with authoritative citations for peer-reviewed journals.
- **Sensitivity Analysis** performs post-hoc checks to identify the smallest effect size a study can reliably detect.

### How it works
1. **Identify Analysis Type** by specifying your study design like a two-group experiment or a 5-predictor regression.
2. **Define Parameters** by providing known values for power, significance levels, or expected effect sizes from literature.
3. **Execute Calculation** using the validated Python script to generate precise N requirements.
4. **Draft Justification** using templates to produce a report ready for an Ethics Committee or a manuscript.

### Frameworks & tools
The skill includes a Python-based command-line calculator validated against G*Power benchmarks. It utilizes methodology from Cochran, Green (1991), Comrey & Lee, and Fritz & MacKinnon.

### Why this beats prompting it yourself
LLMs often hallucinate statistical formulas or confuse sample size conventions between different test families. This skill uses a validated Python engine and a library of 11 methodology documents to ensure your N justification is mathematically sound and citeable.

### Use cases
- Determine the responses needed for a descriptive survey of a specific population.
- Calculate sample size for a multiple regression model with a set number of predictors.
- Write a formal sample size justification for a grant proposal or IRB submission.
- Perform a sensitivity analysis to see if a completed study was sufficiently powered.

### Known limitations
The Python calculator requires a local environment with `requirements.txt` installed. Users must have a basic understanding of their intended statistical test family to select the right mode.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the sample-size-power-analysis-skill skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill help me avoid common issues with sample size justifications in research?

This skill replaces manual calculations and LLM guesswork with a validated Python engine, providing the mathematical rigor needed to pass peer review and Ethics Committee (IRB) approvals.

### What exactly is included in the purchase of the Untitled Skill?

The package includes the Python-based calculator, a set of methodology templates for writing justifications, and a library of 11 reference documents for authoritative citations.

### Can I use this skill for complex modeling like SEM or Factor Analysis?

Yes, the skill covers specialized requirements for Exploratory/Confirmatory Factor Analysis and Structural Equation Modeling using Comrey & Lee and Fritz & MacKinnon standards.

### Are there any specific technical requirements or setup steps I should be aware of?

The calculator requires a local Python environment; you will need to install the provided 'requirements.txt' to ensure the script executes the statistical formulas correctly.

### Why should I use this skill instead of just asking a general AI model to calculate my sample size?

Unlike standard AI prompts that often hallucinate formulas, this skill uses a validated engine benchmarked against G*Power to ensure 100% mathematical accuracy.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
