Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs and analyzes A/B tests end-to-end — frames a sharp hypothesis, computes required sample size and test duration, runs significance tests (two-proportion z-test, Welch's t-test, chi-square), reports confidence intervals and lift, and flags common pitfalls like peeking, multiple comparisons, and Simpson's paradox. Use this skill when the user mentions A/B testing, split testing, experiment design, conversion-rate experiments, statistical significance, p-values, sample size or power calculat
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | 110% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 85% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 69% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 52% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 33% | 0% |
This skill helps design and analyze controlled online experiments (A/B and A/B/n tests) with statistical rigor and honest interpretation. It covers the full lifecycle: hypothesis framing, sample-size and duration planning, choosing the right test, computing p-values and confidence intervals, and avoiding the traps that produce false wins.
Keywords: A/B test, split test, experiment, hypothesis, sample size, power, MDE, minimum detectable effect, statistical significance, p-value, confidence interval, conversion rate, lift, two-proportion z-test, t-test, chi-square, peeking, multiple comparisons, Simpson's paradox, SRM, novelty effect.
Use this skill whenever someone wants to plan an experiment, decide if a result is real, or sanity-check an analysis someone else did.
P(data this extreme or more | null is true) — NOT the probability the null is true, and NOT the probability your variant is better.Follow these steps in order. Do not skip planning steps even when only asked to "analyze results" — verify the plan was sound first.
references/methodology.md for OEC selection.b).scripts/abtest.py size. Divide required N per arm by daily eligible traffic per arm to get duration in days. Round duration UP to full weeks to cover weekday/weekend seasonality (min 1 week, ideally 2).scripts/abtest.py srm. If p < 0.001, the experiment is broken — do NOT trust the result.scripts/abtest.py prop (rates) or scripts/abtest.py ttest (means). Report: effect size (absolute + relative lift), confidence interval, p-value, and whether it crossed alpha.references/interpretation-guide.md.references/methodology.md.templates/experiment-report.md so decisions are reproducible and reviewable.| Metric | Variants | Test | Script command | |---|---|---|---| | Rate / proportion | 2 | Two-proportion z-test | abtest.py prop | | Rate / proportion | >2 | Chi-square (then pairwise + correction) | abtest.py chisq | | Continuous mean | 2 | Welch's t-test | abtest.py ttest | | Continuous mean | >2 | ANOVA + post-hoc (use a stats lib) | external | | Any | — | Sample size planning | abtest.py size | | Any | — | SRM / sanity check | abtest.py srm |
Baseline conversion 10%, want to detect a relative +5% (→ 10.5% absolute), alpha 0.05, power 0.80, two-sided:
python scripts/abtest.py size --baseline 0.10 --mde-rel 0.05 --alpha 0.05 --power 0.80→ ~ 58,000 users per arm. At 4,000 eligible users/arm/day → ~15 days → round to 2 full weeks.
After the test, control 5,800/58,000 = 10.00%, treatment 6,150/58,000 = 10.60%:
python scripts/abtest.py prop --c-conv 5800 --c-n 58000 --t-conv 6150 --t-n 58000→ absolute lift +0.60pp, relative +6.0%, 95% CI on absolute difference, and a p-value. Decide using the CI, not just the p-value. See examples/conversion-test.md for the full walkthrough.
See references/pitfalls-checklist.md for a pre-launch and pre-decision checklist to run every time.
scripts/abtest.py — runnable, stdlib-only calculator: sample size, two-proportion z-test, Welch's t-test, chi-square, SRM. Run python scripts/abtest.py --help.references/methodology.md — deep dive on hypotheses, OEC, power, MDE, multiplicity corrections, sequential testing, Bayesian alternative.references/interpretation-guide.md — how to read p-values, CIs, and what each outcome (sig/non-sig × big/small effect) actually means for a ship decision.references/pitfalls-checklist.md — copy-paste checklist for design and analysis review.templates/experiment-report.md — fill-in template for documenting an experiment.examples/conversion-test.md — a complete end-to-end worked example.Other measured skills in the registry, with their headline benchmark lift.