Model Evaluation and Validation Questions

Measuring whether a model is good enough to trust and ship. Covers metric selection for classification, regression, and ranking (precision/recall, ROC-AUC, calibration, RMSE), offline validation design, evaluation-metric-to-business-objective alignment, and production safety guardrails. Emphasizes choosing metrics that reflect real objectives and avoiding misleading evaluations.

HardTechnical
93 practiced

Your offline evaluation shows Model A clearly beating Model B, but the online A/B test shows no meaningful difference. Propose an investigation plan to identify the cause, and recommend concrete changes to your offline evaluation process to improve alignment going forward.

HardSystem Design
86 practiced

Design a comprehensive evaluation framework for a large-scale search or recommendation product serving tens of millions of users monthly. Cover offline metrics (NDCG@k, recall@k, MAP), how you would correct for position and exposure bias, the online metrics you would track (CTR, revenue, retention), the logging schema needed for counterfactual evaluation, and how offline evaluation, online A/B tests, and champion-challenger deployment fit together.

MediumTechnical
88 practiced

Explain uplift (heterogeneous treatment effect) modeling and the metrics used to evaluate it, such as the Qini coefficient and uplift@k. Describe a business use case, for example a marketing campaign, where uplift modeling is clearly preferable to simply predicting conversion probability directly, and how you would run an experiment to validate that targeting by uplift actually increases ROI.

MediumTechnical
85 practiced

Explain Goodhart's Law and how metric gaming happens when a team optimizes a proxy metric instead of the true business objective (for example optimizing for clicks and getting clickbait). Give concrete examples, and propose an evaluation regime to detect and mitigate it: adversarial holdout sets, randomized audits, tracking long-term business metrics, and continuous monitoring for improvements that don't correlate with real outcomes.

MediumTechnical
70 practiced

A model's error rate has increased sharply for a particular user segment, or SHAP feature importances have shifted noticeably after a data pipeline change. Describe how you would use SHAP values to perform root-cause analysis: computing per-segment attributions, comparing them to a baseline, and the caveats when features are correlated, and how you would determine whether the shift reflects a real population change, a preprocessing bug, newly introduced leakage, or a training artifact.

Unlock Full Question Bank

Get access to all Model Evaluation and Validation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.