ab-test-analyzer
Skill này làm gì
Kiểm tra xem khác biệt giữa hai phiên bản của một quảng cáo hoặc trang là thật hay chỉ do ngẫu nhiên, và cho biết một test cần bao nhiêu khách truy cập. Nó dành cho nhà tiếp thị chạy split test trên Google hoặc Meta.
Khi nào nên dùng
- ✓Khi bạn có kết quả A/B test và muốn biết một người thắng có thật không.
- ✓Khi bạn đang lên kế hoạch test và cần biết nó cần bao nhiêu khách truy cập.
- ✓Khi một test đã kết thúc và bạn muốn phân tích kết quả theo thiết bị hoặc nguồn lưu lượng.
Liên kết skill
https://github.com/irinabuht12-oss/marketing-skills/blob/main/skills/ab-test-analyzer/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hai biến thể quảng cáo Meta của tôi đã chạy hai tuần. Hãy cho tôi biết người thắng có ý nghĩa thống kê không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn đưa các biến thể, số lượt truy cập và chuyển đổi. Skill kiểm tra test đã chạy đủ lâu chưa, tính mức ý nghĩa thống kê và đề xuất điều nên thử tiếp theo.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Ý nghĩa thống kê ở đây nghĩa là gì?
Nghĩa là khác biệt khó có thể do ngẫu nhiên ở mức độ tin cậy mà skill dùng, thường là 95 phần trăm.
Vì sao không nên xem kết quả sớm?
Xem lại kết quả nhiều lần trong lúc test làm tăng khả năng có một người thắng giả, nên skill cảnh báo điều này.
Một test nên chạy bao lâu?
Skill khuyến nghị ít nhất 14 ngày để bao phủ hiệu ứng theo thứ trong tuần, cộng với đủ khách truy cập để đạt cỡ mẫu.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.7k
- Vị trí xếp hạng
- #13735
- Giấy phép
- —
- Cập nhật
- 27/10/2026
Bình luận
- …
Thêm skill từ kho mã này
ab-test-setup-and-analysis
6.7kGiúp agent của bạn thiết kế một split test công bằng cho quảng cáo hoặc trang đích, rồi chỉ công bố người thắng khi kết quả thực sự có ý nghĩa.
account-structure-review
6.7kGiúp agent của bạn rà soát cấu trúc chiến dịch Google và Meta, đánh dấu các chiến dịch bị chia quá nhỏ, ngân sách mỏng và cơ hội gộp chúng lại.
ad-copy-variant-generator
6.7kDạy agent của bạn nghiên cứu quảng cáo tốt nhất và viết biến thể mới, giữ hook, lời kêu gọi hành động và góc tiếp cận đã hiệu quả khi thử thay đổi.
ad-extension-audit
6.7kGiúp agent của bạn kiểm toán tiện ích Google Ads như sitelink và callout, tìm những gì còn thiếu hoặc đã cũ, và viết thay thế.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.