Skip to content

Home › Guides › What data does a predictive model need?

What data does a predictive model need?

The data a predictive model needs comes down to three things: a history of past cases with dates, the outcome you want to forecast recorded for each case, and the factors that might explain it. Consistency matters more than volume: records must mean the same thing over time, join across systems and reflect how your business runs today.

Reviewed on · Neona Tech

  • Without recorded past outcomes, a model has nothing to learn from.
  • Consistent records matter more than a large volume of them.
  • A short data review keeps you from funding a model that cannot be built.

What data does a predictive model need to work?

It needs past examples where the ending is already known. A predictive model learns by comparing many cases: what was known about each one at the time, and what happened next. To anticipate which customers will stop buying, you need customers who left and customers who stayed, each with their own history.

That is why the starting point is the question, not the technology. A specific question, such as how much of each product will sell next week or which invoices will be paid late, tells you which records to look for and at what level of detail.

  • History: past cases with a date, at the grain of the question (per order, per customer, per machine).
  • Outcome: the thing you want to predict, recorded for every case in the history.
  • Explanatory factors: what was known before the outcome, such as product, channel, price, season or earlier behaviour.

The history should cover several full business cycles

There is no fixed number of records that works for every case; what counts is whether the history shows the patterns you want to anticipate. If your sales move with the seasons, the model has to have seen those seasons more than once to tell a pattern from a coincidence.

How often the event happened matters too. Predicting something frequent, like daily demand, takes less accumulated time than predicting something rare, like the failure of equipment that almost never breaks.

Record quality outweighs record count

A short, tidy history usually beats a huge, contradictory one. A model cannot tell that a value is wrong: it treats it as truth and learns from it. This is why much of the effort in this kind of project goes into reviewing and correcting records before anything is trained.

  • The same customer or product spelled several ways or carrying different codes.
  • Required fields left blank or filled with a placeholder value.
  • Dates that record when the entry was typed rather than when the event took place.
  • Categories or units that changed midway through the history, with no note of the change.

The data usually lives in several systems

In most companies the history exists, just not in one place. Sales sit in the billing system or the ERP, contacts in the CRM, targets and adjustments in spreadsheets, and customer conversations in email or a messaging app.

For a model to use them they have to be joined, and that depends on a shared key: the same customer, product or order identifier across every source. Where that key does not exist, creating and maintaining it is the first deliverable of the project, ahead of any prediction.

How to tell whether your data is enough before you invest

Run a short assessment on a single business question. Take a sample of the history, check how complete the outcome and the factors are, and test a simple model as a baseline. If that basic model cannot beat the rule of thumb your team already uses, the problem is almost always the data rather than the algorithm.

One common mistake to watch for in that review is using information that only becomes known after the fact. A model that predicts late payment from a field filled in once the payment is already overdue looks excellent in testing and is useless in practice. The rule is simple: every input must be available at the moment you would actually make the prediction.

Common questions about data for a predictive model

Is the data I keep in spreadsheets usable?

Yes, as long as it has a stable structure: one row per case, columns that mean the same thing throughout the file, and real dates. A spreadsheet is a valid source to start from.

What if I only have a short history?

Start with a simpler question and with better record-keeping from today. With a short history you can rely on business rules, seasonal averages or simple models, and move to something more elaborate once enough cases have built up. Forcing a complex model onto little data produces unstable predictions.

Can I use customers' personal data to train a model?

You can, within the data protection law that applies to you and the purposes your customers agreed to. In practice it helps to work with identifiers instead of names, leave out anything that adds nothing to the prediction and limit who can access the history.

Related service

Data science and machine learning

Related guides