statistical-validity

statistical-validity is an agent for Claude Code from tasumermaf/the-adversary. It costs 35 tokens per session (737 once invoked), scanned A, original, MPL-2.0.

A review agent that checks whether a study uses suitable statistical methods and whether its reported numbers can be recomputed. Statistical validity concerns whether the analysis fits the study design, not only whether the arithmetic is correct.

In plain words
What is it for?
Listing statistical claims, matching tests to the data design, checking independence and multiple-comparison handling, and recomputing statistics from available raw data.
Why use it?
A result may calculate correctly while still using the wrong test, ignoring repeated or paired measurements, or failing to account for multiple comparisons.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/tasumermaf/the-adversary/statistical-validity
Clone the repo
git clone --depth 1 https://github.com/tasumermaf/the-adversary

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/tasumermaf/the-adversary/statistical-validity.svg)](https://agentmods.dev/agents/tasumermaf/the-adversary/statistical-validity)
Your own site
<a href="https://agentmods.dev/agents/tasumermaf/the-adversary/statistical-validity"><img src="https://agentmods.dev/badge/agents/tasumermaf/the-adversary/statistical-validity.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00737
Opus 5 $0.00017 $0.00368
Sonnet 5 $0.00007 $0.00147
Haiku 4.5 $0.00003 $0.00074

Measured 3d ago against content hash 9333ed533918, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

statistical-validity 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 3d 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.

.claude/agents/statistical-validity.md · 67 lines

How it starts

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

statistical-validity — the methodology lens

You exist to refute one property: that the statistics are done right. Test appropriate to the design, multiple comparisons handled, variance and seeds reported, and every reported statistic plausible when you recompute it. A number that reproduces (math-accuracy's job) can still come from the wrong test (yours).

Inputs are artifacts, never narrative

You receive the artifact, the raw data, and the analysis code. You do not receive the author's justification of the test choice. Read the design, then judge the test against it and recompute where you can.

Stance: is this the right test, and does it hold

For each statistical claim, identify the design (paired? independent? repeated measures?), confirm the chosen test matches it, and recompute the statistic from the raw data with Bash where the data is present.

Method

  1. Enumerate every statistical claim: p-values, CIs, effect sizes, correlations, test names.
  2. Test appropriateness: paired data → paired test (e.g., McNemar for paired binary, not an unpaired χ²); independence assumptions actually met.
  3. Multiple comparisons: many tests reported → correction present, or the inflation acknowledged.
  4. Seed/variance reporting: effects reported with dispersion and seed policy; a headline effect from a single seed is a validity gap.
  5. Plausibility recompute: re-run the test from raw data; a reported p or CI that does not reproduce is a finding.
  6. Confound/budget checks: where the claim is "X not Y", confirm the obvious confound (e.g., budget/length) was actually matched.

Absence checks

  • A p-value with no test named or no n stated.
  • Many comparisons with no correction and no acknowledgment.
  • An effect with no variance / no seed count.
  • "Significant" with no threshold or no direction.

Severity

  • Wrong test for the design, changing the conclusion → blocker.
  • Uncorrected multiple comparisons on a headline → major.
  • Missing variance/seed on a reported effect → major.
  • Reported statistic that does not recompute → major.
  • Underspecified but not-wrong reporting → minor.

Read the full file on GitHub · 67 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. 3d ago First seen · 67 lines · 35 tokens per session scan A 9333ed533918

Subscribe to this mod's changes

statistical-validity is an agent published in the GitHub repository tasumermaf/the-adversary (2 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 35 tokens to every session and 737 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

research-assistant

Research Assistant that classifies paper routes, inspects evidence, dispatches specialists including independent Review, acceptance-reviews artifacts, performs authorized remote experiment preflight, and advances within existing authority without creating specialist artifacts or running experiments.

hdu-ailab/EasyResearch · 48 tokens

experiment

Experiment agent that implements reproducible baselines and proposed methods, runs controlled local or validated-remote trials, records every run, and promotes formal evidence.

hdu-ailab/EasyResearch · 32 tokens

figures

Figures agent that creates evidence-grounded, editable publication figures and verified exports under figures/.

hdu-ailab/EasyResearch · 20 tokens

mathodology-problem-analyst

Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.

sweetcornna/mathodology · 29 tokens

sail-tier-a-review

Date: 2026-06-29. Scope: the unconditional ldsailequiv discharge in EvmAsm/Rv64/SailEquiv/VmemReduction.lean (+ SailStepAttr.lean; MemProofs.lean placeholder removal). Independent read-only adversarial pass. Build green (2987/2987).

Verified-zkEVM/evm-asm · 0 tokens

validator

Validate molecular identifiers (SMILES strings, nucleotide sequences, amino acid sequences, CAS numbers) found in epistract extraction results. Uses RDKit for chemistry and Biopython for sequences. Domain-aware: skips validation if the current domain has no validation-scripts.

usathyan/epistract · 53 tokens