Plan an A/B Test for a Values Card in Signup
Statistics & ExperimentsModel answerLast updated
Design a complete experiment plan for a new onboarding screen: metrics, randomization, sample size, sensitivity boosts, and validity checks such as SRM and novelty effects.
Scenario
A streaming service wants to add a "company values" summary card to its signup flow. The card appears right before a new member picks their first viewing profile. The product team believes it builds affinity with the brand and will improve long-term retention.
You are the data scientist asked to evaluate this change with an experiment.
What to deliver
Write an experiment plan that a product manager could follow without you in the room. It should cover:
- Hypothesis and metrics. State the primary success metric and at least two guardrail metrics that would reveal harmful side effects.
- Experimental design. Choose the unit of randomization, explain the assignment mechanism, and describe how you keep the experiment clean.
- Power and sensitivity. Explain how you would size the sample. If the primary metric moves only slightly or has a low base rate, say which techniques you would use to make the test more sensitive.
- Validity. Describe how you would detect Sample Ratio Mismatch (SRM), and how you would separate a short-lived novelty effect from a lasting behavior change.
Also state the decision rule you would hand to the PM, and be ready for this follow-up: what if retention improves but fewer people finish signup?
Hints
Hint 1
Retention takes weeks to observe. Think about which denominator keeps the comparison causal when the new screen might make some people abandon signup, and about a validated early proxy.
Hint 2
The card is shown once per new member, and a household shares one account. Consider what that implies for the unit of randomization, and which users could actually be affected by the change (triggering).
Hint 3
For sensitivity, new users have no viewing history, so classic CUPED needs different covariates. For validity, compare observed arm counts to the planned split with a chi-square test, and plot the effect against days since exposure.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The question tests whether you can turn a vague belief ("builds brand affinity") into measurable outcomes, randomize correctly for a one-time exposure, handle a slow metric, and catch validity threats before they drive a decision.
The main trap: if the card makes some people abandon signup, then retention among completers is no longer a fair comparison. The design must protect against that.
1. Hypothesis and metrics
Hypothesis. Showing the card before first profile selection raises the share of new members still subscribed after the first renewal, without materially hurting signup completion or early engagement.
Primary metric: month-1 paid retention, defined as the fraction of assigned accounts still subscribed after the first renewal.
- Use all assigned accounts as the denominator (intent-to-treat), not just those who finished signup. This avoids survivorship and selection bias.
- It takes 30+ days to observe, so pair it with a leading indicator such as active streaming days in the first 14 days. Use that only if history shows it predicts renewal.
Guardrails (each with a pre-set non-inferiority margin, e.g. completion may not drop by more than 0.3 percentage points):
| Guardrail | Reason |
|---|---|
| Signup completion (profile created) | The card adds friction |
| Time to first play / first-session play rate | Delays the "aha" moment |
| Cancellations within 7 days | Catches strong negative reactions |
| Screen latency and client error rate | Technical health |
| Support contacts per account | Signals confusion |
2. Experimental design
Unit: the account. The card is shown once, retention is measured per account, and a household shares an account. Session-level randomization would let one person see the card in one session and not another, contaminating both arms.
Assignment
- Hash the account ID with an experiment-specific salt, 50/50 split, so assignment is deterministic and stable.
- Trigger at the moment a user reaches the pre-profile step. Users who never reach it cannot be affected and only dilute power.
- Log a "would have shown" event for control so both arms are triggered identically.
Keeping it clean
- Avoid or orthogonalize overlapping signup experiments.
- Exclude internal, test, and bot accounts.
- Run whole weeks to balance day-of-week effects.
- Pre-register metrics, MDE, duration, and the decision rule.
- Do not peek; if early monitoring is needed, use sequential testing.
3. Power and sensitivity
For a two-proportion test:
$$n_{\text{per arm}} = \frac{2,(z_{\alpha/2}+z_\beta)^2,p(1-p)}{\delta^2}$$
Example: baseline p = 0.90, MDE δ = 0.5 pp, α = 0.05, power 80% gives (1.96 + 0.84)² = 7.84, so
$$n \approx \frac{2 \times 7.84 \times 0.09}{0.005^2} \approx 56{,}450 \text{ per arm}.$$
Divide by daily triggered signups for enrollment time, then add ~30 days of follow-up.
Improving sensitivity
- Regression adjustment / CUPED. Variance shrinks by a factor of (1 − ρ²). New users lack viewing history, so use pre-treatment covariates: acquisition channel, device, country, plan, and behavior earlier in signup. For rejoiners, past tenure and viewing are strong.
- Stratified randomization or post-stratification by device and region.
- Triggered analysis to exclude users who could not be affected.
- Validated leading metrics for a faster read.
- Winsorizing heavy-tailed continuous metrics such as watch hours.
4. Validity
SRM
- Run a chi-square goodness-of-fit test of assigned counts against the intended 50/50 split; alert at p < 0.001.
- Check overall and by day, platform, and country. A mismatch in one slice often indicates a bug, such as the new screen crashing on one TV app.
- Typical causes: the treatment screen failing to log, redirect latency, bot filtering that differs by arm, or triggering that depends on treatment.
- If SRM fires, do not trust the results. Debug first.
Novelty vs. durable change
- Exposure is one-time, so classic repeated-exposure novelty is less of a concern. The question is whether the effect persists or decays.
- Plot the effect by days since exposure (weeks 1 to 4). A lift fading toward zero suggests a transient bump.
- Compare enrollment cohorts (week 1 vs. week 3 signups) to separate time-varying effects from cohort mix.
- Keep a ~5% long-term holdout after launch to read month-3 and month-6 retention.
Decision rule for the PM
Ship only if:
- Month-1 ITT retention improves significantly (or the validated leading indicator does, confirmed at day 30).
- No guardrail breaches its margin.
- SRM checks pass.
Otherwise iterate or stop.
Follow-ups
Retention up, completion down? First suspect selection: if the card filters out low-intent users, completer retention rises even if nobody's behavior changed. This is why the primary denominator is all assigned accounts. Decide on retained paid members per 1,000 assigned accounts (completion rate × retention in each arm), then convert to expected LTV. If treatment yields more retained subscribers it is net positive; if not, test a lighter variant such as a skippable card or one shown after first play.
A big content release during the test? Concurrent randomization handles level shifts since both arms see the release. The remaining risk is interaction: the release may bring high-intent fans for whom the card matters differently. Check effects by signup cohort and consider extending the test beyond the release window.
Common mistakes
- Measuring retention only among completers.
- Randomizing by session or by profile.
- Including never-triggered users, diluting the effect.
- Using CUPED with pre-period data that new users do not have.
- Declaring victory on a leading metric that was never validated.
- Ignoring SRM or peeking without sequential corrections.