Concurrent A/B Test Design with Interaction Effects
Statistics & ExperimentsModel answerLast updated
Design and analyze experiments for two product changes launching simultaneously, addressing interaction effects, power, and sequential monitoring.
You're leading experimentation for a consumer product. Two teams want to launch features in the same timeframe:
- A growth team is launching an outbound communication campaign
- A core product team is shipping a new engagement feature
Both changes target the same user base and may influence similar behavioral metrics.
Your task:
Part A: Design an experimental framework that cleanly measures the impact of each change while accounting for potential interactions between them.
Part B: Walk through your approach to determining sample size requirements, statistical power, and experiment duration. Include concrete calculations.
Part C: Explain how you would detect and interpret interaction effects. What would you do differently if the interaction turns out to be significant?
Part D: The leadership team wants weekly progress updates and may ask to ship early if results look promising. How do you maintain statistical rigor while accommodating this need?
Hints
Hint 1
Consider whether randomizing users independently for each experiment gives you orthogonal treatment assignment
Hint 2
Think about whether network effects or two-sided interactions matter for either feature
Hint 3
Remember that detecting interactions typically requires much larger samples than detecting main effects
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Concurrent A/B Test Design with Interaction Effects
This problem tests your ability to design rigorous experiments in realistic conditions where multiple product changes compete for the same users and timeline.
Part A: Experimental Framework
Factorial Design with Independent Randomization
The cleanest approach is a 2×2 full factorial design with independent random assignment for each experiment. Hash user IDs with different seeds to assign users to each experiment independently:
| Engagement OFF | Engagement ON
-------------|-----------------|----------------
Comms OFF | Pure control | Engagement only
Comms ON | Comms only | Both features
This design delivers three critical advantages:
- Orthogonality: Each experiment uses 100% of traffic. Neither test "costs" the other sample size.
- Unbiased main effects: Even if an interaction exists, the main effect estimates remain unbiased because assignment is independent.
- Interaction measurement: You can directly estimate whether the two features amplify or dampen each other.
Statistical Model
Estimate effects using regression with an interaction term:
Y = β₀ + β₁·Comms + β₂·Engagement + β₃·(Comms × Engagement) + ε
Where:
- β₁: Lift from communications when engagement feature is off
- β₂: Lift from engagement feature when communications are off
- β₃: Interaction effect (synergy or interference)
Use cluster-robust standard errors if either feature has network effects (e.g., if treated users' behavior affects control users through social connections).
Metrics and Guardrails
Define metrics clearly before launch:
Primary metrics:
- Comms: Click-through rate or downstream conversion within 7 days
- Engagement: Feature adoption rate, repeat usage within 14 days
Shared success metric: Weekly active users
Guardrails:
- Comms: Opt-out rate, complaint rate
- Engagement: Error rates, load time, negative feedback signals
Part B: Sample Size, Power, and Duration
Sample Size Calculation
For a two-proportion test (e.g., engagement feature adoption):
n = 2 × (z_α/2 + z_β)² × σ² / δ²
Concrete example:
Assume baseline adoption rate p = 0.15, and we want to detect a 10% relative lift (δ = 0.015):
- σ² = p(1-p) = 0.15 × 0.85 = 0.1275
- For α = 0.05, β = 0.20: (1.96 + 0.84)² = 7.84
- n = 2 × 7.84 × 0.1275 / (0.015)² ≈ 89,000 users per arm
- Total needed: 356,000 users across four cells
Critical Adjustments
1. Variance reduction (CUPED):
Regressing out pre-experiment behavior typically reduces variance by 30-40% for engagement metrics. This cuts required sample by the same proportion, bringing our example down to ~250,000 users.
2. Interaction power:
The interaction term has 4× the variance of a main effect with the same sample. To detect an interaction as large as a main effect, you need 4× the sample. Be explicit about whether you're powering for β₃ or only main effects.
3. Network effects:
If users influence each other (messaging features, social products), use cluster randomization. This introduces a design effect: multiply n by 1 + (m-1)·ICC, where m is cluster size and ICC is intra-cluster correlation. With m=40 and ICC=0.03, this adds ~20% to requirements.
Duration
Calculate as: total_sample / daily_eligible_users
Best practices:
- Run for complete weeks (minimum 1-2 weeks) to average out day-of-week effects
- For habit-forming features, run 3-4 weeks to see past novelty effects
- Check whether treatment effects decay or grow over time—this signals whether short-term results predict long-term impact
Part C: Handling Interaction Effects
Detection
An interaction is meaningful if:
- β₃ is statistically significant (p < 0.05)
- The magnitude matters for decisions (e.g., >20% of either main effect)
Interpretation Strategies
If interaction is negligible:
Report the main effects. Even better, report effects averaged over the state of the other feature as it will exist post-launch. If comms will roll out to everyone, the relevant engagement effect is the weighted average of the two engagement arms.
If interaction is significant and positive (synergy):
"The engagement feature lifts adoption by 8% among users who received communications, but only 3% otherwise. Recommend launching both together."
If interaction is significant and negative (interference):
"Communications reduce engagement feature adoption by 15% among exposed users. Recommend either (a) staggering launches by 2 weeks, or (b) excluding comms recipients from the engagement rollout."
Alternative Designs
If you must avoid interactions:
- Mutually exclusive tests: Split traffic 50/50, run one test per segment. Clean but wasteful—you halve the power of each test and learn nothing about real-world interaction.
- Staggered rollout with holdout: Launch comms first but keep a 10% holdout. When engagement launches, run it across both comms states. This recovers a factorial structure but delays one launch.
Part D: Sequential Testing and Statistical Validity
The Peeking Problem
Checking a fixed-horizon test repeatedly and stopping when p < 0.05 inflates false positive rates from 5% to 25-30%. Leadership's request for weekly updates creates exactly this risk.
Solution: Group Sequential Design
Pre-commit to a group sequential test with fixed analysis points (e.g., weekly):
-
Choose an alpha-spending function:
- O'Brien-Fleming: Conservative early thresholds, spends most alpha near the end. Preferred for stakeholder management—you can show data without triggering early stops.
- Pocock: Equal thresholds at each look. More aggressive early stopping.
-
Example boundaries (3 looks, α=0.05 two-sided):
- Week 1: p < 0.0054 to stop
- Week 2: p < 0.0147 to stop
- Week 3: p < 0.0443 to stop (final)
-
Cost: Expect a 5-10% increase in maximum sample size compared to a fixed-horizon test.
Additional Safeguards
Pre-registration:
Document primary metrics, MDE, analysis plan, and stopping rules before launch. Share with leadership. This prevents post-hoc rationalization.
Sample ratio mismatch (SRM) check:
Daily chi-square test on arm assignment counts. SRM indicates bugs in randomization or logging and invalidates results.
Futility stopping:
Add a lower boundary: if reaching the MDE becomes statistically implausible, stop early for futility. This frees users for other tests without inflating false positives.
Guardrail monitoring:
Check guardrails continuously, not sequentially. A significant harm signal should trigger an immediate stop.
Communication Strategy
Frame weekly updates as "interim monitoring" rather than "results." Show effect estimates with confidence sequences (always-valid intervals that account for continuous monitoring) rather than fixed-horizon p-values. This lets leadership track progress without the temptation to call significance prematurely.
Common Mistakes
- Running tests in series: Waiting for one test to finish loses weeks and confounds the second test with time and seasonality.
- Ignoring interaction power: Claiming you can "measure interaction" when you're only powered for main effects.
- Ad-hoc peeking: Checking daily and convincing yourself "just one peek" is harmless.
- Forgetting variance reduction: CUPED or CUPAC can cut runtime by 30-40% and is standard practice at mature experimentation orgs.