ab-test-analyzer
What it does
Checks whether the difference between two versions of an ad or page is real or just chance, and says how many visitors a test needs. It is for marketers who run split tests on Google or Meta.
When to use it
- ✓When you have results from an A/B test and want to know whether a winner is real.
- ✓When you are planning a test and need to know how many visitors it requires.
- ✓When a test has finished and you want to break the results down by device or traffic source.
Skill link
https://github.com/irinabuht12-oss/marketing-skills/blob/main/skills/ab-test-analyzer/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My two Meta ad variants ran for two weeks. Tell me whether the winner is statistically significant.”
5 new skills a week. 1 minute to read.
How it works
You give the variants, visitor counts and conversions. The skill checks that the test ran long enough, calculates the significance and suggests what to try next.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What does significant mean here?
It means the difference is unlikely to be chance at the confidence level the skill uses, usually 95 percent.
Why should I not check results early?
Looking at results again and again during a test raises the chance of a false winner, so the skill warns against it.
How long should a test run?
The skill recommends at least 14 days to cover day-of-week effects, plus enough visitors to reach the sample size.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 6.7k
- Ranking position
- #13735
- License
- —
- Updated
- 10/27/2026
Comments
- …
More skills from this repository
ab-test-setup-and-analysis
6.7kHelps your agent design a fair split test for ads or landing pages, then call a winner only when the results are truly significant.
account-structure-review
6.7kHelps your agent review your Google and Meta campaign structure, flagging over-split campaigns, thin budgets and chances to combine them.
ad-copy-variant-generator
6.7kTeaches your agent to study your best ads and write new variants that keep the winning hooks, calls to action and angles while testing changes.
ad-extension-audit
6.7kHelps your agent audit Google Ads extensions such as sitelinks and callouts, find what is missing or outdated, and write replacements.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.