# statistical-analysis

Automates hypothesis testing, assumption verification, and APA-formatted summary drafting. Helpful for researchers processing scientific experimental datasets.

- skill · `type=skill` · Claude Code · 478 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/scientific/statistical-analysis
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/statistical-analysis

## What it does

This skill guides the selection and execution of statistical evaluations tailored to sample properties. It handles comparisons like independent t-tests, one-way ANOVA, chi-square evaluations, and non-parametric substitutes such as Mann-Whitney U. Beyond classical inference, it covers correlation metrics, regression models, and Bayesian estimations using Bayes Factors.

Prior to generating final metrics, the embedded diagnostics evaluate distribution normality, variance homogeneity, and potential outliers. If validation fails, the assistant indicates corrective paths, advising Welch adjustments or non-parametric alternatives.

Calculation routines rely directly on packages like `pingouin`, `scipy.stats`, and `statsmodels`, meaning execution halts without an existing Python runtime. Results arrive structured with effect estimates such as Cohen's d, confidence bands, and publication-ready APA phrasing.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill scientific/statistical-analysis
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill statistical-analysis -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/statistical-analysis/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/statistical-analysis/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/statistical-analysis/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/statistical-analysis/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates statistical-analysis
```

2. **Manually: put the files in place**
- File: `.github/skills/statistical-analysis/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/scientific/statistical-analysis
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/statistical-analysis/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/scientific/statistical-analysis

## When to use it
- select the proper statistical test based on dataset distribution
- verify normality and variance homogeneity assumptions
- compute statistical power and estimate target sample size
- draft academic findings according to APA publication guidelines

## Example prompts
- Inspect `experiment.csv` for normality and run an independent t-test across both groups
- Estimate the required sample size for a planned study with power set to 0.8 and d = 0.5
- Perform a one-way ANOVA on `df` and format the findings following APA guidelines

## Similar
- [anysearch](https://affpapa.org/en/nevibecode/skills/anysearch.md) — skill · 38500 installs
- [academic-paper](https://affpapa.org/en/nevibecode/skills/academic-paper.md) — skill · 10900 installs
- [nature-figure](https://affpapa.org/en/nevibecode/skills/nature-figure.md) — skill · 18800 installs
- [academic-paper-reviewer](https://affpapa.org/en/nevibecode/skills/academic-paper-reviewer.md) — skill · 9900 installs
- [nature-polishing](https://affpapa.org/en/nevibecode/skills/nature-polishing.md) — skill · 17500 installs
- [nature-citation](https://affpapa.org/en/nevibecode/skills/nature-citation.md) — skill · 15600 installs

## Other versions with the same name
- [statistical-analysis · anthropics](https://affpapa.org/en/nevibecode/skills/anthropics-statistical-analysis.md) — 4600 installs
- [statistical-analysis · k-dense-ai](https://affpapa.org/en/nevibecode/skills/k-dense-ai-statistical-analysis.md) — 2300 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
