All jobs / Data science / ML / AI / Model Evaluation
Data science / ML / AI interview question · 1–3 years
Devices in one household share an address. You split by device id. Risk?
The strongest answer
Household behaviour still crosses the split — I split on household (or another shared key) when that is how the world repeats
Why it works
Exactly. Unique ids are not independent units. Shared life leaks.
What a good answer covers
- Split on the repeating real-world unit.
- Unique device ≠ independent.
- Shared keys can leak across devices.
- Encoding the key does not clean it.
Answers that fall short
- Close, but not the strongest: Device id is unique so I am safe
Uniqueness is not independence. - Weak: I add address as a feature and keep the device split
Adding the shared key as a feature can make the leak louder. - Red flag: I one-hot the postcode so leakage becomes geography
One-hots of a leaked key are still the key.
Who gets asked this
More Model Evaluation questions
- The model says 0.9. Ops treats that as “90% sure.” What do you correct?
- Default 0.5 threshold on a 4% positive class. What do you change first?
- How do you choose between a miss and a false alarm without fake money numbers?
- You used validation to pick a model and a threshold. What is left?
- You will search a large space of models and features. How do you keep the holdout honest?
- Global AUC is fine; one country is a disaster. What do you present?
- A model beats the global baseline and loses on new customers. What do you ship?
- Three teams report three “the” model metrics. What do you standardise?