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.

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.

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.

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.

HardTechnical
77 practiced

Propose a comprehensive adversarial-testing strategy for an NLP text classifier: black-box and white-box tests, character-level perturbations, synonym substitution and paraphrase attacks, and prompt-injection or data-poisoning scenarios. Explain what metrics you would use to report robustness, and how you would integrate continuous adversarial testing into CI/CD.

MediumSystem Design
76 practiced

Design an online A/B test to compare a new model (for example a ranking or recommendation model) against the current production model. Specify your primary metric and guardrail metrics (revenue, latency, error rate), the bucketing strategy and unit of randomization, how you would compute the required sample size to detect a given relative lift with adequate power, and how you would handle sequential monitoring, early stopping, and novelty effects during the rollout.

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.