Concept guide · Foundations
How do you frame a business problem as a machine-learning problem?
A slower explanation for when the short interview answer is not enough. Start with the intuition, then connect it to the technical idea and the way an interviewer expects you to reason about it.
ML area
Foundations → Problem framing
Interview format
Core
Question
ML-008
Start with the idea
In simple terms
Before choosing an algorithm, define what decision the prediction will support, when it will be made, and what happens when it is wrong.
Make it concrete
A fraud model is not just predicting fraud. It may decide whether to block a payment, ask for verification, or send the transaction for review. Each action has a different cost and time limit.
Build the answer
How to reason about it
- 1Define the user, decision, and action that follow the prediction.
- 2Set the prediction time and outcome window.
- 3Choose a target, baseline, split, and metric that match deployment.
Go one level deeper
The technical explanation
Good framing connects the prediction time to the available features, the target to an observable outcome window, and the metric to the operational decision. It also exposes leakage: a feature recorded after the decision cannot be used to make that decision in real time. A model can be statistically strong and still be the wrong product if its output does not lead to a useful action.
Mental model
A useful framing connects prediction time to action, outcome, and cost.
Say this in the interview
Start with the decision, not the algorithm. Define who or what receives a prediction, the prediction time, the action taken, the outcome window, and the cost of false positives and false negatives. Then choose a target that is observable at the right time, decide what baseline is acceptable, and design an evaluation split that matches how the system will run. Only then choose a model.
Keep preparing