Agent Skillsphuryn/pm-skills › ab-test-analysis

ab-test-analysis

GitHub

用于分析A/B测试结果,验证样本量与统计显著性,检查护栏指标,并基于数据给出上线、延长或停止实验的决策建议。

pm-data-analytics/skills/ab-test-analysis/SKILL.md phuryn/pm-skills

Trigger Scenarios

评估实验结果 检查测试是否达到显著性 解释分裂测试数据 决定是否发布变体

Install

npx skills add phuryn/pm-skills --skill ab-test-analysis -g -y
More Options

Non-standard path

npx skills add https://github.com/phuryn/pm-skills/tree/main/pm-data-analytics/skills/ab-test-analysis -g -y

Use without installing

npx skills use phuryn/pm-skills@ab-test-analysis

指定 Agent (Claude Code)

npx skills add phuryn/pm-skills --skill ab-test-analysis -a claude-code -g -y

安装 repo 全部 skill

npx skills add phuryn/pm-skills --all -g -y

预览 repo 内 skill

npx skills add phuryn/pm-skills --list

SKILL.md

Frontmatter
{
    "name": "ab-test-analysis",
    "description": "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 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:

    • What was the hypothesis?
    • What was changed (the variant)?
    • What is the primary metric? Any guardrail metrics?
    • How long did the test run?
    • What is the traffic split?
  2. Validate the test setup:

    • Sample size: Is the sample large enough for the expected effect size?
      • Use the formula: n = (Z²α/2 × 2 × p × (1-p)) / MDE²
      • Flag if the test is underpowered (<80% power)
    • Duration: Did the test run for at least 1-2 full business cycles?
    • Randomization: Any evidence of sample ratio mismatch (SRM)?
    • Novelty/primacy effects: Was there enough time to wash out initial behavior changes?
  3. Calculate statistical significance:

    • Conversion rate for control and variant
    • Relative lift: (variant - control) / control × 100
    • p-value: Using a two-tailed z-test or chi-squared test
    • Confidence interval: 95% CI for the difference
    • Statistical significance: Is p < 0.05?
    • Practical significance: Is the lift meaningful for the business?

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

  4. Check guardrail metrics:

    • Did any guardrail metrics (revenue, engagement, page load time) degrade?
    • A winning primary metric with degraded guardrails may not be a true win
  5. 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
  6. 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

Version History

  • 18468a9 Current 2026-07-25 10:30

Same Skill Collection

pm-ai-shipping/skills/intended-vs-implemented/SKILL.md
pm-data-analytics/skills/cohort-analysis/SKILL.md
pm-data-analytics/skills/sql-queries/SKILL.md
pm-execution/skills/brainstorm-okrs/SKILL.md
pm-execution/skills/create-prd/SKILL.md
pm-execution/skills/dummy-dataset/SKILL.md
pm-execution/skills/job-stories/SKILL.md
pm-execution/skills/outcome-roadmap/SKILL.md
pm-execution/skills/pre-mortem/SKILL.md
pm-execution/skills/prioritization-frameworks/SKILL.md
pm-execution/skills/release-notes/SKILL.md
pm-execution/skills/retro/SKILL.md
pm-execution/skills/sprint-plan/SKILL.md
pm-execution/skills/stakeholder-map/SKILL.md
pm-execution/skills/strategy-red-team/SKILL.md
pm-execution/skills/summarize-meeting/SKILL.md
pm-execution/skills/test-scenarios/SKILL.md
pm-execution/skills/user-stories/SKILL.md
pm-execution/skills/wwas/SKILL.md
pm-go-to-market/skills/beachhead-segment/SKILL.md
pm-go-to-market/skills/competitive-battlecard/SKILL.md
pm-go-to-market/skills/growth-loops/SKILL.md
pm-go-to-market/skills/gtm-motions/SKILL.md
pm-go-to-market/skills/gtm-strategy/SKILL.md
pm-go-to-market/skills/ideal-customer-profile/SKILL.md
pm-market-research/skills/competitor-analysis/SKILL.md
pm-market-research/skills/customer-journey-map/SKILL.md
pm-market-research/skills/market-segments/SKILL.md
pm-market-research/skills/market-sizing/SKILL.md
pm-market-research/skills/sentiment-analysis/SKILL.md
pm-market-research/skills/user-personas/SKILL.md
pm-market-research/skills/user-segmentation/SKILL.md
pm-marketing-growth/skills/marketing-ideas/SKILL.md
pm-marketing-growth/skills/north-star-metric/SKILL.md
pm-marketing-growth/skills/positioning-ideas/SKILL.md
pm-marketing-growth/skills/product-name/SKILL.md
pm-marketing-growth/skills/value-prop-statements/SKILL.md
pm-product-discovery/skills/analyze-feature-requests/SKILL.md
pm-product-discovery/skills/brainstorm-experiments-existing/SKILL.md
pm-product-discovery/skills/brainstorm-experiments-new/SKILL.md
pm-product-discovery/skills/brainstorm-ideas-existing/SKILL.md
pm-product-discovery/skills/brainstorm-ideas-new/SKILL.md
pm-product-discovery/skills/identify-assumptions-existing/SKILL.md
pm-product-discovery/skills/identify-assumptions-new/SKILL.md
pm-product-discovery/skills/interview-script/SKILL.md
pm-product-discovery/skills/metrics-dashboard/SKILL.md
pm-product-discovery/skills/opportunity-solution-tree/SKILL.md
pm-product-discovery/skills/prioritize-assumptions/SKILL.md
pm-product-discovery/skills/prioritize-features/SKILL.md

Metadata

Files
0
Version
18468a9
Hash
99569666
Indexed
2026-07-25 10:30

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 02:20
浙ICP备14020137号-1 $방문자$