---
title: "Statistical Power & Sample Size - Air Market"
description: "Someone has asked how many subjects, samples or replicates your study needs, and a number on its own will not survive review. This runs that calculation and shows the reasoning, including for designs…"
canonical: "https://airmarket.ai/app/statistical-power"
---

[Air Market](/) / [Data & Analytics](/category/data) / Statistical Power & Sample Size

Skill by [XinTaoFei](/@xintaofei)

# Statistical Power & Sample Size

Answer how many subjects you need, with the reasoning to back it

## What this does

Someone has asked how many subjects, samples or replicates your study needs, and a number on its own will not survive review. This runs that calculation and shows the reasoning, including for designs where no simple formula exists and the answer has to be simulated. Reach for it when planning a study, or when writing the sample-size justification for a grant, protocol or pre-registration.

### Top 3 things it does for you

- Work out the sample size a study needs
- Justify a sample size for a grant or IRB protocol
- Find the smallest effect a planned study could detect

## Information

**Statistical Power & Sample Size at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [XinTaoFei](/@xintaofei) |
| Category | [Data & Analytics](/category/data) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 51 KB |
| Licence | Apache-2.0 |
| Repository | [xintaofei/codeg](https://github.com/xintaofei/codeg/tree/7c48df5ac4aa56912436983447af5b1ba061f3de/src-tauri/science/skills/statistical-power) |
| GitHub stars | 2,949 (as of Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Statistical Power & Sample Size and flagged nothing. AIR's verdict: **safe**.

**What Statistical Power & Sample Size's check was run against**

|  |  |
| --- | --- |
| Commit | 7c48df5ac4aa56912436983447af5b1ba061f3de |
| Content hash | b42dee1e6e7638bc1fc86d2e6bd86910312fe1b547a433b353f7526e664be135 |
| Files read | [Browse the files at this exact commit](https://github.com/xintaofei/codeg/blob/7c48df5ac4aa56912436983447af5b1ba061f3de/src-tauri/science/skills/statistical-power/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Statistical Power & Sample Size](/security/statistical-power)

## About Statistical Power & Sample Size

Sample-size and statistical power calculations for planning studies - a priori power analysis, minimum detectable effect, power curves, and sample-size justifications for grants, IRB protocols and pre-registrations.

Closed-form power is covered for t-tests, ANOVA, proportions, correlations, chi-square and regression. Where no formula exists, simulation-based Monte Carlo power covers logistic and Poisson regression, mixed models, cluster-randomized trials, survival and interactions.

It applies even when a request only mentions an effect size, an alpha, or a target power without ever using the words power analysis. For laying out the study itself - randomization, blocking, factorial and DOE, crossover, sequential designs - use experimental-design; for analyzing and reporting data already collected, use statistical-analysis.

## What's inside

- SKILL.md - instructions
- references/closed_form_recipes.md - reference
- references/effect_sizes.md - reference
- references/simulation_based_power.md - reference
- scripts/power.py - script
- scripts/simulate_power.py - script

## Questions

### Is Statistical Power & Sample Size safe to install?

AIR scanned this exact version of Statistical Power & Sample Size and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 7c48df5ac4aa, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/statistical-power.

### How do I install Statistical Power & Sample Size?

Open https://airmarket.ai/app/statistical-power on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/xintaofei/codeg/tree/7c48df5ac4aa56912436983447af5b1ba061f3de/src-tauri/science/skills/statistical-power. Install from that link, not the branch.

## Related on Air Market

- [More Data & Analytics listings](/category/data)
- [Everything by XinTaoFei](/@xintaofei)

---

Canonical URL: <https://airmarket.ai/app/statistical-power>
