Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Validate Generalization on New Data

Easy
Model EvaluationCross-ValidationCalibrationAccuracyAsked 1 times

Problem

Context

ShopEase built a binary classification model to predict whether a user will purchase within 7 days after viewing a product. The model is a gradient boosted tree classifier used to prioritize remarketing campaigns. It performed well during development, but marketing is concerned that results on newly launched traffic sources are weaker than expected.

Current Performance

MetricCross-Validation (Train)Holdout TestNew Production Data (Last 30 Days)
Accuracy0.910.890.82
Precision0.780.750.61
Recall0.720.690.48
F1 Score0.750.720.54
AUC-ROC0.900.870.76
Positive Rate0.240.230.19

The Problem

The model appears strong on validation and test data, but performance drops materially on recent production data. The team wants to know whether the model truly generalizes to unseen data, what the metric gaps imply, and how to validate this systematically before expanding campaign spend.

Requirements

  1. Explain whether the model is generalizing well and justify your conclusion using the metrics above.
  2. Identify the most likely reasons for the gap between holdout test and new production performance.
  3. Describe how you would validate generalization beyond a single train/test split.
  4. Recommend specific analyses to detect overfitting, data drift, or label distribution changes.
  5. Propose practical steps to improve confidence before full rollout.

Constraints

  • Marketing budget is fixed, so false positives waste spend.
  • Missing likely buyers reduces revenue from retargeting.
  • Retraining can only happen once every 2 weeks.
  • Labels arrive with a 7-day delay after prediction.
Practicing as: Machine Learning Engineer interview at Sony

Hi, I'll play your Sony interviewer for the Machine Learning Engineer role. Answer the question above like we're in the room, and I'll respond the way a real interviewer would.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Sony Machine Learning Engineer Interview Questions
Next questions
Validate Generalization Before DeploymentMediumDesign Cross-Validation Evaluation PlanEasyBASFGeneralization to New DataMedium