PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Meta

Choose ML metrics under asymmetric costs

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's competency in cost-sensitive binary classification, covering skills such as defining business cost matrices, threshold selection and probability calibration, handling extreme class imbalance, fairness assessment across segments, monitoring for drift and feedback loops, and designing experiments to measure long-term product impact. It is a machine learning domain question commonly asked to probe practical judgment about trade-offs between precision and recall, operational metrics, and product-level consequences, testing both conceptual understanding of decision theory and practical application to production ML.

  • hard
  • Meta
  • Machine Learning
  • Data Scientist

Choose ML metrics under asymmetric costs

Company: Meta

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

You own a binary classifier in production. Compare two products and choose metrics and decisions under asymmetric costs: (A) credit-card fraud detection and (B) cancer detection. 1) For each, define the business cost matrix and the metric you will optimize (e.g., expected cost, recall at fixed precision, PR AUC) and why ROC AUC may mislead; 2) show how you’d set thresholds with cost curves or iso-F1/iso-precision, and how calibration (Platt/Isotonic) affects decision-making; 3) handle extreme class imbalance (sampling, class weights, focal loss) and evaluate with stratified, time-aware CV; 4) discuss fairness and false-positive burden by segment; 5) list online metrics and logs to monitor drift and feedback loops; 6) explain how short-term metric gains could reduce long-term product engagement, and propose an experiment to measure long-term impact.

Quick Answer: This question evaluates a data scientist's competency in cost-sensitive binary classification, covering skills such as defining business cost matrices, threshold selection and probability calibration, handling extreme class imbalance, fairness assessment across segments, monitoring for drift and feedback loops, and designing experiments to measure long-term product impact. It is a machine learning domain question commonly asked to probe practical judgment about trade-offs between precision and recall, operational metrics, and product-level consequences, testing both conceptual understanding of decision theory and practical application to production ML.

Related Interview Questions

  • Implement 1NN Embeddings and Forward Pass - Meta (hard)
  • Design and evaluate an ads ranking algorithm - Meta (easy)
  • How would you design a Shop Ads ranking algorithm? - Meta (easy)
  • Derive Linear Regression Solution - Meta (medium)
  • Explain key ML metrics and techniques - Meta (medium)
Meta logo
Meta
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Machine Learning
2
0
Loading...

Binary Classifier With Asymmetric Costs: Fraud vs. Cancer

Context: You own a production binary classifier and must make product/ML decisions under asymmetric error costs. Compare two use cases:

  • (A) Credit-card fraud detection
  • (B) Cancer detection (screening/triage)

Tasks:

  1. For each use case, define a business cost matrix (TP, FP, FN, TN) and state the metric(s) you would optimize (e.g., expected cost, recall at fixed precision, PR AUC). Explain why ROC AUC may be misleading in these settings.
  2. Describe how you would set thresholds using cost curves or iso-F1/iso-precision lines. Explain how probability calibration (Platt scaling or isotonic regression) changes the decision rule and threshold.
  3. Explain how you would handle extreme class imbalance (e.g., sampling, class weights, focal loss) and evaluate with stratified, time-aware cross-validation.
  4. Discuss fairness and the distribution of false-positive burden by segment; propose how to assess and mitigate disparities.
  5. List online metrics and logs to monitor drift and feedback loops after launch.
  6. Explain how short-term metric gains might reduce long-term product engagement, and propose an experiment to measure long-term impact.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Meta•More Data Scientist•Meta Data Scientist•Meta Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,000+ 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.