# 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.

Canonical URL: https://thecompanybrain.com.br/en/articles/what-is-predictive-analytics
Authors: Luiz Gardelin
Updated: 2026-11-27T00:52:27.587Z

![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.](https://thecompanybrain.com.br/api/media/file/recurso-o-que-e-analise-preditiva.webp)

The Company Brain, site thumbnail

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](/en/glossary/artificial-intelligence), why an assistant like [ChatGPT](/en/glossary/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.

## Key points

- 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, and it is only worth something if it changes a decision, such as the size of a purchase order.
- It relates to AI because predicting from examples is a central task of machine learning, but it differs from generative AI: it delivers a number or probability with a margin of error, and an assistant such as ChatGPT does not replace a model trained on the company's history.
- The most common uses are demand forecasting, late payment, maintenance and employee turnover, and all of them require the outcome recorded case by case, stable definitions, a history covering the business cycles and variables available at the time of the forecast.
- A forecast is good when it errs less than the rule the team already uses, over a period after training, measured in the unit of the decision and broken down by group of cases, before being adopted in parallel and monitored every month.
- Among larger Brazilian industrial companies, AI use rose from 16.9% to 41.9% between 2022 and 2024, but only 27.8% used big data analytics, and the risks of leakage, changing conditions, bias and overreliance call for a person accountable for the decision.

## 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 analysis | Question it answers | Example at a building materials distributor |
| --- | --- | --- |
| Descriptive | What happened? | 1,200 bags of mortar were sold in October |
| Diagnostic | Why did it happen? | Sales fell in September because two large construction projects were postponed |
| Predictive | What is likely to happen? | Between 1,050 and 1,300 bags should sell in November |
| Prescriptive | What 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](/en/glossary/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](https://agenciadenoticias.ibge.gov.br/media/com_mediaibge/arquivos/58ab6f34051f3fa2b73b75cc6e926067.pdf), 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](/en/articles/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](/en/glossary/training-set), not from a rule anyone can read. The article on [what an algorithm is and what it has to do with AI](/en/articles/what-is-an-algorithm-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](/en/glossary/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.

| Criterion | Predictive analytics | Generative AI (ChatGPT, Gemini, Copilot, Claude) |
| --- | --- | --- |
| What it delivers | Estimated value or probability, with a margin of error | Text, image, code or summary |
| What data it is trained on | The company's own history of the predicted event | Large volumes of text and other public or licensed content |
| How it is evaluated | By comparing forecasts with what happened, in numbers | By checking whether the answer is correct, complete and supported |
| Typical error | Erring more when conditions change or for an underrepresented group | Stating 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](/en/guides/what-is-an-llm) 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](https://agenciabrasil.ebc.com.br/radioagencia-nacional/inovacao/audio/2025-09/uso-de-ia-mais-que-dobrou-nas-empresas-industriais-brasileiras). 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.

| Use | What is predicted | Minimum data | Decision it changes |
| --- | --- | --- | --- |
| Demand forecasting | Quantity sold per product and period | Sales by product and date, price, promotions, stockouts, calendar | How much to buy or produce and how much stock to keep |
| Late payment | Probability that a customer pays late | Invoice and payment history, terms, amount, length of relationship, renegotiations | Whom to call first, what credit limit to grant, what guarantee to ask for |
| Predictive maintenance | Probability that a machine fails within a period | Failure records with dates, maintenance orders, hours of use, sensor readings | When to stop the machine and which parts to keep in stock |
| Employee turnover | Probability that a person resigns within a period | History of departures, length of service, area, working hours, promotions, internal surveys | Where 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](/en/glossary/personal-data), which brings obligations under [Brazil's General Data Protection Law](/en/glossary/lgpd). 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](https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/44551-de-2022-a-2024-percentual-de-empresas-industriais-utilizando-inteligencia-artificial-subiu-de-16-9-para-41-9), 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](https://agenciadenoticias.ibge.gov.br/media/com_mediaibge/arquivos/58ab6f34051f3fa2b73b75cc6e926067.pdf), 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](https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/44551-de-2022-a-2024-percentual-de-empresas-industriais-utilizando-inteligencia-artificial-subiu-de-16-9-para-41-9) 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](/en/glossary/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](/en/articles/data-quality-ai-company) 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](/en/glossary/model-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](/en/glossary/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](/en/glossary/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](/en/glossary/model-drift).

| Product group (hypothetical example) | Model's average error | Current rule's average error | Decision |
| --- | --- | --- | --- |
| Fast-moving, more than a year of sales | 10% | 17% | Use the model |
| Slow-moving, more than a year of sales | 16% | 19% | Use the model with review by the buyer |
| New launches, less than a year | 31% | 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](/en/articles/quantitative-research-ai-company) 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](/en/glossary/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](/en/articles/what-is-an-algorithm-ai) summarizes what article 20 of Brazil's General Data Protection Law guarantees to people affected.
- **Overreliance on the forecast.** [Automation bias](/en/glossary/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](/en/services/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](/en/services/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](https://thecompanybrain.com.br/en/contact).

## Sources

- [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%)](https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/44551-de-2022-a-2024-percentual-de-empresas-industriais-utilizando-inteligencia-artificial-subiu-de-16-9-para-41-9): 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.
- [Pesquisa de Inovação Semestral: indicadores temáticos 2024 (Biannual Innovation Survey: thematic indicators 2024)](https://agenciadenoticias.ibge.gov.br/media/com_mediaibge/arquivos/58ab6f34051f3fa2b73b75cc6e926067.pdf): 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.
- [Uso de IA mais que dobrou nas empresas industriais brasileiras (AI use more than doubled in Brazilian industrial companies)](https://agenciabrasil.ebc.com.br/radioagencia-nacional/inovacao/audio/2025-09/uso-de-ia-mais-que-dobrou-nas-empresas-industriais-brasileiras): 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.

## Related reading

- [What is an algorithm and what does it have to do with the AI your company uses?](/en/articles/what-is-an-algorithm-ai)
- [What is an LLM: how large language models work and where companies use them](/en/guides/what-is-an-llm)
- [How do you assess data quality for AI in your company?](/en/articles/data-quality-ai-company)
- [How can AI help your company run quantitative research?](/en/articles/quantitative-research-ai-company)
- [What are artificial neural networks and how did they give rise to AI?](/en/articles/artificial-neural-networks)
- [Organizational AI assessment | The Company Brain](/en/services/organizational-ai-assessment)
