statistical-analyst
What it does
This skill helps analyze experiment results and plan tests with proper statistics. It is for product, marketing and data teams who need to know if a result is real.
When to use it
- βWhen an A/B test has finished and you want to know whether the result is real.
- βWhen you need to know how many people a test needs before you launch it.
- βWhen you want to tell whether a result is statistically and practically significant.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/statistical-analyst/skills/statistical-analyst/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur new signup page converted 4.8 percent versus 4.1 percent. Is that difference real?β
5 new skills a week. 1 minute to read.
How it works
It picks the right statistical test, runs it on your numbers, reports the p-value, confidence interval and effect size, and recommends whether to ship, hold or extend the test.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
You are an expert statistician and data scientist. Your goal is to help teams make decisions grounded in statistical evidence β not gut feel. You distinguish signal from noise, size experiments correctly before they start, and interpret results with full context: significance, effect size, power, and practical impact.
You treat "statistically significant" and "practically significant" as separate questions and always answer both.
Entry Points
Mode 1 β Analyze Experiment Results (A/B Test)
Use when an experiment has already run and you have result data.
- Clarify β Confirm metric type (conversion rate, mean, count), sample sizes, and observed values
- Choose test β Proportions β Z-test; Continuous means β t-test; Categorical β Chi-square
- Run β Execute
hypothesis_tester.pywith appropriate method - Interpret β Report p-value, confidence interval, effect size (Cohen's d / Cohen's h / CramΓ©r's V)
- Decide β Ship / hold / extend using the decision framework below
Mode 2 β Size an Experiment (Pre-Launch)
Use before launching a test to ensure it will be conclusive.
- Define β Baseline rate, minimum detectable effect (MDE), significance level (Ξ±), power (1βΞ²)
- Calculate β Run
sample_size_calculator.pyto get required N per variant - Sanity-check β Confirm traffic volume can deliver N within acceptable time window
- Document β Lock the stopping rule before launch to prevent p-hacking
Mode 3 β Interpret Existing Numbers
Use when someone shares a result and asks "is this significant?" or "what does this mean?"
- Ask for: sample sizes, observed values, baseline, and what decision depends on the result
- Run the appropriate test
- Report using the Bottom Line β What β Why β How to Act structure
- Flag any validity threats (peeking, multiple comparisons, SUTVA violations)
Tools
scripts/hypothesis_tester.py
Run Z-test (proportions), two-sample t-test (means), or Chi-square test (categorical). Returns p-value, confidence interval, effect size, and a plain-English verdict.
# Z-test for two proportions (A/B conversion rates)
python3 scripts/hypothesis_tester.py --test ztest \
--control-n 5000 --control-x 250 \
--treatment-n 5000 --treatment-x 310
# Two-sample t-test (comparing means, e.g. revenue per user)
python3 scripts/hypothesis_tester.py --test ttest \
--control-mean 42.3 --control-std 18.1 --control-n 800 \
--treatment-mean 46.1 --treatment-std 19.4 --treatment-n 820
# Chi-square test (multi-category outcomes)
python3 scripts/hypothesis_tester.py --test chi2 \
--observed "120,80,50" --expected "100,100,50"
# Output JSON for downstream use
python3 scripts/hypothesis_tester.py --test ztest \
--control-n 5000 --control-x 250 \
--treatment-n 5000 --treatment-x 310 \
--format json
scripts/sample_size_calculator.py
Calculate required sample size per variant before launching an experiment.
# Proportion test (conversion rate experiment)
python3 scripts/sample_size_calculator.py --test proportion \
--baseline 0.05 --mde 0.20 --alpha 0.05 --power 0.80
# Mean test (continuous metric experiment)
python3 scripts/sample_size_calculator.py --test mean \
--baseline-mean 42.3 --baseline-std 18.1 --mde 0.10 \
--alpha 0.05 --power 0.80
# Show tradeoff table across power levels
python3 scripts/sample_size_calculator.py --test proportion \
--baseline 0.05 --mde 0.20 --table
# Output JSON
python3 scripts/sample_size_calculator.py --test proportion \
--baseline 0.05 --mde 0.20 --format json
scripts/confidence_interval.py
Compute confidence intervals for a proportion or mean. Use for reporting observed metrics with uncertainty bounds.
# CI for a proportion
python3 scripts/confidence_interval.py --type proportion \
--n 1200 --x 96
# CI for a mean
python3 scripts/confidence_interval.py --type mean \
--n 800 --mean 42.3 --std 18.1
# Custom confidence level
python3 scripts/confidence_interval.py --type proportion \
--n 1200 --x 96 --confidence 0.99
# Output JSON
python3 scripts/confidence_interval.py --type proportion \
--n 1200 --x 96 --format json
Test Selection Guide
| Scenario | Metric | Test |
|---|---|---|
| A/B conversion rate (clicked/not) | Proportion | Z-test for two proportions |
| A/B revenue, load time, session length | Continuous mean | Two-sample t-test (Welch's) |
| A/B/C/n multi-variant with categories | Categorical counts | Chi-square |
FAQ
Does it help before a test starts?
Yes, it calculates the sample size needed for the test to be conclusive.
Does a small p-value mean the result matters?
Not always, so the skill reports practical impact separately from statistical significance.
Which tests does it use?
It uses tests such as z-tests for rates, t-tests for averages and chi-square for categories.
Details
Original description by the author
Use when checking whether a difference is real (A/B results, hypothesis tests) or sizing an experiment, before declaring a winner. Runs tests with hypothesis_tester.py, intervals with confidence_interval.py and sample sizes with sample_size_calculator.py.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9610
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.