Compute and plot a precision–recall curve
Company: Microsoft
Role: Data Scientist
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Technical Screen
Quick Answer: This implementation-level question evaluates understanding of precision–recall curve computation and related binary classification metrics, including threshold sweeping, ranking by predicted score, handling ties, and edge cases such as no predicted positives or datasets with zero positives; Category/Domain: Coding & Algorithms, Data Science (Position: Data Scientist). It is commonly asked because it verifies practical ability to build evaluation pipelines and reason about classifier performance under class imbalance and scoring ties, and to extend results to aggregate measures like Average Precision / PR-AUC.