Concepts and worked examples

Framing Business Problems as Analytics Tasks

Turn a business question into a clear prediction task and next step.

Start with a decision, not an algorithm

Start with the decision, not the model. “Improve retention” names a goal, but it does not say what to predict. Decide who will use the result, what they will act on, when they need it, and what outcome makes the action worth taking. Compare the proposed approach with a baseline, such as the current policy.

The unit of analysis determines what one row represents: customer, account, transaction, store-week, or customer-product pair. Repeated rows from the same entity create dependence and may require grouped or chronological evaluation. A target is the outcome being estimated, not simply a convenient column. Define exclusions, ambiguous outcomes, observation windows, delayed labels, and eligibility before constructing the training table.

Nine task families

Different questions require different outputs
FamilyOutput and business example
Classification and class probability estimationA discrete label or probability for each class: whether an account will cancel, or its cancellation probability.
Regression or value estimationA numeric outcome: next month's usage or expected claim amount.
Similarity matchingComparable entities: retrieve customers or products similar under a chosen representation and metric.
ClusteringGroups of similar entities without a predefined outcome label: discover behavioral customer segments.
Co-occurrence groupingFrequently associated items or events: identify products purchased in the same basket.
ProfilingTypical behavior or distributions: describe normal account activity and flag unusual deviations.
Link predictionA missing or future relationship, possibly with strength: predict a customer-product purchase edge.
Data reductionA compact representation: summarize many correlated measurements while retaining useful information.
Causal modelingAn intervention's effect: estimate how outreach changes renewal compared with no outreach.

These families can be combined. Reduction may precede clustering; profiling may suggest an anomaly worth reviewing; similarity may supply features for classification. Clustering groups entities by a representation and similarity criterion, whereas co-occurrence groups items through shared transactions. Neither reveals a unique natural truth independent of modeling choices.

Association rules need context. If 20 of 100 baskets contain coffee, 10 contain filters, and eight contain both, support is 8/100 = 0.08. Confidence for coffee → filters is 8/20 = 0.40. Lift is 0.40/0.10 = 4; leverage is 0.08 − 0.20 × 0.10 = 0.06. This identifies excess co-occurrence, not proof that promoting coffee causes filter purchases.

Supervision is about the learning signal

Supervised learning uses observed targets to learn predictions, as in classification and regression. Unsupervised learning seeks structure without such target labels, as in ordinary clustering. Semi-supervised learning combines labeled and unlabeled observations under assumptions about their relationship. Unlabeled data are not automatically useful; incorrect assumptions or noisy pseudo-labels can degrade results.

Similarity matching, link prediction, and reduction can be supervised or unsupervised depending on their objectives and training information. A graph-based recommender might learn from observed purchase links or use structural similarity without a separately labeled target table. Causal analysis needs identification assumptions or experimental design beyond the mere presence of supervised labels.

Write a prediction contract

Worked example: define a monthly retention system as follows: the unit is an eligible active account at the first day of the month; the target is cancellation within the next 30 days; the horizon is 30 days; features summarize only information available at that first-day decision time; the action is an optional outreach call within two days. Exclude accounts already closed or unable to receive calls.

Historical features must obey the same availability contract. A cancellation reason recorded after closure is leakage, even if the exported table contains it beside older account fields. Distinguish when an event occurred from when its record reached the system. Leave enough time for outcomes to mature before treating recent accounts as non-cancellers.

Worked example: risk versus action value

Suppose a team can call only 200 accounts. For one account, cancellation risk is 0.40; outreach is estimated to reduce cancellation by 0.05 in absolute probability; preserving an account contributes 200 units; a call costs six. Estimated incremental value is 0.05 × 200 − 6 = 4 units. Another account has risk 0.70 but no expected treatment effect, giving 0 × 200 − 6 = −6 units.

Ranking by risk alone would favor the second account, although the first offers greater incremental value. Estimating the five-percentage-point treatment effect requires appropriate causal evidence, not subtraction of arbitrary model scores. Under a capacity limit, compare expected incremental contributions among eligible accounts and retain a no-action option.

Pitfalls and worked examples

Is predicting a number always regression?

No. A probability is numeric but describes a class event. Predicting a currency amount is regression; assigning numbered category identifiers remains classification.

How would you frame an anomaly-detection request?

First define the review action and cost. With reliable outcome labels it may be supervised classification; without them, profiling or unsupervised methods can flag deviations, which are not automatically errors or misconduct.

Next: build the decision-time dataset or revisit the analytics lifecycle.

Definition

View in glossary →