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.

EasyTechnical
83 practiced

Walk through precision, recall, specificity, F1 score, and accuracy for a binary classifier: what each measures, the formula in terms of TP/FP/TN/FN, and one realistic scenario where you would prioritize each over the others. Then explain how moving the decision threshold changes these numbers.

EasyTechnical
74 practiced

Explain why a plain random train/test split, or standard k-fold, is invalid for time-series data, and describe walk-forward (rolling-origin) validation as the alternative. For a daily demand-forecasting problem spanning multiple years with seasonality, walk through how you would structure the training, validation, and test splits, and how that setup would catch a model quietly degrading over time before it ever reaches production.

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
64 practiced

You have a feature such as 'days since last purchase' or a cancellation timestamp that is derived from event history. Explain how leakage can creep in when this kind of timestamp-derived feature is computed incorrectly for validation data, using this as a concrete example, and propose the safeguards and unit tests you would add to prevent it.

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.

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.