How to Turn a Business Question Into a Machine Learning Problem
A step-by-step way to move from a vague goal to a defined decision, prediction target, dataset, metric and test of whether it helped.
Key takeaways
- Define the decision and the action first, because a prediction that changes no behavior has no value.
- State the unit, the moment of prediction, the outcome and the time window precisely enough that another person could build the same labels.
- Choose evaluation measures that reflect capacity and the unequal costs of different mistakes.
- Estimate what a simple rule or the current process achieves, so you know what a model must beat.
- Predicting an outcome and predicting who can be influenced are different problems, and the second usually needs an experiment.
Start from the decision someone will make differently, then work backward to the prediction that would improve it. A usable machine learning problem names who or what is scored, when, which outcome is predicted, over what period, what action follows and how success is measured.
"Use AI to reduce churn" names none of these. "Each Monday, estimate the chance that an active subscriber cancels within the next 60 days, so the retention team can call the 200 accounts where a call is most worthwhile" names nearly all of them.
Find the decision
Ask the person who raised the question to finish this sentence: "If I knew ___, I would ___." The first blank is a candidate target. The second is the action.
Follow with practical questions. Who takes the action? How often? How many cases can they handle? What do they do today? What happens if they are wrong?
Some requests turn out to need no model. If every account will be called regardless of any score, ranking adds nothing. If nobody has authority or budget to act, a precise forecast will sit in a dashboard. Finding this in week one is a good outcome.
Specify the prediction
Write down each of these in plain words.
| Item | Question | Churn example |
|---|---|---|
| Unit | What gets one score? | One active subscriber |
| Moment | When is the score made? | Monday at 00:00 |
| Outcome | What exactly counts? | A cancellation request or lapsed payment never recovered |
| Window | Over what period? | The following 60 days |
| Exclusions | Who is left out, and why? | Free trials, accounts already canceling |
| Delay | When is the truth known? | At least 60 days after scoring |
Each row hides arguments worth having now. Does a downgrade count? Does a customer who leaves and returns a week later count? Different answers produce different labels and different models. Choosing a prediction target covers the traps in detail.
The delay row shapes the project. A 60-day window means your first honest feedback on a live prediction arrives two months later.
Choose the type of problem
Once the outcome is fixed, pick the task form that serves the action.
- A yes-or-no probability suits "should we intervene?"
- A number suits "how many units should we order?", often with a range instead of a single value.
- An ordering suits "which items should we show or review first?"
- Grouping without labels suits exploration, though it rarely settles a decision by itself.
The same business question can often be framed several ways. Predicting days until cancellation, probability of cancellation within 60 days and a ranking of accounts by risk lead to different data needs and different measures. Picking the task type compares them.
Check the data honestly
For each candidate input, ask whether it existed, with the value you see now, at the moment of past predictions. Databases that overwrite records destroy that history. If you can only see today's account status, you may be training on information from the future.
Then ask where labels come from and how many positive cases you have. Fifty thousand customers with forty cancellations give you very little to learn from, however large the table looks.
Consider also how past actions shaped the data. If the team already called the riskiest customers, some of them stayed because of the call, and the records will make them look safe.
Confirm that you are allowed to use the data for this purpose. Consent, license terms and privacy law differ by place, so involve the people responsible, and ask counsel where unsure.
Turn costs into measures
A hypothetical retention offer costs 5 per contacted customer. A saved customer is worth 100. Suppose that among customers who would otherwise leave, the offer keeps 20 percent, and assume it has no effect on anyone else.
For a customer with churn probability p, contacting them has expected value:
p × 0.20 × 100 − 5 = 20p − 5 This is positive when p exceeds 0.25. With a good probability estimate, that is your threshold. If the team can only make 200 calls, rank by expected value and take the top 200 that clear zero.
Now the evaluation follows from the use. Measure precision, the share of flagged customers who really would leave, among the top 200. Check that predicted probabilities match observed frequencies, since the threshold depends on them. Overall accuracy would be nearly useless if few customers cancel. Thresholds from costs and capacity extends this reasoning.
Ask what the model cannot answer
The arithmetic above assumed a 20 percent save rate for everyone. In reality some customers would stay anyway, some will leave whatever you do, some can be persuaded, and a few may be prompted to cancel by being reminded of the bill.
A churn model estimates who is likely to leave. It does not estimate who responds to a call. That second question is causal. Answering it generally requires randomly withholding the action from some customers and comparing results, after which uplift modeling becomes possible. Plan the comparison group before launch, because it is hard to recover afterward.
A second framing, for contrast
Take another vague request: "Can we predict demand better?" Apply the same questions.
The decision is how many units of each product to order for each store. It is made twice a week by a replenishment planner. The prediction is demand per product and store over the days until the next delivery arrives, so the window is set by logistics and not by what is convenient to model.
The recorded quantity is sales, which differs from demand. When a shelf is empty, sales are zero although people may have wanted the item. Training on raw sales teaches the model that stocked-out products are unpopular, which leads to smaller orders and more empty shelves. At minimum you need stock levels, so that those periods can be flagged or handled separately.
The costs are unequal in a way a single forecast cannot express. Spoiled fresh food and lost sales of a durable item call for different safety margins. That suggests predicting quantiles and letting the ordering rule pick one. The baseline might be last week's sales for the same days, and the success measure might combine waste and stock-outs measured in a limited set of stores.
Notice how little of this discussion concerned algorithms. The framing decided the data to collect, the form of the output and the test, and a team could disagree productively about each before training anything.
Set a bar and constraints
Before modeling, measure what the current approach achieves: perhaps the team calls anyone whose usage fell by half. That is your baseline. A model that cannot beat it clearly is not worth maintaining.
Write down the constraints too:
- how quickly a score is needed and how often it is refreshed,
- whether reasons must be given to staff or customers,
- which groups must be checked for unequal error rates,
- who maintains the system and what happens when it fails.
Then agree on a success statement with a number and a date, such as a measured increase in retained revenue among contacted customers compared with the randomly held-out group, net of offer costs. Decide in advance what result would end the project.
Write the one-page brief
Put the above on a single page: decision, action, owner, unit, moment, outcome, window, data sources, known gaps, metric, baseline, constraints, trial design and stop rule. Ask the decision maker and someone who works with the data to correct it.
Disagreements will surface, and that is the point. A day spent here is far cheaper than a model that answers the wrong question accurately. Revisit the page when you learn something from the data, and record what changed and why.
A sensible first delivery is small: a historical backtest, split by time, showing what the team would have seen on past Mondays and how those flagged accounts turned out. Review a few dozen of them with the people who would make the calls. Their reactions will tell you whether the framing makes sense before you build anything permanent.
Common questions
What if the outcome I care about cannot be measured?
Choose a proxy deliberately, say how it differs from the real goal, and check the gap on a sample you can examine closely. Watch for the proxy improving while the goal does not.
Who should own the framing?
It works best as a joint job. The person accountable for the decision knows the costs and limits, and the person building the model knows what the data can support. Either one working alone tends to miss something basic.