Agent skill

Stat Hypothesis Testing

by asgard-ai-platform in asgard-ai-platform/skills

Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection.

MITAuto-check passedData & Analytics

Install Stat Hypothesis Testing

skills CLI
$ npx skills add asgard-ai-platform/skills --skill stat-hypothesis-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asgard-ai-platform/skills stat-hypothesis-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/stat-hypothesis-testing .claude/skills/stat-hypothesis-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stat-hypothesis-testing
GitHub stars
241
Token cost
~1.1k tokens
SKILL.md length
338 words
Files
4 (incl. references)
Skills in repo
209
Repo updated
First seen
Licence
MIT

At a glance

Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection.

  • Works in 6 steps: State hypotheses: H₀ and H₁ with… → Choose test: Based on data type,… → Set α: Usually 0.05 (justify if different) → …
  • The user needs to determine whether a result is statistically significant
  • SKILL.md covers Framework, Output Format, Gotchas and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Stat Hypothesis Testing is an agent skill from asgard-ai-platform/skills. Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection. Use this skill when the user needs to determine whether a result is statistically significant, choose the right statistical test, interpret p-values correctly, or evaluate research findings — even if they say 'is this result significant', 'which statistical test should I use', or 'what does this p-value mean'.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `examples/sample_scenario.md`, `references/nonparametric-tests.md` and `references/sample-size.md`).

It sits in Data & Analytics, covering Statistics. The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to determine whether a result is statistically significant
  • Choose the right statistical test
  • Interpret p-values correctly
  • Evaluate research findings — even if they say is this result significant

Example prompts

  • “is this result significant”
  • “which statistical test should I use”
  • “what does this p-value mean”
  • “/stat-hypothesis-testing”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. State hypotheses: H₀ and H₁ with specific parameters
  2. Choose test: Based on data type, distribution, and groups (use guide above)
  3. Set α: Usually 0.05 (justify if different)
  4. Calculate: Run the test, get test statistic and p-value
  5. Decide: p < α → reject H₀; p ≥ α → fail to reject H₀
  6. Report: Effect size + confidence interval + p-value (not just "significant")

What it can do on your machine

Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stat Hypothesis Testing loads about 1.1k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 121 tokens; SKILL.md has 338 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 338 words, ~1,133 tokens.

Download SKILL.mdSave it as .claude/skills/stat-hypothesis-testing/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
stat-hypothesis-testing
description
Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection. Use this skill when the user needs to determine whether a result is statistically significant, choose the right statistical test, interpret p-values correctly, or evaluate research findings — even if they say 'is this result significant', 'which statistical test should I use', or 'what does this p-value mean'.
metadata.category
WP-21 設計/資訊/傳播/公衛
metadata.tags
statistics, hypothesis-testing, p-value, inference

Hypothesis Testing

Framework

IRON LAW: Statistical Significance ≠ Practical Significance

A p-value < 0.05 means the result is unlikely under the null hypothesis.
It does NOT mean the result is important, large, or practically meaningful.
With a large enough sample, a 0.1% conversion rate difference becomes
"statistically significant" but is practically worthless.

ALWAYS report effect size alongside p-value.
IRON LAW: State Hypotheses BEFORE Looking at Data

H₀ (null) and H₁ (alternative) must be defined before data analysis.
Choosing hypotheses after seeing the data = p-hacking = scientific fraud.
"We found an interesting pattern, let's test it on the same data" is invalid.
Core Concepts
ConceptDefinition
H₀ (Null)Default assumption: no effect, no difference
H₁ (Alternative)What you want to show: there IS an effect/difference
p-valueProbability of seeing this result (or more extreme) IF H₀ is true
α (significance level)Threshold for rejecting H₀ (typically 0.05)
Type I error (α)Rejecting H₀ when it's actually true (false positive)
Type II error (β)Failing to reject H₀ when H₁ is true (false negative)
Power (1-β)Probability of detecting a real effect (target: ≥ 0.8)
Effect sizeMagnitude of the difference (Cohen's d, odds ratio, R²)
Test Selection Guide
Data TypeGroupsTest
Continuous, normal, 2 groupsIndependentIndependent t-test
Continuous, normal, 2 groupsPaired/before-afterPaired t-test
Continuous, normal, 3+ groupsIndependentOne-way ANOVA
Continuous, non-normal2 groupsMann-Whitney U
Categorical2+ groupsChi-square test
Continuous, relationship2 variablesPearson correlation (normal) / Spearman (non-normal)
Binary outcomePredictorsLogistic regression
Testing Process
  1. State hypotheses: H₀ and H₁ with specific parameters
  2. Choose test: Based on data type, distribution, and groups (use guide above)
  3. Set α: Usually 0.05 (justify if different)
  4. Calculate: Run the test, get test statistic and p-value
  5. Decide: p < α → reject H₀; p ≥ α → fail to reject H₀
  6. Report: Effect size + confidence interval + p-value (not just "significant")

Output Format

markdown
# Hypothesis Test: {Research Question}

## Hypotheses
- H₀: {null — no effect/difference}
- H₁: {alternative — there IS an effect/difference}
- α = {0.05 or other}

## Test Selection
- Test: {name}
- Rationale: {why this test fits the data}
- Assumptions checked: {normality, independence, equal variance}

## Results
- Test statistic: {value}
- p-value: {value}
- Effect size: {value and interpretation}
- 95% CI: [{lower}, {upper}]

## Decision
{Reject / Fail to reject H₀}

## Interpretation
{What this means in practical terms, with effect size context}

Gotchas

  • "Fail to reject H₀" ≠ "H₀ is true": Absence of evidence is not evidence of absence. You may lack power to detect a real effect.
  • Multiple comparisons inflate Type I error: Testing 20 hypotheses at α=0.05 → expect 1 false positive by chance. Apply Bonferroni or FDR correction.
  • Check assumptions before testing: t-test assumes normality and equal variance. Violating assumptions invalidates results. Use non-parametric alternatives when assumptions fail.
  • Sample size determines power: Small samples miss real effects (Type II error). Calculate required sample size BEFORE collecting data.
  • p-value is NOT the probability that H₀ is true: It's the probability of the data given H₀. These are fundamentally different things (base rate fallacy).

References

  • For sample size calculation, see references/sample-size.md
  • For non-parametric test alternatives, see references/nonparametric-tests.md

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in stat-hypothesis-testing of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_scenario.md
  • references/nonparametric-tests.md
  • references/sample-size.md

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Stat Hypothesis Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stat Hypothesis Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stat Hypothesis Testing this skillasgard-ai-platform/skills241—~1.1kAutomated safety check: PassMIT
Sandbox Benchvercel/next.js143k—~4.1kAutomated safety check: PassMIT
Statistical Analysisspacering-net/codeg3.8k4 repos~5kAutomated safety check: PassMIT
StatsmodelszLanqing/codex-claude-academic-skills4.6k16 repos~4.9kAutomated safety check: PassBSD-3-Clause
Statistical Powerspacering-net/codeg3.8k2 repos~3.6kAutomated safety check: NotesMIT
AI Daily DigestvigorX777/ai-daily-digest1.6k—~1.3kAutomated safety check: PassNone

Similar skills

  • Sandbox Bench

    vercel/next.js

    Official

    Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…

    143k GitHub stars~4.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Statistical Analysis

    spacering-net/codeg

    Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.

    3.8k GitHub starsUsed in 4 repos~5k tokens
    Data & AnalyticsAuto-check passed
  • Statsmodels

    zLanqing/codex-claude-academic-skills

    Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 16 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Statistical Power

    spacering-net/codeg

    Sample-size and statistical power calculations for planning studies.

    3.8k GitHub starsUsed in 2 repos~3.6k tokens
    Data & AnalyticsAuto-check: notes
  • AI Daily Digest

    vigorX777/ai-daily-digest

    Fetches RSS feeds from 90 top Hacker News blogs (curated by Karpathy), uses AI to score and filter articles, and generates a daily digest in Markdown with Chinese-translated titles, category…

    1.6k GitHub stars~1.3k tokensUpdated 7 mo ago
    Data & AnalyticsAuto-check passed
  • Agent Session Monitor

    higress-group/higress

    Real-time agent conversation monitoring - monitors Higress access logs, aggregates conversations by session, tracks token usage.

    9.5k GitHub stars~3.3k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed

More from asgard-ai-platform/skills

All 209 skills in this repo
  • Algo Sc Eoq

    asgard-ai-platform/skills

    Calculate Economic Order Quantity to minimize total inventory cost (ordering + holding).

    241 GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    241 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Mfg Cpk

    asgard-ai-platform/skills

    Calculate Cpk process capability index to assess whether a process meets specification requirements.

    241 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Price Elasticity

    asgard-ai-platform/skills

    Calculate price elasticity of demand to quantify how price changes affect sales volume.

    241 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    241 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    241 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Stat Hypothesis Testing

What does Stat Hypothesis Testing do?

Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection. Stat Hypothesis Testing is an agent skill from asgard-ai-platform/skills. Conduct statistical hypothesis testing including null/alternative hypothesis formulation, p-values, Type I/II errors, and test statistic selection.

When should I use Stat Hypothesis Testing?

Stat Hypothesis Testing fits situations like: the user needs to determine whether a result is statistically significant; choose the right statistical test; interpret p-values correctly; evaluate research findings — even if they say is this result significant.

How do I install Stat Hypothesis Testing in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill stat-hypothesis-testing -a claude-code`. Or copy the skill folder (stat-hypothesis-testing in asgard-ai-platform/skills) into .claude/skills/stat-hypothesis-testing in your project. Claude Code loads it when a task matches its description.

How do I install Stat Hypothesis Testing in Codex?

Run `npx skills add asgard-ai-platform/skills --skill stat-hypothesis-testing -a codex`. Or copy the skill folder (stat-hypothesis-testing in asgard-ai-platform/skills) into .agents/skills/stat-hypothesis-testing in your project. Codex loads it when a task matches its description.

Can I use Stat Hypothesis Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill stat-hypothesis-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stat-hypothesis-testing, .gemini/skills/stat-hypothesis-testing, .github/skills/stat-hypothesis-testing and .opencode/skills/stat-hypothesis-testing in your project.

What does Stat Hypothesis Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: Stat Hypothesis Testing is instructions for the agent only.

Does Stat Hypothesis Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Stat Hypothesis Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Stat Hypothesis Testing use?

Stat Hypothesis Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stat Hypothesis Testing use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to Stat Hypothesis Testing?

Skills that share tags, products or a category with Stat Hypothesis Testing: Sandbox Bench (vercel/next.js, 143k stars), Statistical Analysis (spacering-net/codeg, 3.8k stars), Statsmodels (zLanqing/codex-claude-academic-skills, 4.6k stars) and Statistical Power (spacering-net/codeg, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stat Hypothesis Testing?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 241 GitHub stars. The repository holds 209 skills in this directory. The repository was last updated on June 6, 2026.

Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.