Build a rigorous A/B test for a small-business incentive pilot
Statistics & ExperimentsModel answerLast updated
Design randomization, compute power, define ITT/TOT estimands, specify variance reduction and guardrails, handle data quality, and make a rollout decision.
A product team is piloting an incentive for newly onboarded small-business advertisers: after completing identity verification, new users receive a $100 promotional credit. The goal is to increase the share of new accounts that become active advertisers.
Primary metric: 30-day activation rate, defined as the proportion of new accounts that generate at least $50 in net advertising spend (after refunds, excluding the promotional credit itself) within 30 days of account creation.
Context:
- Current baseline activation rate: 12%
- The team wants to detect a +2.0 percentage-point improvement with 80% power at α = 0.05
- Budget supports up to 10,000 accounts in the treatment arm over a 2-week enrollment period
- Traffic varies by day of week, geographic region, and industry vertical
Guardrail metrics:
- Refund and chargeback rate
- Customer support tickets per 1,000 accounts
- Average spend in the first 30 days
- Customer acquisition cost (CAC)
Your task:
-
Design the experiment. Choose the unit of randomization and justify it. Specify stratification variables and explain how you will handle day-of-week effects, regional differences, non-compliance (users who never redeem the credit), and potential fraud or abuse.
-
Calculate the required sample size for 80% power to detect a +2.0pp lift at α = 0.05 (two-sided). Show your formula, plug in the numbers, and state all assumptions. Discuss how the calculation changes if you randomize at a different point in the funnel, and how variance reduction techniques affect the answer.
-
Write the analysis plan. Define intention-to-treat (ITT) and treatment-on-treated (TOT) estimands precisely. Specify the regression model, including what covariates you will use for variance reduction (e.g., CUPED). Describe how you will monitor guardrails during the experiment and what thresholds would trigger an early stop. State the exact decision rule for launching: what statistical and business conditions must be met?
-
Data quality and validity. Explain how you will check for sample-ratio mismatch, event-logging delays, duplicate accounts, and bot traffic. Describe how you will measure heterogeneity of the treatment effect across segments, and how you will assess whether the 2-week pilot result generalizes beyond the test window (novelty effects, seasonality).
-
Make a recommendation. Suppose the experiment completes and you observe a +1.6pp lift with a 95% confidence interval of [+0.2pp, +3.0pp]. Support tickets increased by 12% in the treatment group. Walk through your decision: do you launch, iterate, run a follow-up test, or kill the feature? Justify your reasoning with reference to statistical significance, economic value, and guardrail performance.
Hints
Hint 1
Think carefully about when to randomize: at signup, at verification, or at first login. Each choice has different implications for compliance and interpretation.
Hint 2
The metric definition matters: should 'net spend' include the promotional credit, or exclude it? One choice inflates activation mechanically.
Hint 3
For the rollout decision, statistical significance alone is not enough. Consider the economic margin, the width of the confidence interval, and the support-cost trade-off.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
1. Experiment Design
Randomization unit: Business entity, assigned at the moment identity verification completes.
Why this choice?
- Entity, not account. We must deduplicate on business tax ID, owner identity hash, linked bank account, and device fingerprint. If one business can open multiple accounts and land in both treatment and control, we introduce interference and invite gaming of the credit.
- At verification, not signup. The credit is granted after verification. If we randomize at signup, many assigned users will never verify, diluting the treatment effect. We would need to scale up sample size by roughly 1/p² where p is the verification rate.
- Key assumption: The offer is not advertised before verification. If marketing mentions it upfront, that could change who verifies, violating stable unit treatment value assumption (SUTVA). In that case, randomize at signup and accept the dilution.
Stratification. Use blocked randomization with 1:1 allocation within strata defined by:
- Region (4–6 buckets)
- Industry vertical (top 8 categories plus "other")
- Predicted spend propensity (terciles from a pre-verification model trained on historical signup features)
- Acquisition channel
This balances high-variance covariates and makes heterogeneity analysis cleaner because segments are balanced by design.
Day-of-week and regional variation. Run the enrollment window for exactly 14 days so each weekday appears twice. Randomize continuously in real time so both arms see identical calendar composition and traffic mix. Include day-of-week and region fixed effects in the regression model.
Non-compliance. Some treated users may never see or redeem the credit due to UI bugs, email delivery issues, or simply ignoring it. Log exposure (credit modal shown) and redemption (credit applied to spend) events. This allows us to estimate both ITT (policy effect) and TOT (effect on those who actually receive the treatment), using assignment as an instrument for redemption in a two-stage least squares model.
Fraud and abuse. Before randomization, score entities for fraud risk (velocity checks, synthetic identity signals, disposable email patterns) and exclude flagged entities symmetrically. Cap the credit at one per entity, verified via the deduplication logic. Treat post-randomization fraud flags as an outcome to be measured, never as an exclusion criterion, to avoid post-treatment bias.
2. Sample Size Calculation
Assumptions:
- Two-sided test, α = 0.05, power = 1 − β = 0.80
- Baseline p₁ = 0.12, target p₂ = 0.14, absolute lift δ = 0.02
- Equal allocation, independent binary outcomes
Formula for a difference in proportions:
n = [(z₁₋α/₂ √(2p̄(1−p̄)) + z₁₋β √(p₁(1−p₁) + p₂(1−p₂)))]² / δ²
where p̄ = (p₁ + p₂)/2.
Plugging in the numbers:
- p̄ = 0.13, so 2p̄(1−p̄) = 0.2262, and √ = 0.4756
- z₀.₉₇₅ = 1.96, so 1.96 × 0.4756 = 0.9322
- p₁(1−p₁) = 0.1056, p₂(1−p₂) = 0.1204, sum = 0.2260, √ = 0.4754
- z₀.₈₀ = 0.8416, so 0.8416 × 0.4754 = 0.4001
- Numerator: (0.9322 + 0.4001)² = 1.7750
- Denominator: δ² = 0.0004
- n ≈ 4,438 per arm, or roughly 8,900 total.
Sensitivity checks:
- If we use a one-sided test at α = 0.05 (appropriate if we only ship on positive evidence), z₀.₉₅ = 1.645, and n drops to about 3,490 per arm.
- If we randomize at signup and only 70% verify, the ITT effect becomes 0.7 × 2pp = 1.4pp, and the required sample scales by 1/(0.7²) ≈ 2.04, giving roughly 9,000 per arm. This is why verification-time randomization is preferred.
- With CUPED variance reduction using a covariate correlated ρ = 0.4 with the outcome, variance shrinks by (1 − ρ²) = 0.84, reducing the requirement to about 3,730 per arm.
Budget check. The budget supports 10,000 treatment accounts. If traffic allows 10,000 per arm, the minimum detectable effect is approximately 1.96 × √(0.226/10,000) ≈ 1.33pp. I recommend using the full budget; the extra power is valuable for guardrail monitoring and heterogeneity analysis.
Timeline: Results are available 14 days (enrollment) + 30 days (activation window) + ~3 days (spend pipeline lag) ≈ 6.5 weeks after launch.
3. Analysis Plan
Estimands:
- ITT (primary): E[Y | assigned treatment] − E[Y | assigned control], estimated on all randomized entities. This is the unbiased, policy-relevant effect.
- TOT (secondary): The effect among those who actually redeemed the credit. Estimate via 2SLS with assignment as the instrument for redemption. Assumes exclusion restriction (assignment affects activation only through the credit) and monotonicity (no defiers).
Regression model (OLS with heteroskedasticity-robust standard errors):
activated ~ treatment + strata_fixed_effects + day_of_week_fixed_effects + X_cuped
CUPED covariates (pre-verification only):
- Ad account setup completed (binary)
- Payment method linked (binary)
- Campaigns drafted (count)
- Hours from signup to verification
- Spend propensity score (from historical model)
Regress the outcome on these covariates in the control group, then subtract the fitted values from both groups' outcomes before running the treatment-effect regression. This is equivalent to including the covariates and yields lower variance.
Decision rule:
- Null hypothesis: δ ≤ 0. Alternative: δ > 0.
- Use a one-sided test at α = 0.025 (equivalent to two-sided 0.05 for superiority).
- Launch requires both:
- Statistical significance: lower bound of the 95% CI > 0.
- Economic viability: point estimate ≥ minimum worthwhile lift.
Economic margin: If 90% of treated users redeem, the cost per incremental activation is roughly $100 × 0.90 / 0.02 = $4,500. This must be below the lifetime value of an activated account. If LTV ≈ $7,000, the minimum worthwhile lift is around 1.5pp. Agree on this threshold with finance before the readout.
Guardrail monitoring: Use sequential testing with O'Brien–Fleming spending function to control type-I error while allowing daily checks. Trigger a pause if:
| Metric | Threshold (vs. control) |
|---|---|
| Refund rate | > +25% or +0.5pp absolute |
| Support tickets per 1k accounts | > +20% |
| Post-verification fraud-flag rate | > +30% |
| Avg 30-day spend | Non-inferiority margin −5% |
| CAC (including credit cost) | Exceeds LTV-based ceiling |
Multiplicity: One primary metric, no correction needed. Guardrails use Holm correction across the four tests. Heterogeneity analysis is exploratory, reported with Benjamini–Hochberg FDR control and clearly labeled as such.
4. Data Quality and Validity
Sample ratio mismatch (SRM): Run a χ² goodness-of-fit test on the arm split, overall and per stratum. If p < 0.001, stop and audit the randomization service and logging pipeline.
Event lag: Freeze the readout only after spend-pipeline completeness exceeds 99%. Compare snapshots of day-30 spend taken at T+31 and T+35 to confirm stability.
Duplicates: Fuzzy-match entities on tax ID, address, bank account, and device. If any duplicates slip through, cluster standard errors at the entity level.
Bots and fraud: Compare prevalence of velocity anomalies, disposable emails, and synthetic-identity flags across arms. A significant difference suggests the offer itself attracts or enables fraud.
A/A check: Confirm that pre-randomization metrics (signup-to-verification time, account setup actions) are balanced across arms. Imbalance suggests a logging or assignment bug.
Critical metric definition: "Net spend" must mean spend after refunds and excluding the promotional credit. If you count credit-funded spend, treatment activation is mechanically inflated—$50 spent using the $100 credit is not real activation. This is the most common mistake in this scenario.
Heterogeneous treatment effects:
- Pre-register interactions: treatment × industry, region, propensity tercile.
- Exploratory: fit a causal forest or separate models per arm (T-learner), validated on held-out data.
- Expected pattern: largest lift in the middle propensity tercile (low-propensity users may not activate regardless; high-propensity users will activate anyway). Certain industries (e-commerce, local services) may respond more than others (B2B SaaS).
Generalization beyond the test window:
- Novelty decay: Compare ITT in days 1–7 vs. days 8–14. If the effect fades, expect further decay post-launch. Plan to monitor activation rate continuously for 2–3 months after rollout.
- Seasonality: Avoid running the test during end-of-quarter budget crunches or major shopping holidays. If the test overlaps a special period, include week-of-year fixed effects and consider replicating in a more neutral period.
5. Rollout Decision: +1.6pp lift, 95% CI [+0.2pp, +3.0pp], support tickets +12%
Assessment:
- Statistical significance: Yes. The lower bound is positive (+0.2pp), so we reject the null at α = 0.05 (two-sided) or 0.025 (one-sided).
- Economic threshold: Borderline. Point estimate 1.6pp is below the 2.0pp target and possibly below the minimum worthwhile lift of ~1.5pp (depends on the exact LTV calculation).
- Guardrail issue: Support tickets increased by 12%, below the 20% kill threshold but not negligible. This suggests friction or confusion.
Recommendation: Conditional phased rollout.
Phase 1: Diagnose and iterate (2–3 weeks).
- Root-cause analysis: Why are support tickets up? User confusion about credit mechanics? Technical bugs in redemption flow? Fraud-related inquiries?
- Likely fixes: Improve in-product messaging, add an FAQ, streamline the redemption UX.
Phase 2: Expanded pilot (4 weeks, 5% of traffic).
- Goal: Validate that the iteration reduces support burden, narrow the confidence interval, and detect any long-term decay.
- Monitor weekly support trends, days 30–60 retention, and marginal CAC vs. LTV.
Phase 3: Segmented rollout.
- If support ticket increase drops below 8% and the point estimate holds above 1.5pp with tighter CI, roll out to high-value segments first:
- High spend-propensity tercile
- Best-performing industries (from heterogeneity analysis)
- Regions with robust self-service support infrastructure
- Scale to full traffic over 2–3 months while monitoring closely.
If conditions are not met: Re-evaluate or shelve the feature.
Key message to leadership:
"The experiment shows a statistically significant positive effect, but the lift (1.6pp) is below target (2.0pp) and support costs increased 12%. I recommend iterating on the user experience to reduce support burden, then validating improved unit economics in an expanded test before a phased rollout to high-value segments."
What not to do:
- ✗ Launch globally because "it's significant" (ignores business context).
- ✗ Kill it because "it missed the target" (ignores real positive effect and option value).
- ✗ Decide on intuition without additional data (high uncertainty remains).
This approach balances statistical rigor, economic prudence, and operational learning.