首页 / Skills / 品牌与营销 / A/B 测试与实验 A/B Testing
品牌与营销

A/B 测试与实验 A/B Testing

Corey HainesMITSkill 语言: 英文
协议已核对不含脚本低风险
演示真实运行记录 · claude-sonnet-5-5 · 2026年10月
Using the ab-testing skill, plan a test for the signup page headline of a fictional app. Baseline signup conversion is 4%, the page gets about 8,000 visitors a week, and we want to detect a 15% relative lift. Tell me whether we have enough traffic, how long to run it, and what to write down before we start.
Skill: ab-testing

Signup headline test plan

Do we have enough traffic?

Yes, but only just. At 8,000 visitors a week, a 15% relative lift is detectable in about 5 weeks.

Input Value
Baseline conversion 4.0%
Target (15% relative lift) 4.6% (+0.6 points absolute)
Significance / power 95% (two-sided) / 80%
Sample size about 18,000 visitors per variant, about 36,000 total

This uses the standard two-proportion formula. Check it against Evan Miller's calculator before launch. Expect small differences of a few hundred visitors.

How long to run it

  • 36,000 visitors at 8,000 a week is 4.5 weeks. Run it for 5 full weeks with a 50/50 split, which is about 40,000 visitors.
  • Use whole weeks so every weekday and weekend is represented equally.
  • Don't stop early, even if it looks significant at week 2. Peeking inflates false positives.
  • Don't extend it either if it's flat at week 5. Call it inconclusive.

Sensitivity to the lift you target:

Detectable lift Per variant Duration
20% relative (4.8%) about 10,300 about 3 weeks
15% relative (4.6%) about 18,000 about 5 weeks
10% relative (4.4%) about 39,500 about 10 weeks

Headline tests often produce lifts under 15%. If the true effect is 10%, this test will probably miss it, so you'd see "no significant difference" even though the headline helps. Only run it if a 15% lift is the smallest result worth acting on. If you want to detect smaller effects, test a bolder change than a wording tweak, such as a different value proposition rather than a rephrase.

Constraints:

  • Two variants only. An A/B/C test would need about 7 weeks.
  • Counting visitors. The 8,000 must be unique visitors who see the headline, not sessions or page views. If it's sessions, the test will take longer.

What to write down before starting

  1. Hypothesis, in the skill's format: Because [evidence, e.g. session recordings, survey responses, or ad-to-page message mismatch], we believe [new headline] will cause [higher signup conversion] for [new visitors to the signup page]. We'll know this is true when conversion rises from 4.0% to at least 4.6% at 95% confidence. Without real evidence in the "because" clause, you're guessing.
  2. Variants. Screenshots of control and variant, with the exact copy. Change only the headline.
  3. Primary metric. Unique visitor to completed signup, with a precise definition of "completed" (submitted form or verified email). Decide this now.
  4. Secondary metrics. Signup-form start rate, scroll depth, and time on page. These help explain why it worked or didn't.
  5. Guardrail metrics. Activation or week-1 retention of signups, and bounce rate. A headline that over-promises can lift signups and attract low-quality users. Define the stop rule: halt if a guardrail is significantly negative.
  6. Test parameters.
    • Sample size per variant (about 18,000), power, alpha, and the MDE (15% relative).
    • Fixed end date, about 5 weeks out.
    • 50/50 split with persistent assignment, so returning visitors see the same variant.
    • Population, including whether to exclude internal and bot traffic.
  7. Decision rules.
    • Ship if the variant is significant and positive with no guardrail harm.
    • Keep control if it's significant and negative.
    • If it's flat, treat it as inconclusive, not as evidence of no effect.
    • Note which segments you'll look at (device, new vs. returning, traffic source). Fix these now to avoid cherry-picking later.
  8. Implementation notes.
    • Server-side or client-side. Client-side can flicker on a headline, so prefer server-side or an anti-flicker setup.
    • Tracking verified on both variants.
    • A sample ratio mismatch (SRM) check planned. The split should land close to 50/50.
  9. Risks and external factors. Planned campaigns, launches, seasonality, or traffic-source changes during the 5 weeks. Log anything that happens. Avoid adding new traffic sources mid-test.
  10. Pre-launch QA. Check both variants on mobile and desktop, and confirm events fire.

When it finishes, record the outcome in the playbook format: result with CI and p-value, guardrails, segment deltas, the reusable pattern, and status.

If you give me the actual control headline and candidate variant, I can draft the hypothesis and a few evidence-based headline options.

Real run in an isolated folder with only this skill installed. Only the Skill and Read tools were enabled, so nothing was fetched from the web and no file was written. The example is fictional. The traffic numbers are invented.

它做什么

帮助设计可信的实验。内容包括假设模板(“因为 X,我们相信 Y 会让受众 W 产生 Z,指标 M 变化就说明成立”)、测试类型(A/B、A/B/n、多变量、分流网址)、按基线和预期提升列出的样本量速查表、主要指标、次要指标和护栏指标、改什么、流量分配、客户端与服务端实现、上线前检查清单、“偷看”问题,以及带各种结果解读方法的分析清单。第二部分把单次测试升级成一套体系:实验循环、ICE 优先级评分、实验速度目标、打法手册条目模板,以及每周、每两周、每月和每季度的节奏。参考文档包括测试模板和样本量指南。

工作方式

  1. 询问基线转化率、流量、改动内容和值得检测的最小提升。
  2. 判断流量够不够,并估算需要的时长。
  3. 写出假设、指标,以及上线前该记录什么。

适合什么场景

要判断某个改动是否更好的人,以及想养成常态化实验习惯的团队。

说明与风险

低风险:纯指令文件,没有脚本,不联网、不写文件。其中的样本量数字和体系目标(比如每月 4~8 个实验、20%~30% 的胜率)都是经验法则,做真实决策请用专业的计算器,Skill 里附了两个公开的链接。它不会运行测试,也读不到你的分析数据,所以无法告诉你真实测试的结果。部分链接指向本包不包含的姊妹 Skill 和工具指南。已用虚构的流量数字试用过一次。