PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Uber

Differentiate Type I vs II errors under costs

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of hypothesis testing (Type I/II errors), cost-sensitive decision theory, sample size calculation for proportion tests, and multiple-testing corrections within the Statistics & Math domain for a Data Scientist role.

  • hard
  • Uber
  • Statistics & Math
  • Data Scientist

Differentiate Type I vs II errors under costs

Company: Uber

Role: Data Scientist

Category: Statistics & Math

Difficulty: hard

Interview Round: Technical Screen

Define Type I (false positive, alpha) and Type II (false negative, beta) errors in the context of a binary ship/no-ship product decision. Consider this scenario: A new dispatch algorithm is believed to improve gross bookings by at least +1%. Prior probability the true effect is ≥ +1% is p = 0.30. If you ship a truly harmful/neutral algorithm (false positive), expected cost C_FP = $500,000; if you fail to ship a truly beneficial algorithm (false negative), expected cost C_FN = $50,000. (a) Which error is worse in expectation and why? (b) Derive the decision rule that minimizes expected loss in terms of alpha and beta, showing how p, C_FP, and C_FN enter the expression. (c) Choose alpha and power (1 - beta) consistent with your rule and justify them. (d) Compute the minimum sample size per arm for a difference-in-means test on a proportion metric with baseline conversion rate 10% and MDE = 1% absolute (use a two-sided test and your chosen alpha/power). (e) If you must run 10 metrics, explain how your choice changes under FWER control (Bonferroni) vs FDR control (BH).

Quick Answer: This question evaluates understanding of hypothesis testing (Type I/II errors), cost-sensitive decision theory, sample size calculation for proportion tests, and multiple-testing corrections within the Statistics & Math domain for a Data Scientist role.

Related Interview Questions

  • Should Uber double member discounts? - Uber (medium)
  • Compare Two Coin Proportions - Uber (medium)
  • Analyze the Accident-Rate Spike - Uber (easy)
  • How do you derive CDF from a PDF? - Uber (easy)
  • Derive a CDF from a PDF - Uber (medium)
Uber logo
Uber
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
10
0
Loading...

Ship/No-Ship Decision: Type I/II Errors, Cost-Sensitive Testing, Sample Size, and Multiple Testing

Context

You are deciding whether to ship a new dispatch algorithm based on an A/B test. The business outcome of interest is gross bookings improvement. You will use a binary decision: ship or do not ship.

  • Beneficial threshold (effect of interest): at least +1% absolute improvement in the primary metric.
  • Prior probability that the true effect is beneficial (≥ +1%): p = 0.30.
  • Costs:
    • False Positive (Type I): ship when the algorithm is not beneficial (effect < +1%); expected cost C_FP = $500,000.
    • False Negative (Type II): do not ship when the algorithm is beneficial (effect ≥ +1%); expected cost C_FN = $50,000.

Assume an A/B test on a proportion metric (e.g., conversion), with equal allocation per arm.

Tasks

(a) Define Type I (false positive, alpha) and Type II (false negative, beta) errors in this ship/no-ship context. Which error is worse in expectation and why?

(b) Derive the decision rule that minimizes expected loss in terms of alpha and beta. Show explicitly how p, C_FP, and C_FN enter the expression.

(c) Choose concrete values for alpha and power (1 − beta) that are consistent with your cost-sensitive rule and justify them.

(d) Using your chosen alpha and power, compute the minimum sample size per arm for a two-sided difference-in-means test on a proportion metric with baseline conversion rate = 10% and minimum detectable effect (MDE) = +1% absolute (i.e., 10% vs 11%). State any standard approximations you use.

(e) If you must simultaneously test 10 metrics, explain how your alpha/power and sample size change under:

  • Family-Wise Error Rate (FWER) control via Bonferroni.
  • False Discovery Rate (FDR) control via Benjamini–Hochberg (BH).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Uber•More Data Scientist•Uber Data Scientist•Uber Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.