Concepts / Data Sufficiency for Machine Learning

Data Sufficiency for Machine Learning

Phrasing and data checking belong together. If you phrase the problem before confirming that the data can answer it, you may build a clean-looking problem statement around information you never actually hold.

  • Programming

A Project That Started With the Wrong First Step

Imagine a team that has a large store of customer records and a strong wish to use machine learning. They gather the data, choose a model, and start training. Weeks later they have a model with impressive numbers, yet nobody can say whether it helps the business. The model may be technically sound and still answer a question nobody asked, or answer the right question with data that does not match the real situation. This article traces the early decisions that prevent that outcome.

What do you think happens?

Before any model is trained, which should a team settle first: the model type, or what question the project must answer and whether the available data can answer it?

  • The model type

  • What question must be answered, and whether the available data can answer it

Reveal answer
Answer:

What question must be answered, and whether the available data can answer it.

The source material states that a machine learning project should begin by asking what question it must answer and whether the available data can answer it. A question the data cannot address will not become a good machine learning problem, no matter how it is phrased.

Working Through the Planning Checklist

Before a model is trained, a machine learning project needs answers to a set of planning questions. The source gathers these into six key questions. Together they cover the question you are trying to answer, the data you have, how the problem is phrased, the features you extract, how success is measured, and how the solution fits into a larger product.

  1. 1
    What you are trying to answer, and whether the collected data can answer it
  2. 2
    How that question should be phrased as a machine learning problem
  3. 3
    Whether enough data has been collected to represent the problem
  4. 4
    Which features were extracted, and whether they will enable the right predictions
  5. 5
    How success will be measured in your application
  6. 6
    How the machine learning solution will interact with other parts of the research or business product

The source presents these as a checklist that you work through in order. Each question exposes a different way a project can fail. A model can be technically sound and still answer the wrong question, or answer the right question using data that does not represent the situation. The diagram below shows the go or no-go logic that the first questions impose: a project only moves forward when the question, the data, and the phrasing hold up, and the later checks are passed before training begins.

Clear questionCan data answer it?Phrase as ML problemData representsproblem?Features enable rightpredictions?Success measuredefined?Product fitconsidered?Proceed to trainingChange question orcollect datayesnorevise and recheckyesnoyesyesyes
If the data cannot answer the question, what happens next, and what must change before the project can continue? Each failed check sends the project back to revise the question, the data, or the features until it passes.

Phrasing a Practical Question as a Problem

The first question sets up the second. Before you can phrase anything, you need to know what you are trying to answer, and then ask whether the data you collected can answer that question at all. Formulation therefore depends on two things at once: a clear statement of the goal and an honest look at the data. A question the available data cannot address will not become a good machine learning problem, however neatly it is worded.

Phrasing is the act of restating a practical goal so that it names what the model receives and what it must produce. Once the goal is clear and the data has been checked against it, the practical question can be rewritten in terms of the inputs available, the output the business wants, and the prediction that connects them. The source does not give a fixed recipe for this rewriting, so the important habit is to make each part explicit before any training starts.

Key point

Phrasing and data checking belong together. If you phrase the problem before confirming that the data can answer it, you may build a clean-looking problem statement around information you never actually hold.

Sufficiency Means Representation, Not Size

The third question asks whether you have collected enough data to represent the problem you want to solve. The key word is represent. The source does not ask whether you have a large amount of data in general. It asks whether the data you hold stands in for the real problem. A dataset can be big and still fail to represent the situation it is meant to describe.

Sufficiency is judged against the problem, so the same dataset can be enough for one question and not enough for another. When you answer the sufficiency question, compare what the data covers with what the problem requires, and be honest about gaps before you commit to training. The table below contrasts the two ways a team might judge its data.

Judging by sizeJudging by representation
Asks how many records existAsks whether the records stand in for the real problem
Can be satisfied by a large but narrow collectionRequires coverage of the situations the model will actually face
Ignores which cases are missingMakes gaps explicit before training begins
Can make a big dataset look sufficientCan show that a big dataset is still insufficient

Two ways to judge whether collected data is enough

Checking Features Against Predictions

The fourth question concerns features. Features are the values extracted from raw data that a model actually uses. The diagram below shows how raw data moves through extraction steps to become those features, and where a poor choice can enter the flow.

Raw recordsExtraction stepCandidate featuresCheck againstpredictionsFeatures the modelusesEasy but unrelatedfieldenables right predictions
How does raw data move through extraction steps to become the features the model learns from, and where could the wrong features enter?

Two checks belong together here. First, you must be able to say what the features are. Second, you must judge whether those features actually help produce the predictions the problem needs. Extracting features that are easy to obtain but unrelated to the goal is a common way for a project to look busy without being useful. The source treats extracting the right features as the central point of this question.

Tracing a Late-Delivery Predictor Through the Checklist

Worked example

Checking a Proposed Late-Delivery Project

A shipping company proposes a model that predicts whether an order will arrive late. The team has order records, warehouse timestamps, and each customer's favorite color from the sign-up form. Trace the project through the planning checklist and decide whether it can proceed to training.

  1. 1
    Question

    The practical goal is to flag orders likely to arrive late so that staff can act before delivery. The team states this clearly, which is the starting point the source calls for.

  2. 2
    Can the data answer it?

    Order records and warehouse timestamps bear on delivery timing, so the data plausibly addresses the question. The team records this as a yes and moves forward.

  3. 3
    Phrasing

    The team restates the goal as a prediction: given the information known when an order is placed or dispatched, predict whether it will arrive late. The inputs, output, and prediction target are now explicit.

  4. 4
    Representation

    The records cover a single peak season only. Late deliveries in other seasons may follow different patterns, so the data may not represent the full problem. The team lists this gap and collects more records before training.

  5. 5
    Features

    Warehouse timestamps and the distance between origin and destination are relevant to timing. The favorite-color field is easy to extract but unrelated to delivery timing, so it is rejected as a feature. The team judges the features by whether they enable the right predictions.

  6. 6
    Success and product fit

    Before building the model, the team defines a measure of success tied to the operational goal, and it confirms how staff will receive and act on the flags. Only then does the project move forward.

Result

The project proceeds only after the representation gap is addressed, the irrelevant feature is removed, and success and product interaction are defined in advance. The model could be technically sound at any earlier stage and still fail these checks.

Defining Success and Product Fit

The fifth question asks how you will measure success in your application. This is a question to answer before the model is built, not after. If success is not defined in advance, it is easy to judge a result by whatever looks favorable. The source identifies the need to measure success as an important fact, and asks you to determine the measure that fits your application.

The sixth question asks how the machine learning solution will interact with other parts of your research or business product. A model rarely works alone. It receives inputs from some part of a system, and its outputs are used by another part. The source asks you to consider this interaction early, because the requirements of the surrounding product can shape the data, the features, and the way success is judged.

Mistakes Teams Make Before Training

  • Common mistake

    Treating a large dataset as sufficient

    What it looks like

    A team holds millions of records from one region and assumes the model will work everywhere.

    Why it fails

    The source asks whether the data represents the problem, not whether it is large. A big dataset can still miss the situations the model will face.

    Do this instead

    List what the data covers and what the problem requires, and record the gaps before training.

  • Common mistake

    Keeping features because they are easy to obtain

    What it looks like

    A customer's favorite color is included in a delivery-timing model because it sits in the same table.

    Why it fails

    Easy-to-obtain features that are unrelated to the goal make a project look busy without making it useful.

    Do this instead

    For each feature, state what it is and judge whether it helps produce the predictions the problem needs.

  • Common mistake

    Choosing success measures after seeing results

    Why it fails

    Judging a result by whatever looks favorable is the risk the source warns about when success is not defined in advance.

    Do this instead

    Define the measure before the model is built, and tie it to the goal.

  • Common mistake

    Ignoring how the model's outputs reach the rest of the product

Auditing a Proposed Project

MEDIUM

A startup proposes a model that predicts which support tickets will need escalation. Its data comes from ticket text written in one language, collected over one month. The proposed features include ticket length and the agent's shoe size from the staff roster. Work through the six planning questions in order and state which question fails first, what would change, and why the shoe-size feature should be judged the way the source describes.

Hints
  • Start with the question and ask whether the data can answer it before looking at anything else.
  • Ask whether the ticket data stands in for all tickets the model will see, not just how many there are.
  • For each feature, ask whether it enables the right predictions about escalation.

Key Takeaways

  • A machine learning project should begin by asking what question it must answer and whether the available data can answer it.
  • Sufficiency is about representation: the data must stand in for the real problem, and a large dataset can still fail that test.
  • Features should be judged by whether they enable the right predictions, not by how easy they are to extract.
  • Success should be defined before training, and the solution should be considered in terms of how it fits the wider product.

Related concepts

More concepts starting with D