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.

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.

EasyTechnical
94 practiced

Compare ROC-AUC and PR-AUC (precision-recall AUC) for a binary classifier. For a task where positives are rare (for instance 0.5% prevalence), which curve is more informative and why? Sketch or describe a scenario where ROC-AUC looks strong but PR-AUC reveals the model is actually poor, and explain the intuition for why that happens.

EasyTechnical
70 practiced

Explain the difference between a validation set and a test set. Describe best practices for splitting data for production ML systems (time-based splits, group splits by user or session, stratification) and the common pitfalls that lead to data leakage or overfitting to the test set during model selection.

EasyTechnical
82 practiced

Define overfitting and underfitting, and explain how learning curves (training versus validation performance as a function of training-set size) let you tell them apart. Given a curve where training error stays low while validation error stays high and roughly flat, what's going on and what would you change? Then describe how the curves would look instead if the model were underfitting, and what you would do in that case.

EasyTechnical
81 practiced

Explain k-fold cross-validation and stratified k-fold cross-validation, and when you would prefer stratified k-fold over plain k-fold. Walk through a concrete example with severe class imbalance (roughly 1% positive rate) showing what can go wrong with plain random folds there.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.