‹ 首页

ab-test-analysis

@phuryn · 收录于 1 周前 · 上游提交 1 周前★ 社区精选

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop recommendations. Use when evaluating experiment results, checking if a test reached significance, interpreting split test data, or deciding whether to ship a variant.

适合你,如果你经常做A/B测试并需要统计依据来决策。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add phuryn/pm-skills/ab-test-analysis
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- phuryn/pm-skills/ab-test-analysis
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify phuryn/pm-skills/ab-test-analysis
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
23265GitHub stars
~755上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 18468a9 · 表述以原文为准
它做什么

装上后,Claude 会分析 A/B 测试数据,计算统计显著性、样本量、置信区间,并给出“发布/延长/停止/调查”的建议。

什么时候触发

当你提供 A/B 测试结果数据(如 CSV、Excel 文件),或描述实验假设、指标、时长等信息时触发。

装好后可以这样说
Claude 会计算 p 值并给出建议。
Claude 会验证统计功效。
技能原文 SKILL.md作者撰写 · MIT · 18468a9
A/B Test Analysis

Evaluate A/B test results with statistical rigor and translate findings into clear product decisions.

Context

You are analyzing A/B test results for $ARGUMENTS.

If the user provides data files (CSV, Excel, or analytics exports), read and analyze them directly. Generate Python scripts for statistical calculations when needed.

Instructions
  1. Understand the experiment:
  2. What was the hypothesis?
  3. What was changed (the variant)?
  4. What is the primary metric? Any guardrail metrics?
  5. How long did the test run?
  6. What is the traffic split?
  1. Validate the test setup:
  2. Sample size: Is the sample large enough for the expected effect size?
  3. Use the formula: n = (Z²α/2 × 2 × p × (1-p)) / MDE²
  4. Flag if the test is underpowered (<80% power)
  5. Duration: Did the test run for at least 1-2 full business cycles?
  6. Randomization: Any evidence of sample ratio mismatch (SRM)?
  7. Novelty/primacy effects: Was there enough time to wash out initial behavior changes?
  1. Calculate statistical significance:
  2. Conversion rate for control and variant
  3. Relative lift: (variant - control) / control × 100
  4. p-value: Using a two-tailed z-test or chi-squared test
  5. Confidence interval: 95% CI for the difference
  6. Statistical significance: Is p < 0.05?
  7. Practical significance: Is the lift meaningful for the business?

If the user provides raw data, generate and run a Python script to calculate these.

  1. Check guardrail metrics:
  2. Did any guardrail metrics (revenue, engagement, page load time) degrade?
  3. A winning primary metric with degraded guardrails may not be a true win
  1. Interpret results:

| Outcome | Recommendation | |---|---| | Significant positive lift, no guardrail issues | Ship it — roll out to 100% | | Significant positive lift, guardrail concerns | Investigate — understand trade-offs before shipping | | Not significant, positive trend | Extend the test — need more data or larger effect | | Not significant, flat | Stop the test — no meaningful difference detected | | Significant negative lift | Don't ship — revert to control, analyze why |

  1. Provide the analysis summary: ``` ## A/B Test Results: [Test Name]

Hypothesis: [What we expected] Duration: [X days] | Sample: [N control / M variant]

| Metric | Control | Variant | Lift | p-value | Significant? | |---|---|---|---|---|---| | [Primary] | X% | Y% | +Z% | 0.0X | Yes/No | | [Guardrail] | ... | ... | ... | ... | ... |

Recommendation: [Ship / Extend / Stop / Investigate] Reasoning: [Why] Next steps: [What to do] ```

Think step by step. Save as markdown. Generate Python scripts for calculations if raw data is provided.


Further Reading
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。