statistical-analysis

statistical-analysis is a skill for Claude Code from Norman-bury/research-writing-skill. It costs 23 tokens per session (1,751 once invoked), scanned A, original, MIT.

A guide for choosing, running, and reporting statistical analyses, including common tests for group comparisons, relationships, and predictions. It also includes guidance for reporting results in APA style, a common format for academic writing.

In plain words
What is it for?
Use it when planning or reporting an academic statistical analysis. It covers tests such as t-tests, Mann–Whitney, ANOVA, correlations, and regression, with example code and reporting guidance.
Why use it?
It helps match a statistical test to the type and structure of the data instead of choosing one arbitrarily. It also helps report assumptions and effect sizes, which show how meaningful a result is.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the research-writing-skill plugin — 20 skills, 1 hook shipped together

Good fit Use it when planning or reporting an academic statistical analysis. It covers tests such as t-tests, Mann–Whitney, ANOVA, correlations, and regression, with example code and reporting guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/norman-bury/research-writing-skill/statistical-analysis
About the project

Norman-bury/research-writing-skill is an agent skill that turns academic paper writing into a tracked, reusable workflow with planning, drafting, reviews, figures, literature work, and LaTeX outputs. It is intended for undergraduate students, graduate students, and early-career researchers working on theses, coursework papers, or initial submissions. Its catalogue entries are the skills, instructions, plugin, and hook that implement the workflow across coding-agent platforms.

Norman-bury/research-writing-skill · 3,183 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Norman-bury/research-writing-skill --skill statistical-analysis
Clone the repo
git clone --depth 1 https://github.com/Norman-bury/research-writing-skill

Made for: Claude Code.

Or install research-writing-skill, the plugin that ships this one along with the rest of its 20 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for statistical-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/norman-bury/research-writing-skill/statistical-analysis/github.svg)](https://agentmods.dev/skills/norman-bury/research-writing-skill/statistical-analysis)
Your own site
<a href="https://agentmods.dev/skills/norman-bury/research-writing-skill/statistical-analysis"><img src="https://agentmods.dev/badge/skills/norman-bury/research-writing-skill/statistical-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for statistical-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/norman-bury/research-writing-skill/statistical-analysis"><img src="https://agentmods.dev/badge/skills/norman-bury/research-writing-skill/statistical-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01751
Opus 5 $0.00012 $0.00875
Sonnet 5 $0.00005 $0.00350
Haiku 4.5 $0.00002 $0.00175

Measured 10d ago against content hash e2b425a9f657, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

statistical-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/statistical-analysis/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

统计分析指南

本技能提供学术论文中统计分析的选择、执行和报告指南。

一、统计检验选择

比较两组

数据特征 推荐检验
独立、连续、正态 独立样本t检验
独立、连续、非正态 Mann-Whitney U检验
配对、连续、正态 配对样本t检验
配对、连续、非正态 Wilcoxon符号秩检验
二分类结果 卡方检验或Fisher精确检验

比较三组及以上

数据特征 推荐检验
独立、连续、正态 单因素方差分析
独立、连续、非正态 Kruskal-Wallis检验
配对、连续、正态 重复测量方差分析
配对、连续、非正态 Friedman检验

关系分析

分析目标 推荐方法
两个连续变量关系 Pearson相关(正态)或Spearman相关(非正态)
连续结果与预测变量 线性回归
二分类结果与预测变量 逻辑回归

二、假设检验

正态性检验

from scipy import stats

# Shapiro-Wilk检验(样本量<5000)
stat, p_value = stats.shapiro(data)
print(f"Shapiro-Wilk检验: W={stat:.4f}, p={p_value:.4f}")

if p_value > 0.05:
    print("数据符合正态分布假设")
else:
    print("数据不符合正态分布,考虑使用非参数检验")

方差齐性检验

from scipy import stats

# Levene检验
stat, p_value = stats.levene(group1, group2)
print(f"Levene检验: F={stat:.4f}, p={p_value:.4f}")

if p_value > 0.05:
    print("方差齐性假设满足")
else:
    print("方差不齐,使用Welch's t检验")

三、效应量

常用效应量参考

检验 效应量
t检验 Cohen's d 0.20 0.50 0.80
ANOVA η²_p 0.01 0.06 0.14
相关 r 0.10 0.30 0.50
回归 0.02 0.13 0.26

Python计算效应量

import pingouin as pg

# t检验返回Cohen's d
result = pg.ttest(group1, group2)
d = result['cohen-d'].values[0]
print(f"Cohen's d = {d:.2f}")

# ANOVA返回偏η²
aov = pg.anova(dv='score', between='group', data=df)
eta_p2 = aov['np2'].values[0]
print(f"Partial η² = {eta_p2:.3f}")

四、APA格式报告

独立样本t检验

A组(n = 48, M = 75.2, SD = 8.5)得分显著高于B组
(n = 52, M = 68.3, SD = 9.2),t(98) = 3.82, p < .001, 
d = 0.77, 95% CI [0.36, 1.18]。

单因素方差分析

单因素方差分析显示处理条件对测试分数有显著主效应,
F(2, 147) = 8.45, p < .001, η²_p = .10。事后比较使用
Tukey HSD表明,条件A(M = 78.2, SD = 7.3)得分显著
高于条件B(M = 71.5, SD = 8.1, p = .002)。

多元回归

多元线性回归预测考试成绩,整体模型显著,
F(3, 146) = 45.2, p < .001, R² = .48。学习时间
(β = .35, p < .001)和先前GPA(β = .28, p < .001)
是显著预测变量。

Read the full file on GitHub · 188 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 188 lines · 23 tokens per session scan A e2b425a9f657

Subscribe to this mod's changes

statistical-analysis is a skill published in the GitHub repository Norman-bury/research-writing-skill (3,183 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 1,751 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens