首頁 / 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 與工具指南。已用虛構的流量數字試用過一次。