Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

stat-hypothesis-testing统计假设检验

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

374

周安装

15

GitHub Stars

125

下载量

121
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stat-hypothesis-testing(统计假设检验)
来源仓库:https://github.com/asgard-ai-platform/skills
仓库路径:skills/stat-hypothesis-testing
安装命令:
npx skills add https://github.com/asgard-ai-platform/skills --skill stat-hypothesis-testing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/asgard-ai-platform/skills --skill stat-hypothesis-testing

简介

stat-hypothesis-testing 用于辅助测试设计、自动化测试和回归验证,适合在 Codex、Claude、Cursor、Gemini CLI 中编写测试用例或定位问题。

  • 适用于假设检验、统计验证等场景,如数据分析、实验评估。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需结合项目测试框架和运行命令使用。
  • 涉及浏览器或外部服务时需区分本地模拟与生产环境,避免误操作影响真实逻辑。
  • 使用前应确认测试数据和夹具配置,确保测试结果准确可靠。

SKILL.md

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

# 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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.62%
按下载量换算43

Claude

30.56%
按下载量换算37

Cursor

17.31%
按下载量换算21

Gemini CLI

9.26%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills