A/B Testing a Single Changed Step in a Signup Walkthrough
Statistics & ExperimentsModel answerLast updated
Design an experiment for one revised step in a new-user walkthrough: pick targeted metrics, choose the randomization unit, check group balance, and select tests and sample size.
Context
A B2B cloud data platform guides new sign-ups through a multi-step walkthrough. The product team has rewritten one step in that walkthrough, for example the step where a user generates credentials and sends a first test message. They want to know whether the rewrite actually makes onboarding better, and they plan to run an online experiment.
Resources in the platform (projects, credentials, clusters) belong to an organization account, and an account can contain several users.
Questions
- Metrics. Which primary and secondary metrics would you track that are specific to the modified step? Say how you would define each one, and which guardrail or downstream metrics you would add.
- Randomization. Would you randomize by user or by account? Justify the choice. Which covariates would you inspect to confirm the groups are comparable, and which diagnostics would you run before reading results?
- Inference and sizing.
- Which statistical test(s) would you use for each type of metric?
- How would you compute the required sample size and the expected runtime? Show a worked example with assumed numbers.
- If the sample turns out to be very small, which alternative approach would you prefer?
State your assumptions explicitly, and point out the edge cases and common mistakes you would watch for.
Hints
Hint 1
Analyze only users who actually reach the changed step (triggered analysis), and define 'success' with a server-side event inside a fixed time window rather than a UI click.
Hint 2
Ask who can interfere with whom: if teammates in one account share credentials or tutorial state, user-level randomization leaks between arms, and your analysis unit must match your randomization unit.
Hint 3
Before looking at any lift, check for sample ratio mismatch and covariate balance. Then compute n per arm from baseline rate, minimum detectable effect, alpha and power, and convert it to days using daily exposed traffic.
Hint 4
For tiny samples, drop normal approximations: think exact tests, permutation tests, or a Bayesian beta-binomial comparison. Time-to-complete with non-completers calls for survival methods.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Assumptions
Suppose the changed step is "create credentials and send a first test message". Assignment happens at sign-up and exposure is logged when a user first reaches the step. The earlier steps are identical in both arms.
1. Metrics
Primary (pick exactly one, pre-registered): step completion rate
completion rate = users who complete the step within 24 hours of entering it ÷ users who entered the step.
- The denominator contains only exposed users, so people who never reach the step do not dilute the effect.
- "Complete" is a server-side event (first successful produce call), not a button click.
- A fixed window keeps late entrants comparable to early ones.
Secondary, step-specific
| Metric | Purpose |
|---|---|
| Time to complete (median, p75) | Friction, not just success |
| Abandonment at the step | Where users leave |
| Errors and retries (auth failures, 4xx) | Explains why users fail |
| Doc/copy-snippet clicks, help opens | Confusion proxies |
| Next-step conversion | Detects drop-off merely shifted downstream |
Downstream (directional): full walkthrough completion, 7-day activation.
Guardrails: upstream step completion (should be equal across arms), support tickets per new account, page latency, longer-term trial-to-paid conversion.
2. Randomization and balance
Unit. The experience is per user, but resources are per account. A teammate in one arm may already have created the credentials, or may share instructions with a control teammate, which is interference. Therefore:
- Randomize by account if a meaningful share of accounts have multiple users or tutorial state is shared. Most new accounts are single-user, so the power cost is small.
- Analyze at the same unit: aggregate to account level, or keep user rows with cluster-robust standard errors. Randomizing by account but treating users as independent understates variance and inflates false positives.
- If nearly all accounts are single-user and no state is shared, user-level randomization is acceptable and simpler.
Covariates to inspect: sign-up channel, cloud provider/region, plan type, email domain type and company size, prior experience or role, country and device, sign-up weekday, behavior on earlier steps, users per account.
Diagnostics
- Sample ratio mismatch: chi-square on arm counts against the intended split; p < 0.001 means stop and debug assignment or logging.
- Standardized mean differences: flag |SMD| > 0.1.
- Step-entry rate equal across arms: this confirms that conditioning on reaching the step does not introduce bias, since upstream is unchanged.
- Optionally use pre-treatment covariates for regression adjustment (CUPED-style) to reduce variance.
3. Tests, sample size, runtime
Tests
- Completion rate: two-proportion z-test (or logistic regression with covariates), cluster-robust SEs if randomized by account.
- Time to complete: right-skewed and censored for non-completers. Best is survival analysis (Kaplan-Meier, log-rank, Cox). Cheaper alternatives are Mann-Whitney or Welch t on log-time, but the latter conditions on completion, a post-treatment variable.
- Error counts: Poisson or negative binomial regression, or a t-test on means at large n.
- Multiple secondary metrics: Holm or Benjamini-Hochberg. The primary is tested at alpha = 0.05.
Sample size per arm (two proportions)
n = (z₁₋α/₂ + z₁₋β)² · [p₁(1−p₁) + p₂(1−p₂)] / δ²
Worked example: baseline p₁ = 0.60, minimum detectable effect +3 pp (p₂ = 0.63), alpha 0.05 two-sided, power 80%.
- (1.96 + 0.84)² = 7.84
- 0.24 + 0.2331 = 0.4731
- n = 7.84 × 0.4731 / 0.0009 ≈ 4,120 per arm, about 8,250 total.
If randomizing by account, inflate by the design effect DE = 1 + (m̄ − 1)·ICC, where m̄ is average exposed users per account. With m̄ = 1.3 and ICC = 0.3, DE ≈ 1.09.
For a continuous metric: n = 2σ²(z₁₋α/₂ + z₁₋β)² / δ², with σ estimated from historical data (on log-time if skewed).
Runtime
runtime = required exposed sample ÷ (daily users reaching the step × allocation to the experiment).
If 600 users per day reach the step and everyone is in the experiment, 8,250 / 600 ≈ 14 days. Round up to whole weeks to cover weekday/weekend mixes, and run at least 1–2 full weeks to limit novelty effects. Fix the duration in advance. Do not stop early on a peek unless you use a sequential design (mSPRT, group-sequential boundaries).
4. If the sample is very small
- Fisher's exact test for completion rate: no normal approximation needed.
- Permutation test for any statistic (difference in medians, restricted mean time), which is also robust to skew.
- Bayesian beta-binomial comparison: put a Beta prior (informed by historical completion), report the posterior probability that treatment beats control and a credible interval for the lift. It gives a usable decision even when a frequentist test is underpowered.
- Increase sensitivity by choosing a more sensitive primary (for example, a continuous time-to-complete measure), by variance reduction, or by pooling more weeks. Be explicit that a small test can only detect large effects, and report the interval rather than just "not significant".
Common mistakes
- Using all sign-ups as the denominator instead of exposed users.
- Randomizing by account but analyzing by user without clustering.
- Skipping the SRM check.
- Computing time-to-complete only among completers and reading it causally.
- Declaring several "winning" secondary metrics without multiplicity correction.
- Stopping the test as soon as p < 0.05.
- Ignoring the guardrails, so a gain in step completion that hurts later activation goes unnoticed.
Recommendation format
Report the lift in the primary metric with a confidence interval, the status of the diagnostics, guardrail results, and a clear ship, iterate or stop decision tied to the pre-registered minimum effect.