PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Databricks

Compare ROC-AUC vs PR-AUC

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of classification performance metrics by comparing ROC-AUC and PR-AUC, specifically what each curve plots and their core formulas (TPR/FPR vs Precision/Recall) and how class imbalance and baseline rates affect each metric.

  • easy
  • Databricks
  • Machine Learning
  • Data Scientist

Compare ROC-AUC vs PR-AUC

Company: Databricks

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Technical Screen

Explain the difference between **ROC-AUC** and **PR-AUC** (Average Precision / area under the Precision–Recall curve). In your answer, cover: 1. What each curve plots and the key formulas (TPR/FPR vs Precision/Recall). 2. How class imbalance (rare positives) affects each metric and its baseline. 3. Practical tradeoffs: when you would prefer ROC-AUC vs PR-AUC for model evaluation/selection. 4. Common pitfalls (e.g., interpretability, threshold choice, calibration, and how AUC relates to ranking).

Quick Answer: This question evaluates understanding of classification performance metrics by comparing ROC-AUC and PR-AUC, specifically what each curve plots and their core formulas (TPR/FPR vs Precision/Recall) and how class imbalance and baseline rates affect each metric.

Related Interview Questions

  • Implement Gradient Descent Regression - Databricks (medium)
  • Implement Linear Regression Gradient Descent - Databricks (medium)
  • Explain ROC-AUC vs PR-AUC tradeoffs - Databricks (hard)
  • Explain Linear Regression Feature Transformation Equivalence - Databricks (medium)
Databricks logo
Databricks
Dec 3, 2025, 12:00 AM
Data Scientist
Technical Screen
Machine Learning
9
0

Explain the difference between ROC-AUC and PR-AUC (Average Precision / area under the Precision–Recall curve).

In your answer, cover:

  1. What each curve plots and the key formulas (TPR/FPR vs Precision/Recall).
  2. How class imbalance (rare positives) affects each metric and its baseline.
  3. Practical tradeoffs: when you would prefer ROC-AUC vs PR-AUC for model evaluation/selection.
  4. Common pitfalls (e.g., interpretability, threshold choice, calibration, and how AUC relates to ranking).

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Databricks•More Data Scientist•Databricks Data Scientist•Databricks Machine Learning•Data Scientist Machine Learning
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
  • Compare Platforms
  • Discord Community

Support

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

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.