Learning from Historical Data
Machine learning models learn from examples of the past. This lesson explains the main ways models learn, how teams check that a model generalises to new cases, and why learning from history brings both power and risk.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish supervised, unsupervised, reinforcement and self-supervised learning.
- Explain how training, validation and test sets and a baseline show whether a model generalises.
- Recognise overfitting, underfitting and data leakage from their symptoms.
- Describe the factors that determine whether historical data is sufficient.
- Explain the business limits of learning from historical data, including inherited bias.
Ways a model can learn
In supervised learning, each historical example includes the correct answer, called a label. A model that predicts loan default learns from past loans labelled "repaid" or "defaulted". Predicting a category is classification; predicting a number, such as next month's sales, is regression. Supervised learning is the most common approach in business.
Labels come from two main sources. Some are recorded by business processes, such as a churn flag in the CRM system or a confirmed fraud case. Others must be created by people, for example experts marking defects in thousands of product images, which is slow and expensive and needs consistent guidelines so that different labellers agree. Labels are also often a proxy for what the business really cares about: "received a high performance rating" stands in for "is a good employee", and the model learns the proxy, including any bias in how ratings were given.
In unsupervised learning, the data has no labels, and the model finds structure by itself, such as grouping customers into segments with similar behaviour (clustering) or flagging transactions that look unusual (anomaly detection). The results need business interpretation: the model finds the groups, but people decide what they mean and whether they are useful.
In reinforcement learning, a system learns by trial and error, receiving rewards for good outcomes and penalties for poor ones. It suits problems where a sequence of decisions leads to a result, such as dynamic pricing, robotics or optimising a delivery route.
Foundation models learn in a further way. In self-supervised learning, the labels come from the data itself: the model reads vast amounts of text and learns to predict the next word, so no person needs to label anything. This is how a foundation model acquires broad language ability. It is then refined with reinforcement learning from human feedback (RLHF), in which people rate or rank responses and the model learns to prefer helpful, accurate and safe answers. This explains why an organisation can use a generative model without supplying any training data: the learning has already happened. The following comparison summarises the four approaches.
The following diagram summarises the four ways of learning described above, each with an example.

How does it learn?
Checking that a model generalises
A model is useful only if it performs well on cases it has never seen. Teams therefore split historical data into a training set that the model learns from, a validation set used to compare versions during development, and a test set held back for a final, unbiased measurement. Testing a model on data it learned from would be like grading students on the exact questions they practised: the score would say nothing about their real ability.
When the future is what matters, the split should respect time. A demand model can be trained on data up to the end of one year and tested on the following year, which simulates how it will be used: predicting a period it has not seen. A random split would let the model learn from examples that come after the ones it is tested on, and the results would look better than they will be in practice.
Results also need a baseline, a simple point of comparison such as the current manual process, an existing rule or last year's figure for the same period. A forecasting model with 85% accuracy is impressive only if planners currently achieve less. If a simple rule performs nearly as well, the model may not justify its cost.
Two failure patterns are worth recognising. Overfitting means the model has memorised its training data, including noise, so it scores very well on training data but poorly on new data. Underfitting means the model is too simple, or its features too weak, to capture the pattern, so it performs poorly everywhere. A large gap between training and test results is the warning sign of overfitting. The following comparison summarises the symptoms.
The following diagram contrasts a split that respects time with a random split of the same four years of data.

Results that are too good to be true
Data leakage occurs when the training data contains information that would not be available at the moment the prediction is needed. The model learns to rely on that information and scores extremely well in testing, but it fails in production, where the information does not yet exist. A churn model that uses the field "cancellation reason" will appear almost perfect, because that field is only filled in after a customer has already decided to leave.
Leakage is a business question as much as a technical one, because only people who know the process can say when each piece of data becomes available. Leaders reviewing a pilot should treat near-perfect results with suspicion and ask which inputs the model relies on most and whether each would exist at the time of the decision.
Too good to be true
How much historical data is enough
There is no fixed answer, but several factors determine whether the available history is sufficient. The following points help leaders judge a team's data plan.
- Examples of the outcome of interest. What matters is often not the total number of records but the number of examples of the outcome. One million transactions with only 50 confirmed fraud cases gives the model little to learn from.
- Coverage of cycles and variation. A seasonal business needs at least one full seasonal cycle, and preferably several, so that the model sees each peak and trough. Data should also cover all the regions, products and customer groups the model will serve.
- Relevance. Older data adds volume but may describe a market, product range or customer behaviour that no longer exists. Teams balance volume against recency, sometimes giving recent data more weight.
- Complexity of the problem. Patterns that depend on many interacting factors need more examples than simple ones.
Where the organisation lacks enough history, options include starting with a pre-trained model or AI service, collecting data deliberately for a period before training, or beginning with rules and adding a model once data has accumulated.
Is the history sufficient?
The limits of learning from the past
Because models learn from history, they inherit its characteristics. The following points are the business consequences leaders most need to understand.
- Historical bias is reproduced. If past hiring decisions favoured one group, a model trained to imitate them will too, even if the protected attribute is removed, because other features, such as postcode or the name of a school, act as proxies.
- The future is assumed to resemble the past. A model trained before a market shift, a new competitor or a regulatory change may become wrong without any visible error.
- Rare events are poorly learned. If the history contains few examples of an event, such as a new type of fraud, the model has little to learn from.
- Outcomes may be shaped by past decisions. Data only shows outcomes for cases that were approved; the model never learns what would have happened to rejected applicants.
- Predictions can create feedback loops. Once a model is in use, its decisions shape the data used to retrain it. A recommendation engine that promotes popular products makes them more popular, and the next version learns to promote them even more, while new products are never given the chance to prove themselves.
These limits do not make historical data unusable, but they mean that data must be reviewed before training and results must be checked across groups after deployment. The module on responsible AI in business decisions covers fairness assessment, and the lesson on model drift and ongoing monitoring covers how to detect when the past stops being a good guide.
A promising pilot that disappoints
A recruitment team trains a model on ten years of hiring records to predict which applicants will become high performers. It scores 97% accuracy on the training data but 64% on recent applicants, and an analysis shows it rates applicants from some universities much lower. What went wrong?
The gap between 97% and 64% indicates overfitting: the model memorised its training examples instead of learning general patterns. The university effect suggests historical bias: past hiring and performance ratings favoured some backgrounds, and the model learned to imitate them. The label itself is a proxy, because performance ratings reflect managers' judgements as well as actual performance, and the data only contains applicants who were hired. Hiring is also a high-impact decision about people, so beyond technical fixes the use case needs a fairness assessment, human decision making and legal review before any further use.
A churn model that fails at launch
A telecommunications company's data science team reports that its new churn model identified 99% of departing customers in testing. After launch, it identifies almost none of them early enough for the retention team to act. The most influential input in the model is "number of calls to the retention department". What happened?
This is data leakage. Customers typically call the retention department after they have decided to leave, often to give notice. In the historical data, this field was a near perfect signal of churn, but at the time the business needs a prediction, weeks before the decision, the calls have not happened yet. The model must be retrained using only information available at the point of prediction, such as usage trends, billing changes and service faults, and tested on a later time period. Its realistic performance will be lower than 99%, but it will be useful.
A model is trained on past loan outcomes labelled "repaid" or "defaulted". Which type of learning is this, and what risk does using historical decisions create?
Show answer
Supervised learning (classification), because the data has labels. Because the labels reflect past decisions and outcomes, the model can reproduce historical bias, and it only learns from applicants who were approved.
Exam Tips
Remember for the exam
- Labelled outcomes in the data: supervised learning. No labels, find groups: unsupervised learning.
- Foundation models learn through self-supervised pre-training, refined with human feedback (RLHF).
- Excellent training results but poor results on new data: overfitting. Poor results everywhere: underfitting.
- Near-perfect test results can signal data leakage: inputs not available at prediction time.
- Judge model results against a baseline such as the current process.
- Models trained on historical decisions reproduce historical bias, including through proxy features and labels.
- When conditions change, models trained on the past must be retrained.