InterviewStack.io LogoInterviewStack.io

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.

HardTechnical
89 practiced

You have a multi-task model that outputs classification labels, regression values, and ranking scores simultaneously. Propose a composite evaluation plan to compare candidate models across these tasks, including how you would normalize each task's metric, weight the tasks against each other, and ultimately select a model that balances per-task performance against overall business utility.

HardTechnical
68 practiced

The base rate (class prevalence) for your model's target changes over time in production. Describe concrete strategies to keep probability outputs well calibrated as that happens, what monitoring signal would trigger a recalibration, and how you would validate the recalibration without setting off a cascade of unnecessary retraining.

EasyTechnical
85 practiced

Explain the role of baseline models in machine learning evaluation, and why they matter as a sanity check before investing in a complex model. Give specific, simple baselines you would use for a classification task, a regression task, and a recommendation task, and, for a classification task with heavy class imbalance, name at least two naive baselines and how you would confirm a more complex model actually beats them.

HardTechnical
87 practiced

Design an approximate streaming ROC-AUC calculator in Python that ingests an incoming stream of (y_true, score) pairs under limited memory, supports incremental updates, and can be queried for an approximate AUC at any time. Discuss the algorithmic choices (fixed binning, t-digest, quantile sketches), the memory-versus-accuracy trade-off, and how you would merge sketches computed on different shards.

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.