The Fast Track AI Subscribe

Home / Blog

Understanding AI

Machine learning: what it is, how it works and where it is used

In 2024, the Nobel Prize in Physics went to John Hopfield and Geoffrey Hinton for discoveries that enable machine learning with artificial neural networks. So what is machine learning? It is the branch of artificial intelligence in which a computer learns from examples instead of following rules written by hand. The more relevant data it sees, the better its predictions get. Machine learning powers spam filters, recommendations, fraud detection and assistants like ChatGPT. This guide explains what machine learning is, how it works, its three main types, everyday examples and where it falls short.

Updated on 7 min read

Machine learning at a glance

QuestionShort answer
Common abbreviationML.
Core ideaThe program works out its own rules from examples, instead of receiving them from a developer.
What it producesA model: a function that predicts, classifies or recommends on new data.
The 3 main typesSupervised, unsupervised and reinforcement learning.
ExamplesSpam filters, recommendations, fraud detection, translation, assistants like ChatGPT.
Main limitIt is only as good as its data: bias, errors and unforeseen cases end up in the model.

What is machine learning? A plain definition

A traditional program applies rules written by a person: "if the email contains this word, mark it as spam". With machine learning, you feed the program thousands of emails that are already sorted, and it finds on its own the clues that separate spam from real messages. Nobody writes the rules; the program infers them from the examples.

The standard definition comes from Tom Mitchell of Carnegie Mellon University. In The Discipline of Machine Learning (2006), he writes that a machine learns a task T, measured by a metric P, from experience E, if it reliably improves P at T after E. For a spam filter, T is sorting email, P is the share of messages sorted correctly, and E is the messages you flag as junk.

The term itself is older. In 1959, IBM researcher Arthur Samuel published "Some Studies in Machine Learning Using the Game of Checkers". His checkers program learned to play better than its author after 8 to 10 hours of play. The line often credited to him ("the ability to learn without being explicitly programmed") does not appear in that paper: it is a later paraphrase.

How machine learning works, in 4 steps

Take a concrete case: estimating the price of a home from its size, neighborhood and number of bedrooms.

  1. Gather the data: thousands of past sales, with their features and final price. This is often the longest step, because errors, gaps and duplicates must be cleaned up.
  2. Train the model: the algorithm makes a prediction, measures how far it is from the real price, then adjusts its internal settings to shrink that gap. It repeats this thousands of times.
  3. Test on data it has never seen: part of the sales is held back to check that the model generalizes. A model that memorizes its examples but fails on new cases is said to overfit.
  4. Deploy and monitor: the model now prices new homes. Because the market shifts, its accuracy must be tracked over time and the model retrained.

The output of training is called a model. It is not a list of readable rules but a set of numeric parameters: a few dozen for a simple regression, billions for an LLM.

The 3 types of machine learning

TypeHow it learnsExample
SupervisedFrom examples labeled with the right answer.Predicting a price, flagging an email as spam or not.
UnsupervisedBy finding groups or structure in unlabeled data on its own.Grouping customers with similar buying habits.
ReinforcementBy acting, receiving a reward or penalty, and adjusting its strategy.Learning to play a game, controlling a robot.

Supervised learning is the most common in business, because most problems come down to predicting a value you learn after the fact. A fourth family has grown in importance: self-supervised learning, where the labels come from the data itself. A language model trains this way by guessing the next word of a text, with no human annotation.

Machine learning vs AI vs deep learning

These terms fit inside each other like nesting dolls:

Assistants like ChatGPT sit at the end of this chain: they are chatbots built on LLMs, which are themselves a product of deep learning. Machine learning is also spreading fast in business: in the EU, 20% of companies with 10 or more employees used AI in 2025, up from 13.5% a year earlier, according to Eurostat.

Machine learning examples in everyday life

For a broader look at workplace uses, read our guide on how to use AI.

The limits of machine learning

When machine learning is not the right tool

Machine learning pays off only when three conditions are met: a repetitive task, many good-quality examples, and tolerance for some errors. If the rule fits in one sentence ("apply a 10% discount to this product"), a spreadsheet or ordinary program is simpler, cheaper and always exact. If you only have a few dozen examples, the model has nothing to learn from. And if every decision must be justified line by line, an explicit rule is easier to defend than a statistical prediction.

Frequently asked questions

What is the difference between AI and machine learning?

Artificial intelligence covers any system that performs a task we consider intelligent, including systems built on hand-written rules. Machine learning is the part of AI that learns those rules from data. Nearly all recent AI relies on machine learning, but not all AI uses it.

What are the 3 types of machine learning?

Supervised learning learns from examples where the right answer is known. Unsupervised learning finds groups in unlabeled data on its own. Reinforcement learning learns by trial and error, guided by rewards.

What is a simple example of machine learning?

Your email spam filter. It learned from millions of already sorted messages to recognize the signs of junk mail. Each time you mark a message as spam, you give it another example.

Is ChatGPT machine learning?

Yes. ChatGPT runs on a large language model trained with machine learning on vast amounts of text, then refined with human feedback. More precisely, it belongs to deep learning, the branch of machine learning that uses deep neural networks.

How do I start learning machine learning?

Start with the basics: statistics, simple linear algebra and the Python language. The free scikit-learn library then lets you try classic algorithms on small datasets. Online courses such as Google's Machine Learning Crash Course guide you step by step.

Related articles

Reference guideArtificial intelligence: what AI is, how it works and where it is used

The essentials of AI, every Wednesday.

Free, once a week, on Wednesday. A 5-minute read.