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.

MediumTechnical
73 practiced

Recommend an evaluation suite for a text-summarization product: which automatic metrics you would use (token overlap, BLEU, ROUGE, BERTScore, perplexity) and why, plus a human-evaluation protocol covering sample selection, an annotation rubric, and how you would reconcile automatic-metric results with human judgments when they disagree.

MediumTechnical
80 practiced

List and justify a prioritized set of production monitoring metrics for a binary classifier used in credit-risk scoring, spanning model-level, data-level, and business-level signals. For each, specify a reasonable monitoring frequency and one alerting rule you would set.

HardTechnical
123 practiced

Explain cluster-randomized experiments, where you randomize at the level of a user, household, or region rather than an individual event, and why clustering is necessary when there is spillover or correlated behavior within a cluster. Define the intra-cluster correlation coefficient and describe how it affects the required sample size and variance estimation.

MediumTechnical
77 practiced

Implement a function find_best_threshold(probs, y_true, beta=1.0) that finds the decision threshold maximizing F-beta score on validation data, returning the threshold, precision, recall, and F-beta at that point. Aim for an efficient implementation rather than a naive loop over every candidate threshold, since you may need to sweep thresholds over tens of millions of rows.

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.