Early Attrition Metrics and a Guided Onboarding A/B Test
Statistics & ExperimentsModel answerLast updated
Critique a "no first payroll in 30 days" churn definition for a B2B payroll product, handle late returners, and design a business-level A/B test for a new guided onboarding flow.
Scenario
You are a data scientist at a B2B payroll and HR software company. Leadership is worried that too many new accounts drop off before they ever get going. Product has built a Guided Setup onboarding flow that would replace the current Manual Setup flow, and you are asked to help evaluate it.
A business counts as an active customer once it completes its first payroll run. The current team definition of churn is:
A business that signed up but did not complete its first payroll run within 30 days of registration.
Part 1: Metric definition
- Name three weaknesses in this definition. For each, explain what behavior it misclassifies and how you would change the definition.
- Some businesses stop setup, then come back on day 35 or later. Are they churned? If they eventually run payroll, how should your data pipeline and reported metrics treat them?
Part 2: Experiment design
Design an A/B test to decide whether Guided Setup reduces early attrition. Cover:
- Randomization unit: individual user or business account? Justify the choice.
- Metrics: one primary success metric and at least one secondary or guardrail metric that would catch harm to the customer experience.
- Duration: setup can take weeks. How do you decide when to stop and read the result without waiting many months, while keeping the statistics valid?
- Seasonality: how do you prevent calendar effects such as year-end or tax season from distorting or limiting the conclusions?
Give a structured answer, state your assumptions, and mention the trade-offs.
Hints
Hint 1
Ask whether a business that never ran payroll was ever a customer. Is 'did not activate' the same thing as 'churned'?
Hint 2
Treat the outcome as time-to-event data. Someone still in setup has not failed, they have simply not been observed long enough (right-censoring). Store raw timestamps and derive labels as of a date.
Hint 3
Think about who actually touches onboarding in a company (owner, office manager, accountant). That should drive the randomization unit, and possibly a clustering issue for accountants with many clients.
Hint 4
For duration, combine pre-registration, survival analysis that keeps censored users, sequential testing boundaries, and validated early indicators. Remember that randomizing concurrently removes seasonal bias but not seasonal interaction.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Part 1.1: Three weaknesses and fixes
1. It conflates non-activation with churn. A business that never ran payroll was never an active customer, so it cannot have churned. Merging "never activated" with "activated and later left" hides two different problems owned by different teams (onboarding vs. product and retention).
- Fix: Call the current metric activation failure. Define churn separately as the loss of an activated customer, for example no payroll run for two consecutive expected pay periods.
2. A fixed 30-day window ignores intent and pay cadence. Plenty of healthy businesses legitimately run their first payroll after day 30: a company switching providers at a quarter boundary, a startup with no hires yet, or a monthly payer whose first pay date is five weeks out. All are flagged.
- Fix: Capture the intended first pay date during setup and measure against it (for example, "first payroll within 7 days of intended date"). Alternatively, use different windows by segment (switcher vs. new business, pay frequency).
3. The denominator includes non-serious signups. Tire-kickers, duplicates, test accounts, fraud and accountants exploring the product all inflate the failure rate.
- Fix: Define a qualified signup by an intent signal such as entering an EIN, linking a bank account or adding an employee. Report activation over qualified signups, and keep raw-signup conversion as a separate figure.
Also worth mentioning: "completed payroll" should exclude $0 test runs and reversed runs (require a non-reversed run paying at least one employee), and a binary label discards progress information, since a business stuck at tax registration differs from one that vanished.
Part 1.2: The day-35 returner
Not churned. "Not activated by day 30" is a fixed-horizon metric, not a terminal state. Model activation as time-to-event, where a business still in setup is right-censored. Use lifecycle states such as in_setup, dormant (no activity for 14 days), abandoned (no activity for 90 days) and activated. Abandonment is inferred from inactivity, not from the calendar.
Pipeline:
- Store immutable facts:
registered_at, nullablefirst_payroll_at, and setup-step events. - Derive labels like
activated_d30andactivated_d60from those facts and an as-of date. Never overwrite them. - For the returner,
activated_d30stays FALSE (correct for that metric),activated_d60becomes TRUE, and the state becomesactivatedwith alate_activationflag. - Keep dated snapshots of reported KPIs and restate history only through a versioned backfill, so a returning user does not silently rewrite last month's numbers.
Part 2: Experiment design
Randomization unit: the business. Setup is collaborative (owner, office manager, external accountant). Randomizing by user would show different flows inside one company, contaminating treatment and confusing people, and the outcome (first payroll) is a business-level event. Assign at account creation and keep it sticky. If accounting firms onboard many clients each, consider cluster randomization by firm, or at least use firm-clustered standard errors.
Metrics.
- Primary: D30 activation rate among qualified signups, complemented by time-to-first-payroll as a survival outcome.
- Guardrails/secondary:
- support tickets per business during setup
- payroll error or correction rate in the first two runs (a faster flow that creates wrong tax setups is a net loss)
- 90-day retention of activated businesses
- step-level funnel drop-off as a diagnostic
Sample size (illustrative). Baseline 60% D30 activation, MDE +3pp, alpha 0.05, power 0.8:
n ≈ 2 · (1.96 + 0.84)² · 0.6 · 0.4 / 0.03² ≈ 4,200 qualified businesses per arm.
Duration without waiting months. Total time is enrollment plus the outcome window, so shorten what you validly can:
- Pre-register metric, horizon, MDE and decision rule.
- Survival analysis (Kaplan-Meier, log-rank or Cox) on all cohorts, censoring those who have not reached day 30 rather than dropping them.
- Sequential testing with planned looks (O'Brien-Fleming boundaries or an always-valid method like mSPRT), not ad-hoc peeking.
- Leading indicators such as "bank and tax setup done by day 7", validated against historical D30 activation. Use them for directional reads, not the ship decision.
- Guard against acceleration without lift. Guided Setup may only make people activate sooner. Confirm that cumulative conversion at D30 and D60 improves for mature cohorts before shipping.
Seasonality. Running both arms concurrently already removes seasonal bias, since both see the same calendar. The remaining risks are interaction and external validity: year-end signups skew toward January switchers who behave differently. Mitigate by:
- stratifying or block-randomizing by signup week and segment (switcher vs. new, size, channel)
- running through at least one full payroll cycle and not enrolling only around quarter or year end
- using covariate adjustment (regression or CUPED) with pre-assignment features
- reporting heterogeneity by signup cohort
- keeping a small holdout after launch if rollout happens in peak season, to confirm the effect persists
Common mistakes
- Treating "no payroll by day 30" as terminal churn and double-counting those who activate later.
- Randomizing by user and letting one company see both flows.
- Peeking at p-values daily without sequential corrections.
- Declaring victory on faster activation without checking eventual activation.
- Ignoring guardrails such as payroll error rates.
- Believing randomization makes results generalize across seasons.