Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Validate Generalization on New Data

EasyModel Evaluation00:00
Practice interviewer
In session
5 left
00:00

Your question is Validate Generalization on New Data. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

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.