statistical-analyst
БесплатноЗапускает вложенные скриптыНе проверенApplied statistics for business and product questions — test selection, assumption checks, power planning, effect sizes with intervals, multiplicity…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Statistical Analyst
Most bad statistics in business are not arithmetic errors. They are the wrong test on the right data, a null result reported as "no difference," a p-value mistaken for an effect size, or twenty comparisons run and the one that cleared 0.05 written up. This skill covers the applied path: pick the test the data shape actually calls for, check the assumptions that carry weight, size the study before running it, report effects with intervals rather than bare p-values, and say what you found to people who do not want a statistics lecture.
Everything here runs on the Python standard library — the t, chi-square, and
normal distributions are implemented directly, so there is no scipy dependency
between a question and an answer. Because those implementations are hand-rolled,
stats_core.py --selftest verifies all of them against published reference
values; run it once before trusting any result.
When to use this skill
- An A/B test finished and someone needs to know whether to ship
- A study is being designed and nobody has computed how many observations it needs
- A stakeholder is quoting a p-value as if it were an effect size
- A "no difference" result is about to be reported from a study that was underpowered
- Several variants, metrics, or segments were compared and no correction was applied
- The data are skewed or outlier-heavy and the default t test is about to be run anyway
Inputs the skill expects
- The business question and what decision it will change
- The outcome variable and its type (binary, continuous, count, ordinal, categorical)
- Group structure — how many groups, independent or paired, randomized or observational
- Observation counts per group, and the unit of measurement (user, session, order)
- The baseline value and the smallest effect worth acting on
- How many comparisons are in the family, and which metric was named primary before the data arrived
Clarify First
Before analyzing, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- The unit of measurement, and whether each unit appears once: clustering (many sessions per user counted as independent rows) deflates standard errors and manufactures significance; it invalidates every test below.
- The smallest effect worth acting on: without it there is no way to size the study or to say whether a significant result matters.
- How many comparisons are in the family, and which metric was primary: decides the correction and whether the result is confirmatory or exploratory.
- Whether anyone has already looked at the data while it accumulated: peeking invalidates a fixed-horizon test and changes the whole approach.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Workflows
Workflow 1 — Choose the test and size the study before collecting data
- Write down the business question and the decision it changes. If the answer changes nothing, stop — do not run the study.
- Fill in the outcome type, group structure, baseline, and the minimum effect worth shipping into a question spec.
- Run the selector. It returns one test, its load-bearing assumptions, the fallback when they fail, and the sample size the stated effect requires.
- If the achievable sample is below the required sample, say so before running. An underpowered study should be a conscious decision, not a discovery at write-up time.
- Record everything in
assets/experiment_design_template.md.
python3 data-analytics/statistical-analyst/scripts/test_selector.py \
--input data-analytics/statistical-analyst/assets/sample_question.json \
--power 0.9
Workflow 2 — Run the test and report the effect, not the p-value
- Check independence first: count units versus count rows. More rows than units means clustering, and no test below is valid until that is handled.
- Inspect skew and outliers (mean vs median, top and bottom five values). If the data are heavy-tailed at small n, switch to Mann-Whitney.
- Run the test with the number of comparisons in the family declared, so the threshold is corrected.
- Read the effect size and the interval first. Report the effect in domain units, the interval in the same units, and the decision implication.
python3 data-analytics/statistical-analyst/scripts/stats_core.py --selftest
python3 data-analytics/statistical-analyst/scripts/run_test.py \
--input data-analytics/statistical-analyst/assets/sample_experiment.json \
--comparisons 3
Workflow 3 — Audit someone else's statistical claim
- Ask what the unit of measurement was and whether units repeat. This finds more real errors than every distributional check combined.
- Ask how many comparisons were run in total, includi
Установить statistical-analyst в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл statistical-analyst?
Applied statistics for business and product questions — test selection, assumption checks, power planning, effect sizes with intervals, multiplicity correction. Use when interpreting an experiment, sizing a study, or vetting a claim.
Как установить скилл statistical-analyst?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл statistical-analyst запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic