statistical-conventions

statistical-conventions is a skill for Claude Code from synthetic-sciences/openscience. It costs 168 tokens per session (3,437 once invoked), scanned A, original, Apache-2.0.

A guide for choosing and reporting statistical tests according to the study design, measurement scale, repeated observations, and uncertainty. Statistical tests are methods for judging whether observed differences may reflect more than random variation.

In plain words
What is it for?
Use it to select paired or independent tests, handle repeated or nested measurements, test ordered trends, adjust for multiple comparisons, and report assumptions and uncertainty.
Why use it?
It reduces misleading results caused by treating paired data as independent, ignoring nested observations, choosing a test from the p-value, or making too many unadjusted comparisons.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to select paired or independent tests, handle repeated or nested measurements, test ordered trends, adjust for multiple comparisons, and report assumptions and uncertainty.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/synthetic-sciences/openscience/statistical-conventions
About the project

synthetic-sciences/openscience is an AI workbench that carries out scientific research by reading papers, forming hypotheses, writing and running code, conducting experiments, analyzing results, and preparing reports. Researchers use it for work in machine learning, biology, physics, and chemistry with remote or local models. Catalogue add-ons extend its scientific workflows through skills and instructions.

synthetic-sciences/openscience · 4,025 stars · on GitHub · openscience.sh

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 synthetic-sciences/openscience --skill statistical-conventions
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code.

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-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthetic-sciences/openscience/statistical-conventions/github.svg)](https://agentmods.dev/skills/synthetic-sciences/openscience/statistical-conventions)
Your own site
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/statistical-conventions"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/statistical-conventions/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-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/statistical-conventions"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/statistical-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,437 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.
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.00168 $0.03437
Opus 5.5 $0.00067 $0.01375
Sonnet 5.5 $0.00034 $0.00687
Haiku 4.5 $0.00017 $0.00344

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

Security

Grade A, and why

statistical-conventions 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 20d 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.

backend/cli/skills/core/statistical-conventions/SKILL.md · 195 lines

How it starts

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

Statistical conventions

The design and the measurement scale choose the test, not the size of the p-value it yields. Every reported number travels with the quantity it estimates, its uncertainty, the assumption it rests on, and the software that computed it.

Choosing the test

  1. Design first. The same units measured twice (before and after, matched pairs, two methods on the same samples) are paired: scipy.stats.ttest_rel, wilcoxon. Independent groups: ttest_ind(a, b, equal_var=False) (Welch; use Student's only when equal variances are a design fact, and say so), mannwhitneyu. Three or more groups: f_oneway or kruskal; repeated measures across blocks: friedmanchisquare. Name the unit of analysis before choosing: observations nested in a unit (cells within a donor, trials within a participant, technical replicates within a sample, regions within a patient) are aggregated to that unit (a per-donor proportion or mean) or fitted with a mixed model before any test. Testing the nested observations as if independent inflates n by orders of magnitude and makes every p-value meaningless.
  2. Scale and distribution. Ordinal outcomes, heavy skew, small n with outliers, or censored-at-a-bound measurements call for rank-based tests (Mann-Whitney, Wilcoxon signed-rank, Kruskal-Wallis, Spearman spearmanr, Kendall kendalltau). Continuous, roughly symmetric data with adequate n use the t family. Check rather than assume: shapiro (informative for modest n only), a Q-Q plot, levene for variances. Name what you looked at; a normality test on n = 5 or n = 5000 says little on its own. Intensity measurements (proteomics and metabolomics signal, microarray and normalized expression values, fluorescence, concentrations spanning decades) are compared on the log2 scale: the difference of log2 means is the fold-change the question asks about, and a t-test on the linear values tests the wrong quantity. "Normalized", "imputed" or "batch-corrected" does not mean "log-transformed": values in the thousands or millions are linear, and the transform is part of the prescribed workflow even when the instruction does not spell it out. The scale is decided per step, not once for the pipeline: the statistics you compute (means, fold-changes, t-tests, correlations) take log2; a tool that is handed the expression matrix (GSEA, clustering, a named pipeline) takes the columns the task names, as supplied, unless the task or the tool's own documentation says to transform them. When the two readings give different calls, run both, say which the task's wording supports, and report the other as a sensitivity. Say which scale each statistic was computed on.
  3. Ordered categories need a trend test, not an omnibus test. Doses, grades, stages, exposure levels: Jonckheere-Terpstra for a continuous or ordinal outcome across ordered groups (R clinfun::jonckheere.test, PMCMRplus::jonckheereTest, DescTools::JonckheereTerpstraTest); Cochran-Armitage for a binary outcome across ordered groups (R stats::prop.trend.test, DescTools::CochranArmitageTest; Python statsmodels.stats.contingency_tables.Table(counts).test_ordinal_association(), whose default scores give Cochran-Armitage); Page's L for ordered treatments in a blocked design (scipy.stats.page_trend_test). A Kruskal-Wallis p says "some group differs"; it is not evidence of a monotone trend. State the scores assigned to the levels.
  4. Counts and proportions. chi2_contingency (state whether Yates' correction was applied), fisher_exact when any expected count is below five, barnard_exact or boschloo_exact as more powerful exact alternatives. Odds ratio with interval: statsmodels.stats.contingency_tables.Table2x2(t).oddsratio_confint(); risk ratio via riskratio_confint(). Report the 2x2 table itself, not only the ratio.
  5. Correlation. Pearson for a linear relation between roughly bivariate-normal variables, Spearman otherwise; give r with its interval (scipy.stats.pearsonr(x, y).confidence_interval()) and n. Correlation on aggregated means is not correlation on individuals; say which level the r describes.

Read the full file on GitHub · 195 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. 20d ago First seen · 195 lines · 168 tokens per session scan A 11e961973cdf

Subscribe to this mod's changes

statistical-conventions is a skill published in the GitHub repository synthetic-sciences/openscience (4,025 stars, last pushed today), licensed Apache-2.0. It adds 168 tokens to every session and 3,437 once invoked, about $0.0007 per session on Opus 5.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-09-27.