test-significance

Tests whether a two-group difference is real or sampling noise, reporting p-value, confidence interval, and effect size.

4|1|Updated Jul 30, 2026
One-click install
npx skills add https://github.com/radarist/structured-analytic-skills --skill test-significance-radarist
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-significance
Source: https://github.com/radarist/structured-analytic-skills/tree/main/skills/test-significance
Command: npx skills add https://github.com/radarist/structured-analytic-skills --skill test-significance-radarist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Claims like "Model A scored 87% vs Model B's 85%" or "the new variant lifted conversion 12%" are routinely treated as real differences when they may be sampling noise — or dismissed when they are real. This Skill decides whether a reported gap between two groups is statistically distinguishable from noise, and forces the full picture: p-value, 95% confidence interval on the difference, and an effect size, never a bare verdict. ## Core Features & Use Cases - Test selection by data type: pooled two-proportion z-test, Fisher's exact for small counts, chi-square, Welch's t-test for unequal variances, and paired t-test for repeated measures, with a selection table in references/tests-and-effect-sizes.md. - Deterministic companion tool: scripts/significance.py (standard library only, Python 3.9+) computes exact p-values, confidence intervals, Cohen's h/d, and Hedges' g, with a 12-check self-test verified against published examples. - Guardrails built in: flags underpowered tests, multiplicity across many comparisons, unstated sample sizes (reported as unverifiable), and the anti-pattern of calling a non-significant result "equivalent". - Use Case: A vendor claims their model beat a competitor 87% to 85% on a 500-item benchmark. The Skill converts the rates back to counts, runs a two-proportion test, and shows the gap is within sampling noise — without declaring the models equivalent. ## Quick Start Ask the AI to run a significance test on your two-group comparison, for example: "Control converted 96 out of 800 and treatment 128 out of 800 — is this A/B result significant, and what is the confidence interval on the difference?"

Frequently Asked Questions about test-significance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test whether an A/B test result is statistically significant?▼

Provide the raw counts for each group (successes out of total), and the Skill runs a pooled two-proportion z-test when expected cell counts are at least 5, or Fisher's exact test for small counts. It reports the two-sided p-value, the 95% confidence interval on the difference, and Cohen's h.

Which significance test should I use for two proportions vs two means?▼

Use a pooled two-proportion z-test for rates like conversion or accuracy, Fisher's exact when any expected cell count is below 5, and Welch's t-test for means with unequal variances. Paired t-test applies when the same units are measured under both conditions.

Why is a p-value alone not enough to judge a result?▼

A p-value only indicates the result is probably not noise; it says nothing about size or precision. The Skill always reports the confidence interval on the difference and an effect size, because a significant result can be practically trivial at large sample sizes.

Can I check a comparison that only reports a percentage lift without sample sizes?▼

No. A claim like "+12% over baseline" with no sample sizes cannot be tested, and the Skill marks it unverifiable rather than guessing. You need each group's metric value and sample size, ideally raw counts.

What Python dependencies does the significance testing script require?▼

None beyond the standard library. scripts/significance.py runs on Python 3.9+ using only math and argparse, implementing exact t-distribution p-values via the regularized incomplete beta function, and includes a --selftest mode with 12 hand-verified checks.

When should I use meta-analysis or experimental-design instead of a significance test?▼

Use meta-analysis when pooling several studies of the same effect into one estimate, and experimental-design when no data exist yet and you need sample size and power planning. This Skill only evaluates a single completed two-group comparison.