← Uber Interview Insights

Uber·Data Scientist·Technical Phone Screen·Senior

Senior
Jul 2026

Summary

Uber data scientist interview that went deep into experimentation design. Four-part question on A/B testing that covered everything from sample size math to causal inference with DAGs. More technical than I expected for a single session.

Questions Asked (4)

Q1

Given a signup funnel A/B test with a baseline conversion of 5%, a target relative lift of 10%, daily traffic of 50k with 60% targeting match and 90% bucketing success, a 1:1 split, alpha 0.05, and 80% power: compute the required sample size per variant and the expected calendar duration to reach it. State your formula and variance assumptions.

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

I knew the pooled proportion formula but fumbled the traffic adjustment.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clearly stating the sample size formula for a two-proportion z-test, then plug in the baseline rate (5%) and target rate (5.5% for a 10% relative lift). Compute the required sample per variant, then adjust for targeting match and bucketing success to find the effective daily traffic per variant, and finally divide to get the calendar duration.

Pro tip: Always sanity-check your sample size with a quick rule of thumb (e.g., ~16 * p(1-p)/delta^2 for 80% power and alpha 0.05) and mention that real-world experiments often need a guardrail period or ramp-up, so the calendar estimate is a lower bound.

1. Define hypotheses and parameters

State the baseline conversion rate (p1 = 0.05), the target rate after a 10% relative lift (p2 = 0.055), alpha = 0.05 (two-sided), and power = 0.80 (beta = 0.20).

2. Choose and state the sample size formula

Use the standard formula for comparing two proportions: n per variant = (z_{1-alpha/2} + z_{1-beta})^2 * [p1(1-p1) + p2(1-p2)] / (p2 - p1)^2, and explicitly mention the variance assumption (binomial variance under each proportion).

3. Compute required sample size per variant

Plug in z-values (1.96 for alpha=0.05 two-sided, 0.84 for 80% power) and the proportions to calculate n; show the intermediate arithmetic and round up to the nearest integer.

4. Adjust for traffic eligibility and bucketing

Calculate effective daily traffic: 50,000 * 0.60 (targeting match) * 0.90 (bucketing success) = 27,000 users per day, then split 1:1 to get 13,500 per variant per day.

5. Derive calendar duration

Divide the required sample per variant by the effective daily traffic per variant to get the number of days, and state the final duration in days (round up).

Key Points to Mention

  • Two-sided test with alpha=0.05 and power=0.80, using z-scores 1.96 and 0.84 respectively.
  • Variance assumption: binomial variance for each proportion, and independence between variants.
  • Relative lift of 10% on 5% baseline means absolute difference of 0.5 percentage points (p2=0.055).
  • Effective traffic calculation: 50k * 60% * 90% = 27k total, 13.5k per variant per day.
  • Sample size formula for two proportions and the need to round up to ensure sufficient power.
  • Calendar duration is a lower bound; real experiments may need ramp-up, guardrails, and avoid peeking.

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

Q2

For a proportion-based primary metric in an A/B test, would you use a Z-test or a T-test, and why? When do their results meaningfully diverge? Also address how estimating variance from data, small-sample corrections, and unequal group sizes affect the choice.

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

Z-test is the right call for proportions at scale and I said so, but then they pushed on small samples and unequal splits and I got a bit wobbly.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying that for a proportion-based metric, the Z-test is typically used because the variance is determined by the null hypothesis proportion, and with large samples the normal approximation is valid. Then discuss when the T-test might be considered (e.g., small samples, unknown variance) and how unequal group sizes and variance estimation affect the choice. Finally, explain that in practice results diverge mainly for small samples or extreme proportions, and mention corrections like Welch's T-test or continuity correction.

Pro tip: Emphasize that at Uber's scale, the Z-test is standard due to large samples, but showing awareness of edge cases (e.g., small samples, rare events) and practical corrections demonstrates depth beyond textbook knowledge.

1. Clarify the metric and assumptions

State that the metric is a proportion (e.g., conversion rate) and discuss the assumptions: independence, large sample size for normal approximation, and variance estimated under the null.

2. Choose Z-test as default

Explain that for proportions, the Z-test is standard because the variance is a function of the proportion, and with large samples the test statistic follows a normal distribution.

3. Discuss when T-test might apply

Mention that T-test is used when variance is estimated from data and sample size is small, but for proportions with large samples, Z and T converge; T-test is not typically used for proportions.

4. Address divergence and corrections

Explain that results diverge meaningfully only for small samples or extreme proportions; mention small-sample corrections (e.g., Fisher's exact test, continuity correction) and unequal group sizes (e.g., Welch's T-test for continuous, but for proportions use pooled variance or unpooled Z-test).

5. Conclude with practical recommendation

Summarize that for Uber's scale, Z-test is appropriate, but always check assumptions and consider exact tests for small samples or rare events.

Key Points to Mention

  • Z-test uses normal approximation; T-test uses t-distribution with heavier tails for small samples.
  • For proportions, variance is determined by the proportion under the null, so Z-test is natural.
  • Results diverge when sample size is small (e.g., <30 per group) or when proportions are near 0 or 1.
  • Unequal group sizes affect power but not the choice of test; Z-test can handle unequal sizes with proper variance formula.
  • Small-sample corrections: use exact tests (Fisher's exact) or continuity correction for Z-test.
  • Estimating variance from data: for proportions, use pooled proportion under null; for T-test, use sample variance.

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

Q3

If a product stakeholder wants to stop the test early whenever results look promising, how would you design a sequential testing or alpha-spending framework to control Type I error? Describe the stopping rules and how they affect nominal sample size and expected test duration.

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

This is where I actually felt decent.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by acknowledging the stakeholder's desire for early stopping and framing it as a trade-off between speed and statistical rigor. Then propose a sequential testing framework (e.g., group sequential designs with alpha-spending functions) that controls Type I error while allowing interim analyses. Finally, quantify the impact on sample size and expected duration, and discuss practical considerations like monitoring frequency and communication.

Pro tip: Emphasize that you would pre-specify the stopping rules and spending function before the test begins to avoid p-hacking, and use simulation to show stakeholders the trade-offs (e.g., inflated sample size if effect is small). This demonstrates both statistical rigor and business pragmatism.

1. Acknowledge the trade-off

Explain that early stopping based on promising results inflates Type I error if not properly controlled, and that a sequential testing framework balances speed and error control.

2. Choose a sequential design

Propose a group sequential design with a pre-specified alpha-spending function (e.g., O'Brien-Fleming or Pocock) that allocates Type I error across interim looks, or a always-valid inference approach like mSPRT.

3. Define stopping rules

Specify the number and timing of interim analyses, the spending function, and the decision boundaries (e.g., efficacy and futility) for each look, ensuring they are pre-registered.

4. Quantify impact on sample size and duration

Explain that sequential designs typically require a larger maximum sample size than fixed-horizon tests to maintain power, but expected sample size and duration can be lower if the effect is large.

5. Address practical implementation

Discuss monitoring frequency, operational overhead, and communication with stakeholders about the pre-specified rules and the trade-offs involved.

Key Points to Mention

  • Type I error inflation from repeated testing and the need for alpha-spending
  • Group sequential designs (O'Brien-Fleming, Pocock) and their boundary shapes
  • Alpha-spending functions (e.g., Lan-DeMets) and how they allocate error across looks
  • Maximum sample size inflation vs. expected sample size reduction
  • Pre-registration of stopping rules to prevent p-hacking
  • Alternative approaches like always-valid inference (mSPRT) or Bayesian sequential testing

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

Q4

If randomization isn't feasible for a related rollout, sketch a causal inference plan: draw a DAG to identify confounders, propose an identification strategy such as difference-in-differences or instrumental variables, and list the key assumptions you'd need to defend and how you'd validate them.

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

Hardest part of the whole interview.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the rollout scenario and defining the causal estimand, then sketch a DAG to identify confounders and choose an identification strategy (DiD or IV) that fits the data structure. Finally, explicitly list the key assumptions for that strategy and describe concrete validation checks and sensitivity analyses.

Pro tip: Acknowledge that no observational method is assumption-free; demonstrating how you'd falsify assumptions (e.g., pre-trend tests, placebo outcomes, overidentification tests) signals maturity beyond textbook knowledge.

1. Clarify the causal question and data structure

Define the treatment, outcome, and target population, and confirm what variation exists (e.g., staggered rollout, geographic differences) to determine which quasi-experimental designs are feasible.

2. Draw a DAG to identify confounders

Sketch a directed acyclic graph showing treatment, outcome, observed and unobserved confounders, and mediators; use it to identify a valid adjustment set and avoid conditioning on colliders.

3. Choose and justify an identification strategy

Select difference-in-differences if you have pre/post data with a credible control group, or instrumental variables if a valid instrument exists; explain why the design addresses the confounders from the DAG.

4. State key assumptions and validation plans

For DiD, defend parallel trends with pre-trend tests and placebo outcomes; for IV, defend relevance and exclusion restriction with first-stage strength and overidentification tests; discuss sensitivity analyses for unobserved confounding.

5. Discuss limitations and robustness

Acknowledge remaining threats (e.g., anticipation effects, SUTVA violations) and propose robustness checks such as alternative control groups, synthetic controls, or bounding methods.

Key Points to Mention

  • DAG construction to identify confounders and avoid collider bias
  • Difference-in-differences with parallel trends assumption and pre-trend testing
  • Instrumental variables with relevance and exclusion restriction, plus first-stage F-statistic
  • Placebo tests and falsification checks (e.g., pre-period placebo outcomes)
  • Sensitivity analysis for unobserved confounding (e.g., Rosenbaum bounds, E-value)
  • Acknowledging limitations and proposing robustness checks like synthetic controls

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