What Is Machine Learning? A Beginner's Guide
How computers learn from data, the main types of machine learning, and where you meet it every day.

In brief: Machine learning (ML) is a field of artificial intelligence in which computer systems learn to perform tasks by finding patterns in data, rather than being explicitly programmed with rules. It powers spam filters, recommendations, translation, fraud detection, medical image analysis and the large language models behind chatbots.
Rules versus learning
A traditional program follows rules a programmer writes, such as "if an email contains these words, mark it as spam". A machine learning system is shown thousands of examples of spam and normal emails, and learns for itself which features tend to indicate spam. This works better for problems where the rules are too complex to write down.
The main types
- Supervised learning: The model learns from labelled examples, such as photos tagged "cat" or "dog", and then predicts labels for new data.
- Unsupervised learning: The model finds structure in unlabelled data, such as grouping customers with similar buying habits.
- Reinforcement learning: The model learns by trial and error, receiving rewards for good actions, as in systems that learned to play games such as Go.
Deep learning
Deep learning uses neural networks with many layers. Since about 2012, more data, faster processors and better techniques have made deep learning dramatically more capable at recognising images and speech and at generating text and pictures. See our explainer on AI agents.
Limits and risks
Models are only as good as their data. If training data reflects historical bias, for example in hiring or lending, models can reproduce it. Many models are hard to explain, which matters in areas such as health and justice. Machine learning finds correlations, not necessarily causes, and can fail in situations unlike its training data.
Getting started
Learning ML usually starts with programming in Python, basic statistics and linear algebra. Many universities offer free online courses.
Frequently Asked Questions
What is the difference between AI and machine learning?
Artificial intelligence is the broad goal of making machines perform tasks that require intelligence. Machine learning is one approach, in which systems learn from data.
What is a neural network?
A machine learning model loosely inspired by the brain, made of layers of connected units that adjust their connections during training.



