Machine Learning Problem Framing

Consider a fictional retention project. A model evaluated on customers who had not received a retention call scored 0.86 ROC-AUC for subsequent churn. The team then called the two thousand highest-scoring customers each month with an offer.

Two quarters later, the observed churn rate was unchanged. Call notes included customers who had moved out of the service area or closed their businesses. Those notes raised doubts about whether the offer could help, but they could not show who would have stayed without it or how uncalled customers would have responded. An unchanged overall rate also cannot establish zero effect: churn might have risen without the calls.

The model might still rank untreated churn risk well. The targeting decision needs evidence about the change a call causes and whether that change is worth its cost. A high predictive score does not supply that evidence. The project should define the action and its intended benefit early, then revise the framing as data availability and evaluation results reveal what can be learned.

Start from the decision, not the data

The scikit-learn threshold guide separates probability estimation from the action taken on those probabilities. For a retention team, an estimated risk and a decision to offer a discount are different outputs. Define the decision before selecting a modeling objective, while checking that the required inputs and outcomes can actually be observed.

Googleโ€™s problem-framing course starts by asking whether ML suits the problem, then connects the intended outcome, model output, and success criteria. In practice, record the decision owner, action, prediction target and timing, available capacity, and evaluation plan. Treat this as an initial specification to test against the data, not a contract that must be finalized before opening a dataset. ML problem framing develops that process; decision question applies it to analytical requests more generally.

Match the output to the decision

The required output helps determine the task. These examples are not mutually exclusive: a time-series forecast may be a regression estimate, a classification probability, or a distribution.

ShapeAnswersSupports decisions likeCommon trap
RegressionHow much?Setting a price, sizing an order, estimating a claimTreating over- and under-estimates as equally bad when they rarely cost the same
ClassificationWhich one, or whether?Approving, flagging, routing, targetingLeaving the threshold at its default and letting it make the business trade-off
ClusteringWhat groups exist?Designing segments, services, or product tiersTreating the groups as facts; there are no labels, so the grouping reflects the features and the method chosen
Time-series forecastingHow much, and when?Staffing, capacity, inventory, cashEvaluating future deployment with a split that allows training on observations unavailable at the forecast origin

Anomaly detection asks what does not fit, and suits cases where the bad events are too rare or too varied to label. Ranking asks which comes first, and is what a capacity-limited team actually consumes. The technical treatment of each lives in the machine learning series: problem types and their vocabulary in Machine Learning Fundamentals, grouping in k-Means Clustering, forecasting in Time-Series Forecasting, and rare-event detection in Anomaly Detection.

The baseline is the first deliverable

A model’s value is its improvement over what would happen without it, so the first thing to build is the comparison. Two baselines matter. The current practice โ€” the rule a team already uses, however informal โ€” because that is what the model would replace. And a deliberately simple predictor, such as last period’s value for a forecast or the overall rate for a classifier, because it shows how much of the apparent skill is available for free. For time series in particular, a naive forecast is a benchmark rather than a placeholder, a point developed in naรฏve baseline forecast and in the section on simple forecasts in the forecasting article.

Baseline results inform whether to continue, alongside the business success criterion, the remaining performance gap, plausible improvements, and their cost. Googleโ€™s course distinguishes adequate performance from the prospect of further improvement. Losing to a simple baseline today does not establish that useful performance will never be possible. Compare the alternatives, identify what would justify another iteration, and set a stopping criterion. Machine Learning Fundamentals develops the technical comparison.

Two kinds of metric, and why they diverge

Evaluation metrics describe predictions against their target labels; success metrics concern the intended service or business outcome. Googleโ€™s course emphasizes that strong predictive performance can still fail to achieve the productโ€™s goal. To attribute an improvement to deployment, compare against a credible alternative under a suitable evaluation design, with a stated population, time window, costs, guardrails, and uncertainty. A before-and-after movement alone does not establish that the model caused it.

Its illustration of the failure is worth keeping in mind for any engagement metric: a model trained to predict clicks can learn to favor attention-grabbing items, so clicks rise while the time people find worth spending falls. Evaluation metrics are therefore a proxy for success, useful only to the extent the link holds โ€” the general caution in proxy metric. The success metric also needs a measurement window fixed in advance, since some effects show within days and others take months.

Which evaluation metric to watch is itself a choice with consequences. The meanings of the classification metrics are covered in Classification Metrics and Decision Thresholds, the regression and ranking metrics in Regression and Ranking Metrics, and the gap between offline scores and what happens after deployment in Offline Metrics and Online Outcomes. Reading any such number honestly draws on the judgment described in Reading a Result Honestly.

Errors have prices

Prediction errors can have different consequences, and correct actions can have costs too. The scikit-learn guide illustrates why a default classification threshold may not fit an application. Business decisions require their own comparison: a missed fraud against a blocked customer, an unfilled shift against an idle worker, an overstocked item against an empty shelf.

Estimate the consequences of each action and outcome, including review costs and residual losses; misclassification cost explains how. Choose an operating rule against that objective while satisfying capacity and policy constraints, which can apply together. Decision threshold covers the resulting threshold and selection rules. Computing expected costs from probabilities requires suitable probability estimates in the population where the rule is used; Probability Calibration explains how to assess them. Alternatively, tune a score threshold against measured costs on separate, representative validation data. That empirical route does not require the score itself to be a calibrated probability.

Predicting the outcome, or the effect of acting

For retention targeting, define untreated churn risk separately from the change caused by a specified call or offer. A customer certain to leave with or without a call has high risk and no retention benefit; a customer certain to stay has low untreated risk. Risk and benefit rankings can differ, but need not. Uplift models estimate conditional average treatment effects rather than identifying each personโ€™s otherwise unobservable response type. To select actions, combine expected incremental outcomes with their value, action costs, capacity, and policy constraints. Ranking by effect alone is sufficient only under conditions such as equal outcome values and equal action costs. Where action effectiveness is already known, an outcome probability can be an input to this value calculation.

A causal comparison needs a specified intervention and evidence that identifies its effect. Random assignment makes treatment independent of potential outcomes under the assignment design; it does not make treatment independent of the observed outcome it may change.

For an observational comparison in the retention decision, this means comparing customers who were similar before the offer and had a chance of receiving either action. The comparison must refer to the same specified call or offer; otherwise it answers a different intervention question. Observational adjustment can identify effects if its assumptions hold. Conditional exchangeability means that, after accounting for the measured pretreatment covariates, the choice to call does not still depend on differences in potential outcomes. For example, adjusting for recorded tenure and past usage is insufficient if an unrecorded intention to leave affects both whom staff call and who later churns. Overlap requires a chance of observing either action for the customer profiles being compared; if all high-risk customers were called, the data supply no comparable untreated high-risk group. Consistency connects the observed outcome to the specified intervention actually received, so materially different offers cannot silently be treated as the same action.

Both designs also need to address interference, such as an offer to one account affecting another; nonadherence, when customers do not receive or use the assigned offer; and missing outcomes, when subsequent churn cannot be observed. These conditions affect which causal comparison the data can support. Causal Inference for Machine Learning develops these conditions, and A/B Testing and Experiment Design covers experimental evaluation.

When not to build a model

A project may not justify an ML system when no useful action follows its output, a simple rule already captures the attainable value at lower cost, or errors cannot be managed acceptably. For supervised learning, an unreliable outcome record is a reason to investigate label collection and validation before fitting a model. It is not a general ban on clustering or anomaly detection, which still need evidence of usefulness for the intended decision. If success cannot yet be assessed, resolve that measurement problem before claiming a deployment is worthwhile.

What a leader should be able to see

A project review should connect the proposed output to the decision, comparison, and evaluation plan:

  • Which decision changes, and who owns it?
  • What action follows a prediction, and how many can be taken per period?
  • What is predicted, about whom, at what moment โ€” and is it the outcome or the effect of acting?
  • What does the current practice achieve, and what does a simple predictor achieve?
  • What is the success metric, and when will it be measured?
  • What does each kind of error cost, roughly?
  • Who sets the threshold, on what basis, and when is it reviewed?

Predictive scores and feature-importance charts can help development without establishing deployment value. A historical backtest also needs an evaluation model appropriate to the proposed action: simply replaying observed outcomes as though a new offer could not affect them does not estimate the offerโ€™s causal benefit.

In the fictional churn project, the next step is to test whether the offer changes retention relative to an appropriate control, including customers outside the old top-risk queue where feasible. Plan sample size for a useful effect and quantify uncertainty; a small experiment may remain inconclusive. Estimate average or supported subgroup effects, combine them with costs and constraints, and evaluate the resulting targeting policy. No experiment reveals both potential outcomes for each individual.

References


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.