PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/Stripe

Choose threshold under costs and uncertainty

Last updated: Mar 29, 2026

Quick Overview

This question evaluates cost-sensitive threshold selection, uncertainty quantification for expected profit, calibration diagnostics, and population drift detection in a data science setting.

  • medium
  • Stripe
  • Statistics & Math
  • Data Scientist

Choose threshold under costs and uncertainty

Company: Stripe

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

Assume a deployment sends an incentive to predicted positives. Base rate π = 4% purchase without incentive. Benefit per true positive (incremental profit) = $50. Cost per false positive (incentive + email) = $1.00. Consider three candidate operating points from validation: A: TPR=0.70, FPR=0.12; B: TPR=0.55, FPR=0.05; C: TPR=0.80, FPR=0.20. (1) For a cohort of 100,000 users, compute expected incremental profit for A, B, C using E[profit] = 100000*(π*TPR*50 − (1−π)*FPR*1). Which threshold is best? (2) Provide a 95% CI for the chosen threshold’s profit using a delta method or a nonparametric bootstrap; specify what distributional pieces you resample and why. (3) Your model outputs probabilities; describe and compute two calibration diagnostics you would include (e.g., Brier score and reliability curve with ECE). (4) Outline a population drift test you would run monthly to ensure the chosen threshold remains optimal under shifting π.

Quick Answer: This question evaluates cost-sensitive threshold selection, uncertainty quantification for expected profit, calibration diagnostics, and population drift detection in a data science setting.

Related Interview Questions

  • Diagnose and validate a ratio trend change - Stripe (medium)
  • Compute power and interpret uplift metrics - Stripe (medium)
|Home/Statistics & Math/Stripe

Choose threshold under costs and uncertainty

Stripe logo
Stripe
Oct 13, 2025, 9:49 PM
mediumData ScientistTechnical ScreenStatistics & Math
1
0

Incentive Targeting: Threshold Selection, Uncertainty, Calibration, and Drift

Context: You deploy a model that sends an incentive to predicted positives. Purchases can occur without incentives; the incentive creates incremental profit only when sent to a true positive. You have validation operating points and want to choose a threshold, quantify uncertainty, check calibration, and monitor drift.

Given:

  • Base rate (no-incentive purchase probability): π = 4% = 0.04
  • Incremental benefit per true positive: B = $50
  • Cost per false positive (incentive + email): C = $1
  • Cohort size for deployment: N = 100,000
  • Candidate thresholds from validation:
    • A: TPR = 0.70, FPR = 0.12
    • B: TPR = 0.55, FPR = 0.05
    • C: TPR = 0.80, FPR = 0.20

Use the expected profit formula: E[profit] = N × (π × TPR × B − (1 − π) × FPR × C)

Tasks:

  1. Compute expected incremental profit for A, B, and C using the formula above. Which threshold is best?
  2. Provide a 95% confidence interval for the chosen threshold’s expected profit using either a delta method or a nonparametric bootstrap. State what you resample and why.
  3. Your model outputs probabilities. Describe and compute two calibration diagnostics you would include (e.g., Brier score and a reliability curve with ECE). Provide small numeric examples.
  4. Outline a monthly population drift test to ensure the chosen threshold remains optimal under shifting π (base rate).
Loading comments...

Browse More Questions

More Statistics & Math•More Stripe•More Data Scientist•Stripe Data Scientist•Stripe Statistics & Math•Data Scientist Statistics & Math

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,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
  • AI Coding 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.