# statistics-math

A coding-agent skill with Python recipes for statistics, probability, linear algebra and regression. Useful when you need to compute metrics or test a hypothesis.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 432 installs · ★ 7
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-data-engineer/tree/HEAD/skills/statistics-math/SKILL.md
- Updated: 2026-01-05
- HTML: https://affpapa.org/en/nevibecode/skills/statistics-math

## What it does

The skill covers the math side of data work. It ships runnable Python examples: descriptive stats with NumPy, distributions and hypothesis tests with SciPy, matrix operations and SVD, regression through statsmodels and scikit-learn. The agent copies a working pattern instead of inventing one.

A/B testing gets its own section. There is a class with a two-sample t-test, a chi-square test and a two-proportion z-test that returns the p-value, effect size and a significance flag. The regression part compares OLS, Ridge and Lasso and prints R² and RMSE for each.

The skill is marked foundational, and that label holds up: without basic Python and NumPy the examples will not run. The tool table lists NumPy 1.26+, SciPy 1.12+, pandas 2.2+, statsmodels 0.14+ and scikit-learn 1.4+. Older pins in your project will break some calls, so check the environment before letting the agent edit code.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-data-engineer --skill statistics-math -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-data-engineer --skill statistics-math -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-data-engineer --skill statistics-math -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-data-engineer statistics-math
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-data-engineer --skill statistics-math -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-data-engineer --path skills/statistics-math
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-data-engineer --skill statistics-math -a opencode
```

### 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/pluginagentmarketplace/custom-plugin-data-engineer/tree/HEAD/skills/statistics-math/SKILL.md

## When to use it
- compute descriptive stats for a data array
- test whether two samples differ
- evaluate an A/B test from conversion counts
- reduce dimensionality with SVD
- compare OLS, Ridge and Lasso on the same data

## Example prompts
- compute mean, median and IQR for this array
- run a t-test on the two samples and report the effect size
- evaluate this A/B test: 120 conversions out of 1000 vs 150 out of 1000

## Similar
- [data-scientist](https://affpapa.org/en/nevibecode/skills/borghei-data-scientist.md) — skill · 440 installs
- [data-science-expert](https://affpapa.org/en/nevibecode/skills/data-science-expert.md) — skill · 573 installs
- [scikit-learn-best-practices](https://affpapa.org/en/nevibecode/skills/scikit-learn-best-practices.md) — skill · 888 installs
- [scipy-best-practices](https://affpapa.org/en/nevibecode/skills/scipy-best-practices.md) — skill · 1000 installs
- [statistics-fundamentals](https://affpapa.org/en/nevibecode/skills/statistics-fundamentals.md) — skill · 813 installs
- [math-help](https://affpapa.org/en/nevibecode/skills/math-help.md) — skill · 543 installs

From the same set: [pluginagentmarketplace/custom-plugin-data-engineer](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-data-engineer.md) — 2 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
