InterviewStack.io LogoInterviewStack.io

ML System Evaluation and Metrics Questions

Design comprehensive evaluation strategies including offline metrics (precision, recall, F1, AUC, calibration), online metrics (A/B test setup, statistical significance), and business metrics. Understand metric limitations and how to avoid gaming metrics.

MediumTechnical
77 practiced
In Python, implement a function that computes a 95% bootstrap confidence interval for AUC given arrays y_true and y_scores. You may use numpy and scikit-learn. Describe assumptions and how you'd handle stratified resampling to preserve class balance. Return lower and upper percentiles and the point estimate.
MediumTechnical
65 practiced
Explain how AUC-ROC can be misleading when the positive class is rare. Describe alternative metrics and evaluation approaches (e.g., precision-recall, average precision, expected precision at operational thresholds) that better capture performance for rare events. Discuss threshold selection strategies tied to business costs.
EasyTechnical
86 practiced
For a recommendation or search system, explain precision@k, recall@k and NDCG (Normalized Discounted Cumulative Gain). Discuss when each metric is appropriate, how rank position and relevance grading affect them, and how you would collect labeled data to compute these metrics offline.
HardSystem Design
82 practiced
Design an end-to-end ML evaluation pipeline for a personalization model serving millions of users daily. Define offline validation checks, experiment integration with the platform, canary and ramp strategies, metric collection schemas, SLO definitions and automated rollback criteria. Explain how to ensure metric integrity (e.g., reconciliation between offline and online metrics) across the pipeline.
MediumTechnical
61 practiced
A feature increases user engagement but also slightly increases latency for requests. You're asked to choose a primary metric and guardrails for rollout. Design a decision framework that quantifies trade-offs between engagement improvements, latency SLOs, and potential downstream costs. Explain how you'd instrument experiments and report multi-metric results to stakeholders.

Unlock Full Question Bank

Get access to hundreds of ML System Evaluation and Metrics interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.