O&O ConsultingBook a free call

Home / Insights / AI Foundations

What Is Machine Learning? Supervised, Unsupervised and Reinforcement Learning

The three main ways computers learn from data, what each needs, and why generalisation is the real test.

O&O Consulting · · 2 min read

Source code on a screen

A traditional program is a set of instructions. A machine learning system is a model whose behaviour is set by data. Tom Mitchell's widely used definition says a program learns from experience if its performance on a task, by some measure, improves with that experience.

Three families

  • Supervised learning uses examples paired with correct answers: past loans labelled repaid or defaulted, images labelled by content. The model learns to predict the label.
  • Unsupervised learning finds structure without labels, such as grouping customers with similar behaviour or compressing data into fewer dimensions.
  • Reinforcement learning lets an agent act in an environment and learn from rewards, as in game playing or control.

Many modern language systems combine these with self-supervised learning, where the data supplies its own labels, for example by hiding the next word and asking the model to predict it.

The basic machine learning workflowIllustrative diagram, not data
Collect and label dataSplit into training and test setsFit a model to the training setMeasure error on unseen dataDeploy and monitor
Collect and label dataSplit into training and test setsFit a model to the training setMeasure error on unseen dataDeploy and monitor

Diagram by O&O Consulting.

Generalisation is the point

A model can score perfectly on its training data by memorising it. This is overfitting. A model that is too simple misses real patterns, which is underfitting. Practitioners therefore hold back data the model never sees during training and judge it there.

The held-back data must resemble the situations the model will face. A forecasting model tested on a random sample of past days may look excellent while failing on the future, because the test leaked information that would not be available in real use.

Choosing a measure

Accuracy alone can mislead. If one transaction in a thousand is fraudulent, a model that never flags fraud is 99.9 per cent accurate and useless. Precision (how many flagged cases are correct) and recall (how many true cases are found) describe the trade-off, and the right balance depends on what each kind of mistake costs.

Limitations and open questions

Machine learning reproduces regularities in its data, including ones nobody wants, such as past discrimination. It also assumes that tomorrow resembles yesterday. When behaviour or conditions shift, performance decays, often without any visible failure. Prediction is also not explanation: a variable can predict an outcome without causing it.

References

  • Mitchell, T. M. (1997). Machine Learning. McGraw-Hill.
  • Hastie, T., Tibshirani, R. and Friedman, J. (2009). The Elements of Statistical Learning. Springer. doi.org/10.1007/978-0-387-84858-7
  • Domingos, P. (2012). "A few useful things to know about machine learning." Communications of the ACM. doi.org/10.1145/2347736.2347755

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.