← PayPal Interview Insights

PayPal·Data Scientist·Technical Phone Screen·Senior

Senior
Jun 2026

Summary

PayPal DS interview that was basically a full experiment design case study for their fraud/ATO team. Dense, technical, and they expected you to actually run the numbers live, not just talk about them conceptually. Walked away feeling like I'd taken a stats exam.

Questions Asked (5)

Q1

For a new real-time account takeover rule that blocks high-risk transfers, how would you choose the randomization unit for an A/B test, and how would you handle spillover given that recipients can overlap across users?

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

This is where I spent the most time and probably lost some points early.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the goal: to measure the causal impact of the new rule on high-risk transfers while minimizing spillover. Then discuss randomization units (user, recipient, transaction) and their trade-offs, and propose methods to handle spillover such as cluster randomization or network-based designs.

Pro tip: Emphasize that spillover can bias estimates and that the choice of randomization unit should align with the level at which the treatment is applied and the level at which outcomes are measured. Mention that in financial settings, user-level randomization is often preferred but may require adjustments for recipient overlap.

1. Define the treatment and outcome

Clarify that the treatment is a rule that blocks high-risk transfers, and the primary outcome is the reduction in fraudulent transfers without harming legitimate ones. Identify the unit of analysis (e.g., user, transfer).

2. Evaluate randomization units

Consider randomizing at the user level (sender), recipient level, or transfer level. Discuss pros and cons: user-level avoids within-user contamination but may have spillover if recipients are shared; transfer-level may have contamination if same user has both treated and control transfers.

3. Assess spillover and interference

Analyze how treatment of one user can affect outcomes of others via shared recipients. For example, if a sender is blocked, the recipient might receive transfers from other senders, altering their risk profile. Quantify potential spillover using network analysis.

4. Choose a design to handle spillover

Options: cluster randomization (e.g., randomize by recipient clusters or communities), switchback designs, or using a network-based randomization like graph cluster randomization. Alternatively, use a user-level randomization with spillover-adjusted estimators.

5. Validate and monitor

Run power analysis considering spillover, monitor for interference during the experiment, and use techniques like A/B testing with holdouts or causal inference methods to estimate direct and spillover effects.

Key Points to Mention

  • Randomization unit options: user, recipient, transaction, cluster
  • Trade-offs: contamination vs. spillover, statistical power, feasibility
  • Spillover mechanisms: shared recipients, network effects, equilibrium effects
  • Design solutions: cluster randomization, network randomization, switchback
  • Estimation: intent-to-treat vs. treatment-on-treated, spillover-adjusted estimators
  • Practical constraints: business rules, implementation complexity, ethical considerations

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

Q2

Compute the minimum per-arm sample size to detect a 20% relative reduction in fraud rate using a two-sample proportion Z-test, then inflate it using the design effect formula with the given ICC and cluster size.

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

The raw sample size calculation was fine, p0 of 0.0012 means you need a massive number of transfers to detect a 20% relative drop because the base rate is so small.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

First, compute the required sample size per arm for a two-sample proportion Z-test using the baseline fraud rate, the target relative reduction (20%), and desired power and significance levels. Then, adjust this sample size for clustering by multiplying by the design effect, which is 1 + (cluster size - 1) * ICC. Finally, round up to ensure sufficient sample size.

Pro tip: Always clarify the baseline fraud rate, significance level (alpha), and power (1-beta) before calculating; these are often assumed but critical. Also, mention that the design effect increases sample size, and if ICC is high, consider alternative designs like stratification or matched clusters.

1. Identify parameters

Determine the baseline fraud rate (p1), the relative reduction (20%), so the new rate p2 = p1 * (1 - 0.20). Also confirm significance level (typically 0.05) and power (typically 0.80).

2. Compute sample size for independent data

Use the formula for two-sample proportion Z-test: n = (Z_{α/2} + Z_{β})^2 * (p1(1-p1) + p2(1-p2)) / (p1 - p2)^2, where Z_{α/2} and Z_{β} are the critical values for the chosen alpha and beta.

3. Calculate design effect

Compute the design effect (DE) using the formula: DE = 1 + (m - 1) * ICC, where m is the cluster size and ICC is the intracluster correlation coefficient.

4. Adjust sample size for clustering

Multiply the sample size from step 2 by the design effect to get the required sample size per arm for cluster randomized design. Round up to the next integer.

5. Sanity check and discuss assumptions

Verify that the sample size is feasible and discuss any assumptions (e.g., normality approximation, known ICC). Consider sensitivity analysis for ICC and cluster size.

Key Points to Mention

  • Baseline fraud rate and relative vs absolute reduction
  • Two-sample proportion Z-test formula and required parameters (alpha, power)
  • Design effect formula: 1 + (cluster size - 1) * ICC
  • Intracluster correlation coefficient (ICC) and its impact on sample size
  • Clustering reduces effective sample size, so inflation is needed
  • Assumptions: normality approximation, known ICC, equal cluster sizes

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

Q3

Translate the detectable effect into an expected weekly net dollar impact, accounting for both fraud losses prevented and the cost of incorrectly blocking legitimate transfers.

A/B Testing & ExperimentationPricing & Monetization
Author's notes

Net = (fraud prevented * loss per incident) minus (extra legit blocks * cost per block).

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining the detectable effect from the experiment (e.g., a 5% reduction in fraud rate or a 2% increase in false positives) and then translate it into weekly net dollar impact by calculating fraud losses prevented minus the cost of incorrectly blocking legitimate transfers. Use average transaction value, fraud rate, false positive rate, and cost per false positive to build a simple model, and present the result as a range with assumptions clearly stated.

Pro tip: Always express the net impact as a confidence interval or range, not a single number, and explicitly state that the cost of false positives includes not just lost revenue but also potential customer lifetime value and support costs—this shows you understand the full business impact.

1. Define the detectable effect

Clarify what metric changed in the experiment (e.g., fraud rate reduction, false positive rate increase) and its magnitude, ensuring it is statistically significant and practically meaningful.

2. Estimate fraud losses prevented

Multiply the reduction in fraud rate by the total weekly transaction volume and average transaction value to get the gross fraud savings.

3. Estimate cost of false positives

Multiply the increase in false positive rate by weekly transaction volume and the average cost per false positive (including lost revenue, customer service, and churn impact).

4. Compute net dollar impact

Subtract the cost of false positives from the fraud losses prevented to get the weekly net dollar impact, and consider sensitivity analysis around key assumptions.

5. Validate and communicate

Sanity-check the result against business context, express uncertainty (e.g., confidence intervals), and summarize the net impact clearly for stakeholders.

Key Points to Mention

  • Average transaction value and weekly transaction volume
  • Baseline fraud rate and false positive rate
  • Cost per false positive (including lost revenue, support costs, and customer lifetime value)
  • Statistical significance and confidence intervals of the detectable effect
  • Sensitivity analysis to show robustness of the estimate
  • Alignment with business metrics like revenue and customer experience

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

Q4

Define the primary, secondary, and guardrail metrics for this experiment, including precise denominators and how you'd slice results across user segments.

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

Primary metric is fraud rate on transfers, denominator being total transfers in the arm.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the experiment's goal and hypothesis, then define one primary metric that directly measures success, secondary metrics that provide context, and guardrail metrics to ensure no harm. Specify precise denominators for each metric and outline a segmentation plan to detect heterogeneous treatment effects.

Pro tip: Proactively mention that you would pre-register the metric definitions and segmentation plan before launching the experiment to avoid p-hacking and ensure statistical validity. Also, consider using a holdout group for long-term guardrail monitoring.

1. Clarify Experiment Goal and Hypothesis

Restate the experiment's objective and the expected causal effect to ensure alignment. This guides the selection of appropriate metrics.

2. Define Primary Metric with Precise Denominator

Choose a single metric that directly measures the experiment's success, such as conversion rate or average revenue per user. Clearly define the denominator (e.g., total users exposed, total sessions) and the numerator.

3. Define Secondary and Guardrail Metrics

Select secondary metrics that provide additional insights into user behavior (e.g., click-through rate, engagement time). Choose guardrail metrics to monitor potential negative impacts (e.g., latency, error rate, customer support contacts).

4. Specify Segmentation Plan

Identify key user segments (e.g., new vs. existing users, device type, geography) and plan to analyze treatment effects within each segment. Use appropriate statistical methods to account for multiple comparisons.

5. Outline Analysis and Decision Criteria

Describe how you will analyze the metrics (e.g., hypothesis tests, confidence intervals) and the decision rules for shipping, iterating, or stopping the experiment based on primary and guardrail metrics.

Key Points to Mention

  • Precise denominator definition (e.g., unique users vs. sessions) and its impact on metric interpretation.
  • Alignment of metrics with the experiment's goal and business objectives.
  • Use of guardrail metrics to detect unintended consequences and ensure user experience is not degraded.
  • Segmentation by relevant dimensions (e.g., new vs. existing users, device, geography) to uncover heterogeneous effects.
  • Statistical considerations: power analysis, multiple testing correction, and pre-registration to avoid p-hacking.
  • Practical constraints: data availability, metric sensitivity, and trade-offs between metric sensitivity and business relevance.

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

Q5

Propose a ramp plan and stopping rules using a group sequential design, and describe how you'd monitor for drift after the rule goes to full production.

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

O'Brien-Fleming was my pick over Pocock because it's more conservative early in the ramp, which matters when you're blocking real transactions and a false positive costs you real money.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the experiment as a high-stakes A/B test where early stopping must balance speed and risk, then outline a group sequential design with alpha-spending and a ramp plan that gradually increases traffic. Finally, describe a post-production monitoring system that tracks key metrics and uses statistical process control to detect drift.

Pro tip: Emphasize that stopping rules must be pre-registered and that drift monitoring should include both statistical and practical significance, with clear escalation paths. Mention that you'd simulate the design under various scenarios to validate operating characteristics before launch.

1. Define success metrics and stopping boundaries

Identify primary and guardrail metrics, then choose an alpha-spending function (e.g., O'Brien-Fleming) to control type I error across interim looks. Specify the number and timing of interim analyses based on expected traffic and effect size.

2. Design the ramp plan

Propose a phased rollout: start with a small percentage of traffic (e.g., 5%) to catch technical issues, then increase in stages (e.g., 10%, 25%, 50%, 100%) based on predefined criteria like no guardrail violations and stable metrics.

3. Specify stopping rules

Define both efficacy and futility stopping rules: stop for efficacy if the primary metric crosses the upper boundary, stop for futility if it crosses the lower boundary or if conditional power falls below a threshold. Include rules for safety or guardrail breaches.

4. Monitor for drift post-production

After full rollout, set up ongoing monitoring using control charts (e.g., CUSUM) on key metrics, compare against experiment results, and track segment-level performance. Use sequential testing or Bayesian methods to detect gradual changes.

5. Establish response protocols

Define actions for when drift is detected: investigate root causes, consider rollback or adjustment, and communicate with stakeholders. Document learnings to improve future experiments.

Key Points to Mention

  • Alpha-spending functions (e.g., O'Brien-Fleming, Pocock) to control overall type I error
  • Interim analyses and information fraction
  • Futility stopping based on conditional power or predictive probability
  • Ramp plan with predefined checkpoints and rollback criteria
  • Post-production monitoring using control charts (CUSUM, EWMA) and sequential tests
  • Guardrail metrics and safety monitoring
  • Simulation to validate operating characteristics (power, sample size, expected duration)

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