Skip to content
Book a conversation

What is predictive analytics and what does it have to do with the AI your company uses?

Predictive analytics is the use of historical data and statistical or machine learning models to estimate the probability of an event or the value of an indicator in the future. See how it differs from generative AI, its uses in demand, late payment, maintenance and employee turnover, the data it needs, how to evaluate a forecast and the risks.

Luiz GardelinUpdated 16 min readRead in Markdown
3D illustration on a cream background: a row of blue and cream spheres rises diagonally from left to right and passes through an orange ring; after the ring, three blurred yellow spheres continue in the same direction.
On this pageIntroduction

Predictive analytics is the use of historical data and statistical or machine learning models to estimate the probability of an event or the value of an indicator in the future. In a company's routine, it answers questions such as "how many units of this product will we sell in the next four weeks?" or "which customers are most likely to pay this month's invoice late?". The answer is an estimate with a margin of error, and it is only worth something if it changes a decision, such as the size of a purchase order. This article explains what predictive analytics has to do with artificial intelligence, why an assistant like ChatGPT does not do this work on its own, where it is used, what data it requires, how to evaluate a forecast and which risks come with its use.

What is predictive analytics, with an example from a company's routine?

Predictive analytics is the stage of data analysis that estimates what is likely to happen, based on patterns found in what has already happened. It is usually explained alongside three other types of analysis, each tied to a different question.

Type of analysisQuestion it answersExample at a building materials distributor
DescriptiveWhat happened?1,200 bags of mortar were sold in October
DiagnosticWhy did it happen?Sales fell in September because two large construction projects were postponed
PredictiveWhat is likely to happen?Between 1,050 and 1,300 bags should sell in November
PrescriptiveWhat should we do about it?Buy 1,150 bags and keep 150 as safety stock

The distributor example is hypothetical. Many companies decide their purchase orders with a simple rule, such as repeating the average of the last four weeks. Predictive analytics tries to beat that rule by combining more information, such as seasonality, price, promotions and supplier lead time. The result is a probable range, not an exact number. The decision about how much to buy stays with the person in charge, who weighs the cost of running out against the cost of having too much.

Two terms come up in almost every conversation on the subject. A variable is each piece of information used to predict, such as price or day of the week. The horizon is the time between the moment of the forecast and the predicted event, such as four weeks or the next due date.

What does predictive analytics have to do with artificial intelligence?

Predictive analytics is related to artificial intelligence because predicting from examples is one of the central tasks of machine learning, the branch of AI in which an algorithm fits a model to data instead of following rules written by a person. The OECD definition of an AI system, adopted by IBGE in its Biannual Innovation Survey, describes a system that, for objectives defined by people, can "make predictions, recommendations or decisions influencing real or virtual environments" (translated from IBGE's Portuguese quotation).

Predictive analytics is older than today's AI. For decades it was done with classical statistics, in spreadsheets and statistical software. Machine learning expanded what can be used: more variables, relationships that do not follow a straight line and larger volumes of data. When a vendor talks about "predictive AI", it usually means this set of techniques applied to business forecasts.

The most common techniques are:

  • Regression, which estimates a numerical value, such as next week's demand.
  • Classification, which estimates the probability of a yes-or-no event, such as a late payment.
  • Time series, which project an indicator taking trend and seasonality into account.
  • Decision trees, which split cases by ranges of values and work well with tables from the management system.
  • Artificial neural networks, useful with large amounts of data or continuous sensor readings.

In a learned model, the criterion behind the forecast comes from the training data, not from a rule anyone can read. The article on what an algorithm is and what it has to do with AI details this difference and what it changes when you check the result.

What is the difference between predictive analytics and generative AI?

The difference between predictive analytics and generative AI lies in what each delivers: predictive analytics returns a number or a probability about a specific company event, while generative AI produces text, images, audio or code from a request. Both use machine learning, and a language model also "predicts" the most likely next word. But a generative assistant was not trained on your company's sales or payment history.

CriterionPredictive analyticsGenerative AI (ChatGPT, Gemini, Copilot, Claude)
What it deliversEstimated value or probability, with a margin of errorText, image, code or summary
What data it is trained onThe company's own history of the predicted eventLarge volumes of text and other public or licensed content
How it is evaluatedBy comparing forecasts with what happened, in numbersBy checking whether the answer is correct, complete and supported
Typical errorErring more when conditions change or for an underrepresented groupStating something false that looks correct

Asking a generative assistant "what will my demand be in December?" after pasting a sales table produces an answer that looks like a forecast, but without a tested method or a measure of error. The guide on LLMs explains why these models can answer in a plausible but wrong way. A generative assistant can help write the code for a predictive model, explain a forecast in plain language to the person deciding, or draft the collection message for the customers the model flagged. The forecast itself comes from the model trained and tested on the company's data.

Commenting on the growth of AI use in industry, IBGE's thematic surveys manager, Flávio Peixoto, linked the increase to greater use of generative AI. Using AI, therefore, does not mean having forecasting models in operation.

Where is predictive analytics used in a company?

Predictive analytics is used in a company wherever there is a recurring decision that depends on something still unknown and there is enough history of that something. The table summarizes four frequent uses, with what is predicted, the minimum data and the decision the forecast changes.

UseWhat is predictedMinimum dataDecision it changes
Demand forecastingQuantity sold per product and periodSales by product and date, price, promotions, stockouts, calendarHow much to buy or produce and how much stock to keep
Late paymentProbability that a customer pays lateInvoice and payment history, terms, amount, length of relationship, renegotiationsWhom to call first, what credit limit to grant, what guarantee to ask for
Predictive maintenanceProbability that a machine fails within a periodFailure records with dates, maintenance orders, hours of use, sensor readingsWhen to stop the machine and which parts to keep in stock
Employee turnoverProbability that a person resigns within a periodHistory of departures, length of service, area, working hours, promotions, internal surveysWhere leaders should talk to people first, which policy to review

Each use has its own caveat. In demand, days without stock hide lost sales, and the model learns a lower demand than the real one. In late payment, the decision affects customers and involves personal data, which brings obligations under Brazil's General Data Protection Law. In maintenance, failures are rare and the model needs many months of records to have enough examples. In turnover, the forecast is about people on the team: the appropriate use is to guide collective actions, such as reviewing the working hours of an area, not to flag individuals.

What does the data show about the use of AI and data analytics in Brazilian companies?

IBGE data show that AI use grew quickly in Brazilian industry, but that big data analytics, the basis for many forecasts, is less common. According to PINTEC Semestral 2024, 41.9% of industrial companies with 100 or more employees used artificial intelligence in 2024, up from 16.9% in 2022. In the same survey, only 27.8% of those companies used big data analytics, which IBGE describes as the use of tools to collect and analyze large volumes of data in order to identify patterns and correlations.

In the survey's thematic indicators report, AI appears in 57.5% of industrial companies with 500 or more employees, in 42.5% of those with 250 to 499 and in 36.1% of those with 100 to 249. Among the companies that use AI, 87.9% use it in administration, 52.0% in production and 51.4% in logistics.

Among the industrial companies that adopted advanced digital technologies, 78.6% cited the high cost of solutions and 54.2% the lack of qualified staff as difficulties. These figures refer to advanced technologies as a whole, not only to AI. The survey covers only industry with 100 or more employees, is classified by IBGE as experimental and does not separate predictive models from generative assistants. We did not find an official Brazilian survey that specifically measures the adoption of predictive analytics.

What data does predictive analytics need?

Predictive analytics needs a history of the outcome you want to predict, with the outcome recorded case by case, and the variables that would be available at the moment the forecast is made. Before hiring or building a model, check five conditions.

  1. The outcome is recorded. To predict late payment, each invoice needs its due date and the date it was paid. To predict failure, each stoppage needs a date, machine and cause, not just "corrective maintenance" with no detail.
  2. The definition is the same throughout the period. If "defaulting customer" meant 30 days overdue until 2024 and then came to mean 15 days, the history mixes two criteria. Record the change and treat the periods separately.
  3. The history covers the business cycles. Demand with annual seasonality needs a few complete years to tell the December peak from an atypical year. For rare events, such as serious failures, the number of occurrences matters more than the number of months.
  4. Each variable would exist at the time of the forecast. If the model predicts late payment on the day the invoice is issued, it cannot use the information "customer renegotiated the debt", which only appears after the delay. This error, called data leakage between datasets when it contaminates the test, makes the model look excellent in testing and fail in use.
  5. Data from different systems can be joined. Sales in the management system and promotions in a marketing spreadsheet need the same product code and the same date.

The article on data quality for AI shows how to check completeness, duplication and consistency between systems. For personal data, such as customer and employee data, confirm the legal basis and purpose with the data protection officer before using them in a model.

How do you evaluate whether a forecast is good?

To evaluate whether a forecast is good, compare the model's errors with the errors of the rule the team already uses, over a period the model did not see during training, measuring the error in the unit that matters for the decision. An "accuracy of 95%" without that comparison does not tell you whether it is worth replacing the current method. The procedure below uses a hypothetical example: the purchasing coordinator at a distributor receives from a vendor a weekly demand forecasting model for 40 products.

What you will produce: a table that compares, week by week, the model's forecast, the forecast from the current rule and actual sales, and the decision to adopt, adjust or reject the model.

What you need at hand: weekly sales by product for the last two years, the purchasing rule used today, the record of weeks with stockouts and someone who can extract this data from the management system.

  1. Write down the decision and the horizon. The coordinator records: "the forecast is used to set the purchase order placed every Monday, with delivery in three weeks". So what matters is the error of the forecast made three weeks in advance, not the one for the following week.
  2. Define the baseline. The baseline is the forecast the team would make without the model. In the example, the current rule is the average of sales over the last four weeks. Calculate that forecast for each product and week in the test period.
  3. Set aside a test period at the end of the history. Ask the vendor to train the model only on data up to a given date and deliver forecasts for the following 26 weeks, kept as the test set. The test comes after training in time, because that is how the model will be used.
  4. Measure the error in business units. For each week and product, calculate the difference between the forecast and actual sales, in units and as a percentage of sales. Add up separately the forecasts above sales (stock left over) and below (risk of running out), because the two errors cost differently. Remove or flag the weeks with stockouts, when actual sales were limited by stock.
  5. Compare with the baseline, by product group. In the example, the model's average error is 12% of sales, and the four-week average's is 18%. Broken down by group, the model does better on fast-moving products and worse on new launches, which have little history. The coordinator decides to use the model for products with more than a year of sales and keep the current rule for launches.
  6. Run in parallel before switching. For eight weeks, the team keeps buying by the current rule and records the model's forecast alongside. If the model keeps its advantage with new data, it starts guiding the order; if not, go back to step 3 with the vendor.
  7. Schedule monitoring. Decide who checks the error every month and what level of error triggers a review. Changes in the market, in the product range or in suppliers alter the patterns, a phenomenon called model drift.
Product group (hypothetical example)Model's average errorCurrent rule's average errorDecision
Fast-moving, more than a year of sales10%17%Use the model
Slow-moving, more than a year of sales16%19%Use the model with review by the buyer
New launches, less than a year31%26%Keep the current rule

When the forecast is yes-or-no, such as late payment, the logic is the same. Fix the list the team can handle, for example the 50 customers the collections team can call each week, and ask two questions about the test period: of the 50 flagged by the model, how many actually paid late; and, of all those who paid late, how many were among the 50. Compare with the list the team would build using the current rule, such as "customers who paid late in the last quarter".

Completion test: another person in the area should be able to open the table and say, without help, in which groups the model errs less than the current rule, how much it errs in units and when the next check is. The article on quantitative research with AI covers how to check calculations and samples produced with AI support.

What are the risks of predictive analytics?

The risks of predictive analytics come from treating the estimate as a certainty, testing the model in a way that makes it look better than it is and applying forecasts to people without care:

  • Results inflated in testing. Leakage of future information or testing on the same data used for training produce figures that are not repeated in use.
  • Conditions that changed. A model trained before a price change, a crisis or the arrival of a competitor keeps forecasting the old world until it is retrained.
  • Bias against groups. If the history records unequal past decisions, the model repeats them. The glossary entry on algorithmic bias explains how this pattern enters a model.
  • Automated decisions about people. Credit scores, resignation-risk scores or candidate scores use personal data and can be challenged. The article on algorithms summarizes what article 20 of Brazil's General Data Protection Law guarantees to people affected.
  • Overreliance on the forecast. Automation bias leads people to accept a recommendation without examining it. Showing the error range and keeping a person accountable for the decision reduces this risk.
  • Cost without a decision. A dashboard of forecasts that nobody uses in the purchase order or the collections queue costs money without changing the outcome.

How does The Company Brain help decide where predictive analytics makes sense?

The Company Brain helps decide where predictive analytics makes sense starting from the decisions teams make: we talk with the teams and map which recurring decisions depend on an estimate, which rule is used today, where the data is and who is accountable for the result. For each opportunity, we compare the effort of gathering data and building the model with the expected impact. This survey is part of our organizational AI assessment. When a forecast is justified, we build with the area the tool that delivers the estimate where the decision happens, as part of our AI solutions.

If your area decides on purchasing, collections, maintenance or retention actions using spreadsheet rules, or has received a "predictive AI" proposal and does not know how to evaluate it, bring the decision, the rule you use today and an idea of where the data is. We can talk about how to test a forecast against the current method before investing. Schedule a conversation.

Common questions

What is predictive analytics?

Predictive analytics is the use of historical data and statistical or machine learning models to estimate the probability of an event or the value of an indicator in the future. In a company, it answers questions such as how many units of a product will sell in the coming weeks or which customers are most likely to pay late. The result is an estimate with a margin of error, and it is only worth something if it changes a decision.

What does predictive analytics have to do with artificial intelligence?

Predictive analytics is related to artificial intelligence because predicting from examples is one of the central tasks of machine learning, the branch of AI in which an algorithm fits a model to data. The OECD definition of an AI system, adopted by IBGE, includes making predictions. Predictive analytics is older than today's AI and used to be done with classical statistics; machine learning expanded the number of variables and the volume of data that can be used.

What is the difference between predictive analytics and generative AI?

The difference between predictive analytics and generative AI lies in what each delivers: predictive analytics returns a number or a probability about a company event, while generative AI produces text, images or code from a request. An assistant such as ChatGPT was not trained on the company's sales or payment history and does not come with a tested measure of error. It can help write the code for a model or explain a forecast, but the forecast comes from the model trained on the company's data.

How many Brazilian companies use artificial intelligence and data analytics?

According to IBGE's PINTEC Semestral, 41.9% of industrial companies with 100 or more employees used artificial intelligence in 2024, up from 16.9% in 2022. Only 27.8% of those companies used big data analytics in the same year. The survey covers only larger industrial companies and does not separate predictive models from generative assistants.

How do you evaluate whether a forecast made with AI is good?

To evaluate whether a forecast is good, compare the model's errors with the errors of the rule the team already uses, over a period after the one used for training, measuring the error in the unit that matters for the decision. Break the results down by group of cases, such as fast-moving products and new launches, and run the model in parallel with the current method before switching. Then decide who checks the error every month.

What are the risks of using predictive analytics in a company?

The risks of predictive analytics include results inflated in testing by leakage of future information, forecasts that get worse when conditions change and bias against groups that are underrepresented in the history. Forecasts about people, such as credit or resignation risk, use personal data and carry obligations under Brazil's General Data Protection Law. There is also the risk of accepting a forecast without examining it and of paying for forecasts that change no decision.

Sources

  1. De 2022 a 2024, percentual de empresas industriais utilizando Inteligência artificial subiu de 16,9% para 41,9% (From 2022 to 2024, the share of industrial companies using artificial intelligence rose from 16.9% to 41.9%) IBGE, Agência de Notícias

    PINTEC Semestral 2024: AI use (41.9% in 2024, 16.9% in 2022), big data analytics (27.8%) and adoption difficulties (78.6% costs, 54.2% qualified staff). Universe: 10,167 industrial companies with 100 or more employees. Experimental statistics, in Portuguese.

  2. Pesquisa de Inovação Semestral: indicadores temáticos 2024 (Biannual Innovation Survey: thematic indicators 2024) IBGE

    AI use by company size (Chart 5) and by business area among companies that use AI (Chart 12); OECD definition of an AI system quoted by IBGE. Industry with 100 or more employees, in Portuguese.

  3. Uso de IA mais que dobrou nas empresas industriais brasileiras (AI use more than doubled in Brazilian industrial companies) Agência Brasil, Radioagência Nacional

    Statement by IBGE's thematic surveys manager linking the growth in AI use to generative AI. The researcher's view, not a measurement. In Portuguese.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Continue reading

All resources