Planning a Trustworthy Experiment for a New Signup Flow
Statistics & ExperimentsModel answerLast updated
Plan an end-to-end experiment for a redesigned signup flow when invites cause spillover and signups vary by weekday, covering metrics, power, monitoring, ramp and ship decisions.
A product team has rebuilt the first-run experience for new app users. They expect it to raise the share of users who become "activated" within their first week. Two complications exist:
- Users can invite friends, so one user's experience may change the behavior of people in the other arm.
- Signup volume and intent differ between weekdays and weekends.
Write the experiment plan you would present before launch. It should cover:
- Hypothesis, primary metric, secondary metrics and guardrails, each with exact definitions and attribution windows.
- The unit of randomization and exposure (user, household, geo, cluster), and why, given possible interference.
- Sample size, power, target minimum detectable effect (MDE), expected duration, and how seasonality is handled.
- Variance reduction, stratification, or matched designs.
- How you would detect and respond to sample ratio mismatch (SRM).
- A sequential monitoring approach and stopping rules that avoid p-hacking.
- A ramp plan with a holdout, and how you would handle novelty or learning effects.
- Diagnostics for noncompliance, bot traffic, and triggered versus assigned populations.
- How you would detect and reduce spillovers, and estimate the bias if you randomize by user.
- How you would interpret conflicting primary and guardrail results and reach a ship decision.
State your assumptions (baseline rate, traffic) and show the arithmetic where numbers matter.
Hints
Hint 1
Start from the interference mechanism: an invited friend can land in the other arm. Ask which unit keeps the treated user and the people they influence in the same arm.
Hint 2
New users have no history, so pre-period metrics are unavailable. Think about which covariates are known at the moment of signup and can be used for regression adjustment and stratification.
Hint 3
Separate the decisions: power fixes the minimum sample, but full-week cohorts, a maturation window for the last cohort, and pre-registered alpha spending determine duration and when you may stop.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Approach
A strong answer is a pre-registered plan: precise metrics, a randomization unit matching the interference structure, real power arithmetic, and a decision rule fixed before data arrives.
1. Hypothesis and metrics
Hypothesis: the new flow raises first-week activation without hurting early retention, stability, or user experience.
Primary metric: D7 activation rate.
- Denominator: users assigned at first app open (t0).
- Numerator: users who within [t0, t0 + 168h) have at least 2 distinct active days and at least 10 qualifying content views (a view of 3 seconds or more).
- Use each user's own 168-hour window, not calendar days, to avoid time-zone and weekday artifacts.
Secondary: onboarding completion, invites sent per user, and invitee D7 activation (the network value of an invite, credited to the inviter for 14 days).
Guardrails (one-sided, testing for harm): D1 retention, 7-day uninstall rate, crash rate, p95 onboarding latency, notification opt-out rate, report/block rate on invites, and engagement depth per activated user (to catch shallow, forced activation).
2. Unit of randomization
Plain user-level randomization violates SUTVA: a treated user invites a friend who may be in control.
Recommended: referral-cluster randomization. Organic signups are randomized individually; an invited user inherits the arm of the user who referred them. Analyze at the cluster level (root plus descendants within the window) using cluster-robust variance. Cap or truncate very large clusters.
Alternatives: households are rarely the relevant network here; geo experiments have too few units for primary power and are better for a total-ecosystem estimate; switchback does not fit because onboarding is a one-time, persistent experience.
3. Power, MDE, duration
Assume baseline p = 40%, MDE = 1.0 percentage point absolute, two-sided α = 0.05, power 80%.
n per arm = 2(1.96 + 0.84)² · 0.24 / 0.01² ≈ 37,600
Adjustments:
- Clustering: DE = 1 + (m̄ − 1)·ICC with m̄ = 3, ICC = 0.05 gives about 1.10.
- Group-sequential inflation: about 1.03.
Result: roughly 43,000 per arm.
Duration: with 100k eligible signups per day and 10% per arm, power alone needs about 5 days. Still enroll for 14 days (two full weeks) so weekday/weekend mix is balanced, then wait 7 more days for the last cohort's window to mature. Read out around day 21. Avoid holidays and big campaigns, and report effects by signup day of week to check stability.
4. Variance reduction
Classic CUPED needs pre-period data that new users lack. Use covariates observed at signup instead: acquisition channel, country, device/OS tier, install hour and day, and invite-versus-organic arrival. Apply regression adjustment (ANCOVA/CUPED on these); expect a 5–15% variance reduction. Stratify assignment by channel × country tier, and for clusters by root channel and predicted cluster size.
5. SRM
- Detect: daily chi-square on assignment counts against the planned split, alerting at p < 0.001. Repeat by platform, app version, country and channel, and on the triggered population.
- Remediate: find the cause first. Typical culprits are crashes before the logging event, redirects, asymmetric bot filtering, and client-version gates. Fix it and restart with a new salt. Do not reweight; SRM means the arms are no longer exchangeable.
6. Sequential monitoring
- Primary metric: Lan–DeMets O'Brien-Fleming alpha spending, information measured in matured D7 users, 3 looks at 33%, 67%, 100% (nominal boundaries about 0.0002, 0.012, 0.046).
- Do not declare efficacy before full weeks of coverage, even if a boundary is crossed.
- Guardrails: continuous monitoring with an always-valid method (mSPRT) and aggressive harm stopping for crashes and uninstalls.
- Pre-register metrics, looks and boundaries. No ad hoc peeking.
7. Ramp, holdout, novelty
| Stage | Traffic | Duration | Purpose |
|---|---|---|---|
| 1 | 1% | 1–2 days | crashes, latency, logging, SRM |
| 2 | 5% | 2–3 days | guardrail sanity |
| 3 | 10% vs 10% | ~3 weeks | powered test |
| 4 | ship to 95% | 4–8 weeks | keep a 5% long-term holdout |
New users have not seen the old flow, so classic novelty is small. The real risks are a D7 lift that fades by D30 and invite fatigue. Use the holdout to measure D30 retention and cumulative invitee experience, and check whether the effect decays across enrollment weeks.
8. Noncompliance, bots, triggered vs assigned
- Intention-to-treat (assigned) is primary, since assignment precedes any divergence.
- A triggered analysis (users who reached the first onboarding screen) is secondary and must use a trigger defined identically in both arms; confirm trigger rates match.
- Filter bots with rules applied symmetrically and pre-defined, and report results with and without them.
- If compliance is imperfect, report the complier-average effect via instrumental variables (assignment as the instrument).
9. Interference
- Detect: compare outcomes of control users by their share of treated-arm contacts (exposure mapping); a dose-response gradient indicates spillover. Compare the user-level estimate with the cluster-level estimate; a gap suggests bias.
- Mitigate: referral-cluster randomization, plus a geo test on a subset to estimate the total effect.
- Quantify bias under user-level randomization: estimate the fraction of control users' invitees or inviters in treatment and the spillover effect per exposed contact; the bias is approximately that exposure share times the per-contact effect. Spillover onto control typically biases toward zero (understating) if invited users benefit, but can go either way.
10. Decision rules
Pre-specify: ship if the primary lift is significant at the sequential boundary and no guardrail shows harm beyond its non-inferiority margin. When they conflict:
- Check the guardrail's practical size, not just its p-value, and whether the harm is in a high-value segment.
- Look for mechanisms (e.g., activation up but watch depth down suggests shallow engagement).
- Prefer D30 retention and invitee outcomes from the holdout as tie-breakers.
- If still ambiguous, iterate on the design rather than ship; a small, reversible rollout with the holdout intact is acceptable.
Common mistakes
- Randomizing by user and ignoring invites.
- Stopping at the first significant look or ending mid-week.
- Reweighting after SRM.
- Using CUPED with nonexistent pre-period data.
- Analyzing only triggered users with an asymmetric trigger.
- Declaring victory on D7 without checking decay.