Machine Learning Fundamentals interview question
How would you design an A/B test to decide whether a new model should replace the old one?
Design Asked in Machine Learning Engineer interviews
Summary
Define a primary business metric and guardrail metrics, randomise users (not requests) into control and treatment, size the test with a power calculation for the smallest effect worth detecting, run it for full business cycles, and decide with the pre-registered analysis. Use shadow mode first to catch bugs without user impact.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Machine Learning Fundamentals questions
- Compare decision trees, random forests and gradient boosting.
- What is the difference between supervised, unsupervised and reinforcement learning?
- Explain the bias-variance trade-off.
- What is data leakage, and how do you detect it?
- Which metrics would you use for a classification model, and when is accuracy misleading?
- What is overfitting, and how do you prevent it?
- How do you split data for training, validation and testing, and what is cross-validation?
- Your model scored well offline but performs badly in production. What do you check?