Framing and metrics
What it is
Questions on this theme, with the answer an interviewer is listening for. Revise modules 3, 16 and 17 if an answer surprises you.
Why it matters
Say each answer aloud before reading it.
- The first sentence should be a complete answer on its own.
- The rest adds one example or one trade-off.
- Stop there; let the interviewer choose where to go deeper.
In the real world: Interviewers use these to see whether a candidate can reason about the problem before the model.
Q: How do you choose between click, add-to-basket and purchase as a target?
Trade signal volume against closeness to the goal: clicks are plentiful but reward curiosity; purchases are close to revenue but rarer and noisier. Add-to-basket is a common middle, or predict several with a multi-task model.
Q: What is a guardrail metric? Give examples.
A metric that must not get worse while optimising the main one: latency, cancellations, complaints, organic engagement. It catches wins that cause harm elsewhere.
Q: How would you connect a model metric to a business metric?
Show offline that the model metric improves, then run an A/B test on a product metric that moves quickly, with the business metric and guardrails measured, and track offline-online agreement over many launches.
Q: When would you predict a percentile instead of a mean?
When errors are asymmetric, such as delivery promises where lateness costs more; quantile regression gives a promise that is exceeded a chosen share of the time.
Q: Why separate the prediction from the decision?
So thresholds and business rules can change without retraining, policy stays readable and auditable, and capacity constraints are applied in one place.
Q: How do you decide batch versus online for a new feature?
Ask whether the prediction depends on request-time context and whether freshness measurably improves it; otherwise batch is cheaper and safer. Often a hybrid: precompute heavy parts, compute light parts live.
Practise it: Design a Large-Scale Classification Platform, Design Model Monitoring, Design Continuous ML Deployment