ab-test-analyzer
できること
広告やページの2つのバージョンの差が本物か、それとも偶然かを確かめ、テストに必要な訪問者数を示します。GoogleやMetaで分割テストを行うマーケター向けです。
使う場面
- ✓A/Bテストの結果があり、勝ちが本物かを知りたいとき。
- ✓テストを計画していて、必要な訪問者数を知りたいとき。
- ✓テストが終わり、デバイスや流入元ごとに結果を分けて見たいとき。
スキルのリンク
https://github.com/irinabuht12-oss/marketing-skills/blob/main/skills/ab-test-analyzer/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Metaの2つの広告パターンを2週間動かしました。勝ったほうが統計的に有意かどうか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
あなたがパターン、訪問者数、コンバージョン数を渡します。スキルは、テストが十分な期間続いたかを確かめ、有意性を計算し、次に試すことを提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
A/B Test Analyzer
Evaluate A/B test results with statistical rigor and generate actionable next steps.
Process
- Collect test data - Variations, sample sizes, conversions, time period
- Check validity - Runtime, sample size, peeking issues
- Calculate significance - Z-score, p-value, confidence interval
- Segment analysis - Device, source, new vs returning
- Interpret results - Statistical vs practical significance
- Generate hypotheses - "Why it worked" and next test ideas
Sample Size Calculator
n = 2 × (Zα/2 + Zβ)² × p(1-p) / δ²
Where:
- n = sample size per variation
- Zα/2 = 1.96 (95% confidence) or 2.58 (99%)
- Zβ = 0.84 (80% power) or 1.28 (90%)
- p = baseline conversion rate
- δ = minimum detectable effect (absolute)
Quick Reference (95% confidence, 80% power):
| Baseline CR | 10% Relative MDE | 20% Relative MDE |
|---|---|---|
| 2% | 78,000/var | 19,500/var |
| 5% | 30,000/var | 7,500/var |
| 10% | 14,300/var | 3,600/var |
Significance Calculation
Z-score = (pB - pA) / √(SE²_A + SE²_B)
SE = √(p × (1-p) / n)
If |Z| > 1.96 → Significant at 95%
If |Z| > 2.58 → Significant at 99%
Validity Checklist
- Ran for minimum 14 days (day-of-week effects)
- Met required sample size before concluding
- No "peeking" at results during test (inflates false positives to 40%+)
- Traffic split was random and consistent
- No external factors (holidays, outages, campaigns)
Bayesian vs Frequentist
| Use Case | Approach |
|---|---|
| Large samples (>10K), yes/no decision | Frequentist |
| Continuous monitoring, early stopping | Bayesian |
| Regulatory/legal requirements | Frequentist |
| Want probability statements | Bayesian |
Output Format
## A/B Test Analysis
### Test Summary
- **Test Name**: [Name]
- **Hypothesis**: [What you expected]
- **Runtime**: [X days]
- **Sample Size**: Control [n] / Variant [n]
### Results
| Metric | Control | Variant | Lift | Significant? |
|--------|---------|---------|------|--------------|
| Conversion Rate | X% | Y% | +Z% | ✅/❌ |
### Statistical Details
- Z-score: [X]
- P-value: [X]
- Confidence Interval: [X% to Y%]
- Power achieved: [X]%
### Validity Assessment
- ✅/❌ Minimum runtime met
- ✅/❌ Sample size requirement met
- ✅/❌ No external confounds identified
### Segment Breakdown
| Segment | Control CR | Variant CR | Lift | Notes |
|---------|-----------|------------|------|-------|
| Mobile | | | | |
| Desktop | | | | |
### Interpretation
[Statistical significance vs practical significance discussion]
### "Why It Worked" Hypotheses
1. [Hypothesis about mechanism]
2. [Alternative explanation]
### Next Test Ideas
1. [Follow-up test based on learnings]
2. [Adjacent hypothesis to explore]
### Confidence Level: [HIGH/MEDIUM/LOW]
Example
Input: "Tested new headline. Control: 10,000 visitors, 250 conversions. Variant: 10,000 visitors, 300 conversions. Ran for 7 days."
Output:
## A/B Test Analysis
### Test Summary
- **Hypothesis**: New headline increases conversions
- **Runtime**: 7 days ⚠️
- **Sample Size**: Control 10,000 / Variant 10,000
### Results
| Metric | Control | Variant | Lift | Significant? |
|--------|---------|---------|------|--------------|
| Conversion Rate | 2.5% | 3.0% | +20% | ✅ Yes (95%) |
### Statistical Details
- Z-score: 2.28
- P-value: 0.023
- Confidence Interval: +2.3% to +37.7%
- Power achieved: 62% ⚠️
### Validity Assessment
- ❌ Minimum runtime NOT met (7 days < 14 days recommended)
- ⚠️ Sample size marginal for 20% MDE
- ❓ Cannot assess external confounds without more context
### Interpretation
Result is **statistically significant** but validity concerns exist:
1. 7-day runtime may miss day-of-week patterns
2. Wide confidence interval (+2% to +38%) indicates uncertainty
3. Recommend extending test 7 more days to confirm
### "Why It Worked" Hypotheses
1. New headline more clearly communicates value proposition
2. Specificity/numbers in headline increased credibility
### Next Test Ideas
1. Test headline variations that emphasize the winning element
2. Apply same messaging pattern to subheadline
### Confidence Level: MEDIUM
Statistical significance achieved, but short runtime reduces confidence.
Guidelines
- Never declare a winner without checking validity
- Distinguish statistical significance from practical significance
- If test ran <7 days, always recommend extending
よくある質問
ここでの有意とはどういう意味ですか?
スキルが使う信頼区間、通常は95パーセントで、その差が偶然とは考えにくいという意味です。
テストの途中で結果を早く見てはいけないのですか?
はい。テスト中に結果を何度も見ると、誤った勝ちを見つける可能性が上がるため、スキルは早すぎる確認を警告します。
テストはどのくらい続けるべきですか?
スキルは、曜日による違いを捉えるため、最低14日間を推奨しています。さらに、サンプルサイズに届くだけの訪問者も必要です。
詳細
作者による元の説明
Statistical significance calculator for A/B test results with sample size requirements, segment breakdowns, and hypothesis generation. Use when feeding test results, checking statistical significance, calculating sample sizes, analyzing experiment outcomes, or generating next test ideas based on results. Platform: Google and Meta.
人気
- GitHubのスター
- 6.7k
- ランキング
- #13735
- ライセンス
- —
- 更新日
- 2026/10/27
コメント
- …
このリポジトリの他のスキル
ab-test-setup-and-analysis
6.7kエージェントが、広告やランディングページに対して公平な分割テストを設計し、結果が本当に有意なときだけ勝ちを決められるよう支援します。
account-structure-review
6.7kエージェントが、Googleの広告とMetaの広告のキャンペーン構成を確認し、分割しすぎたキャンペーン、予算が薄いもの、統合できる箇所を指摘します。
ad-copy-variant-generator
6.7kエージェントが、よく効く広告を分析し、勝っているフック、行動喚起、切り口を残したまま、テストできる新しい広告のバリエーションを書けるよう教えます。
ad-extension-audit
6.7kエージェントが、サイトリンクやコールアウトなどのGoogle広告の拡張機能を監査し、欠けているものや古いものを見つけ、代わりの文章を書けるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。