← Stripe Interview Insights

Stripe·Data Scientist·Technical Phone Screen·Senior

Senior
Jul 2026

Summary

Stripe DS interview with a meaty experiment design question built around a merchant subscription model. The whole thing was one big multi-part case and it went deep fast.

Questions Asked (4)

Q1

You built a ranked list of merchants likely to adopt Subscription. Design a randomized experiment to test whether targeting the top 50,000 with a sales or email nudge actually drives conversions. Walk through the RCT setup including control/treatment split, stratification by score decile and country, guardrails, and a staged ramp.

A/B Testing & ExperimentationProduct Analytics & Metrics
Author's notes

I started with the split and stratification, which felt solid, but I fumbled a bit on the guardrails.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the experiment around the causal question: does targeting the top 50,000 merchants with a nudge increase adoption compared to no nudge? Then walk through the design choices—randomization unit, stratification, guardrails, and staged rollout—while emphasizing how each choice protects validity and enables actionable inference.

Pro tip: Always pre-register the primary metric and minimum detectable effect, and explicitly state that you will analyze intent-to-treat (ITT) to avoid selection bias from non-compliance. This signals rigor and prevents p-hacking.

1. Define the causal question and metrics

Clarify the treatment (sales or email nudge), control (no nudge), primary metric (e.g., subscription adoption rate within 30 days), and secondary metrics (e.g., activation, revenue). Specify the unit of randomization (merchant) and the target population (top 50,000 scored merchants).

2. Design randomization and stratification

Randomly assign merchants to treatment or control within strata defined by score decile and country to ensure balance on these key covariates. Use a 50/50 split or a power-optimized unequal split if treatment is costly. Consider blocking or pairwise matching if sample size is limited.

3. Set guardrails and success criteria

Define guardrail metrics (e.g., unsubscribe rate, support tickets, merchant dissatisfaction) and non-inferiority thresholds. Pre-specify the minimum detectable effect (MDE) and required sample size. Include a stopping rule for harm or futility.

4. Plan a staged ramp

Start with a small pilot (e.g., 5% of sample) to validate instrumentation and check for technical issues, then ramp to full sample in stages (e.g., 20%, 50%, 100%) while monitoring guardrails. Use sequential testing or alpha-spending to allow early stopping without inflating Type I error.

5. Analyze and interpret results

Analyze intent-to-treat (ITT) using regression adjustment for stratification variables. Report confidence intervals, effect sizes, and heterogeneity by score decile and country. Discuss practical significance and next steps (e.g., rollout, iterate on nudge).

Key Points to Mention

  • Randomization unit: merchant-level to avoid contamination and ensure independence.
  • Stratification by score decile and country to improve power and balance.
  • Guardrail metrics: unsubscribe rate, support tickets, and merchant satisfaction.
  • Staged ramp with sequential testing to allow early stopping for harm or efficacy.
  • Intent-to-treat (ITT) analysis to preserve randomization and avoid selection bias.
  • Pre-registration of primary metric, MDE, and analysis plan to prevent p-hacking.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q2

Compute the required per-arm sample size to achieve 80% power at a two-sided alpha of 0.05, given a baseline conversion of 2% and a minimum detectable uplift of 50% relative. Show the formula and the actual number.

A/B Testing & ExperimentationProduct Analytics & Metrics
Author's notes

This tripped me up more than I expected.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the assumptions (e.g., two-sided test, equal allocation, normal approximation) and then present the standard formula for sample size per arm for comparing two proportions. Plug in the numbers: baseline p1=0.02, p2=0.03 (50% relative uplift), alpha=0.05, power=0.80, and compute n. Show the calculation step-by-step and state the final number clearly.

Pro tip: Mention that this is an approximation and that exact power calculations (e.g., using Fisher's exact test) may yield slightly different results; also note that for low baseline rates, the normal approximation may be less accurate, so tools like G*Power or simulation might be preferred in practice.

1. Clarify assumptions and parameters

Confirm that the test is two-sided, alpha=0.05, power=80%, equal allocation, and that the baseline conversion is 2% with a 50% relative uplift (so absolute uplift = 1 percentage point).

2. State the formula

Use the standard formula for sample size per arm for two proportions: n = ( (z_{α/2} + z_β)^2 * (p1(1-p1) + p2(1-p2)) ) / (p2 - p1)^2, where z_{α/2}=1.96 and z_β=0.84.

3. Plug in the numbers

Compute p1=0.02, p2=0.03, p1(1-p1)=0.0196, p2(1-p2)=0.0291, sum=0.0487. Then n = (1.96+0.84)^2 * 0.0487 / (0.01)^2 = (2.8)^2 * 0.0487 / 0.0001 = 7.84 * 0.0487 / 0.0001 = 0.3818 / 0.0001 = 3818 per arm.

4. Round up and present final answer

Since sample size must be an integer, round up to 3819 per arm (or 3818 if using exact calculation). State the final number clearly.

5. Discuss practical considerations

Mention that this is an approximation, and that for low baseline rates, exact methods or simulations might be more accurate. Also note that real-world factors like traffic, duration, and multiple testing may affect the required sample size.

Key Points to Mention

  • Two-sided alpha of 0.05 and 80% power correspond to z-scores 1.96 and 0.84 respectively.
  • Baseline conversion p1=0.02, uplift of 50% relative means p2=0.03 (absolute difference 0.01).
  • Formula: n = (z_{α/2} + z_β)^2 * (p1(1-p1) + p2(1-p2)) / (p2 - p1)^2.
  • Calculation yields approximately 3818 per arm, which rounds up to 3819.
  • This is an approximation; exact methods or simulations may be needed for low conversion rates.
  • Consider practical constraints: traffic, test duration, and multiple comparisons.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q3

Given a $5 outreach cost per merchant and an expected $120 gross margin over 90 days from a converted merchant, what precision threshold does the model need to break even on targeting?

Pricing & MonetizationA/B Testing & Experimentation
Author's notes

Straightforward once you set it up as expected value: you need the conversion rate among targeted merchants to exceed 5/120, which is roughly 4.2%.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining the break-even condition: expected profit per targeted merchant must be non-negative. Then express expected profit in terms of precision, recall, and the costs and margins, and solve for the minimum precision required. Finally, discuss practical considerations like class imbalance and the precision-recall trade-off.

Pro tip: In practice, you also need to consider the opportunity cost of false positives and the potential for repeat purchases beyond 90 days; a simple break-even calculation is just the starting point for a more nuanced business decision.

1. Define the break-even condition

Set expected profit per targeted merchant to zero: expected revenue minus outreach cost equals zero. This gives the minimum precision needed to avoid losing money.

2. Express expected profit in terms of precision

Let p be the precision (fraction of targeted merchants that convert). Expected profit per targeted merchant = p * $120 - $5. Set this ≥ 0 and solve for p.

3. Calculate the threshold

Solve p * 120 - 5 ≥ 0 → p ≥ 5/120 ≈ 0.0417. So the model must have precision of at least 4.17% to break even.

4. Interpret and discuss implications

Explain that this is a very low threshold, meaning even a weak model can be profitable. Discuss how this relates to the base rate and the importance of recall and coverage.

Key Points to Mention

  • Break-even precision formula: precision ≥ cost / gross margin
  • Calculation: $5 / $120 ≈ 4.17%
  • Assumption that all targeted merchants receive outreach and only converted merchants generate margin
  • The threshold is independent of the number of merchants targeted, assuming constant cost and margin per merchant
  • In practice, consider the base rate (conversion rate) and the precision-recall trade-off
  • Potential for additional value beyond 90 days or from non-converted merchants (e.g., future conversions)

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q4

What contamination risks exist when some customers transact across multiple merchants in the experiment? How do you handle merchants already piloting Subscription, and how do you attribute conversions when a merchant gets multiple outreach touches?

A/B Testing & ExperimentationProduct Analytics & MetricsTechnical Trade-offs
Author's notes

Multi-merchant customers as a contamination vector is genuinely subtle and I think I gave a decent answer about excluding or flagging shared customer IDs.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by acknowledging the complexity of multi-merchant contamination and the need for careful experimental design. Then, outline a structured plan to handle pre-existing pilots, multiple outreach touches, and conversion attribution, emphasizing randomization, stratification, and causal inference techniques. Conclude by discussing trade-offs and validation to ensure robust results.

Pro tip: Proactively suggest using merchant-level randomization with a washout period to mitigate contamination, and propose a multi-touch attribution model that accounts for time decay and channel interactions. This shows you think beyond basic A/B testing and understand real-world complexities.

1. Identify and Quantify Contamination Risks

Assess how customers transacting across multiple merchants can lead to treatment spillover. Quantify the potential bias by analyzing customer overlap and merchant networks.

2. Handle Pre-existing Pilots

Exclude merchants already piloting Subscription from the experiment or stratify them into a separate cohort. Alternatively, use a difference-in-differences design to account for their prior exposure.

3. Design Randomization and Stratification

Randomize at the merchant level, stratifying by customer overlap and pilot status. Consider cluster randomization or switchback designs to minimize contamination.

4. Attribute Conversions with Multiple Touches

Implement a multi-touch attribution model (e.g., Markov chains, Shapley value) that considers the sequence and timing of outreach. Use holdout groups to measure incremental lift.

5. Validate and Monitor

Run sensitivity analyses to check for contamination bias. Monitor key metrics and use causal inference methods (e.g., instrumental variables) to validate results.

Key Points to Mention

  • Contamination via shared customers across merchants (spillover effects)
  • Stratification or exclusion of merchants already in pilot
  • Merchant-level randomization and cluster randomization
  • Multi-touch attribution models (e.g., time decay, Markov chains)
  • Holdout groups and incremental lift measurement
  • Sensitivity analysis and causal inference techniques

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.