AI basics
What is machine learning? A plain-language guide
Machine learning means a computer finds patterns in examples instead of following hand-written rules. Here is how it works, with everyday examples and its limits.

Machine learning is a way of building software where the computer learns patterns from examples instead of following rules a programmer wrote by hand. Show it thousands of emails marked as spam or not spam, and it works out for itself which features tend to separate the two.
This guide explains what machine learning is, how it differs from ordinary programming, the main kinds you will hear about, where you already meet it every day, and what it cannot do. No maths is needed.
How is machine learning different from normal programming?
In traditional programming, a person writes the rules. A tax calculator follows exact formulas. If the income is above a threshold, apply this rate. The computer never decides anything the programmer did not spell out.
Machine learning flips this around. You give the computer examples and the answers you want, and it builds its own internal rules, called a model. For tasks like recognising a cat in a photo, nobody could write the rules by hand: there are too many angles, colours and lighting conditions. Learning from examples is the only practical route.
A useful way to remember it: ordinary code is rules in, answers out. Machine learning is examples and answers in, rules out.
What does it mean for a computer to learn?
Learning here does not mean understanding. It means adjusting a large set of numbers until the model’s guesses match the examples as closely as possible. The model makes a guess, the training process measures how wrong it was, and the numbers are nudged in the direction that reduces the error. Repeat this millions of times and the guesses get good.
Imagine predicting house prices. The model starts with random weights for size, location and number of rooms. Each time it guesses wrong, the weights shift a little. After many examples, it has learned that size matters a lot and that a fresh coat of paint matters very little.
The result is a model that generalises: it can make reasonable guesses about examples it has never seen, as long as they resemble the ones it learned from.
Ordinary code is rules in, answers out. Machine learning is examples and answers in, rules out.
What are the main types of machine learning?
Most machine learning falls into three broad families. Each one suits a different kind of problem.
Many modern systems mix these. Large language models, for example, learn mostly in a self-supervised way, predicting the next word in huge amounts of text, and are then refined with human feedback.
- Supervised learning: the examples come with correct answers (this photo is a dog, this email is spam). Used for classification and prediction.
- Unsupervised learning: no answers are given. The model looks for structure on its own, such as grouping customers with similar habits.
- Reinforcement learning: the model tries actions and gets rewards or penalties, like learning a game by playing it many times.
Where do you already use machine learning?
You probably use it dozens of times a day without noticing. Spam filters, photo apps that group pictures by face, map apps that estimate arrival times, streaming services that suggest what to watch, and banks that flag unusual card payments all rely on learned models.
Speech recognition on your phone, autocorrect, translation and the AI chat assistants that answer questions are also machine learning. So is the camera feature that brightens a dark photo or blurs the background of a portrait.
The common thread is a task with lots of past examples and no neat set of rules. Wherever that is true, machine learning tends to appear.
Why does data matter so much?
A model can only learn what is in its examples. If a photo model only saw dogs on grass, it may struggle with a dog on a sofa. If the data has gaps or skews, the model inherits them. People in the field sum this up as garbage in, garbage out.
Good training data is large, varied, accurate and representative of the situations the model will face. Much of the real work in machine learning is collecting, cleaning and labelling data, not writing clever algorithms.
This is also why a model can work well in one place and badly in another. A model trained on one hospital’s scans may stumble on scans from a different machine.
What can machine learning not do?
Machine learning finds correlations, not causes. A model may learn that people who buy umbrellas also buy wellies without knowing anything about rain. It has no common sense beyond what the data happens to contain.
Models can also be confidently wrong, especially on unusual inputs. They do not know when they are out of their depth unless they were specifically built to say so. That is why important decisions, such as medical or legal ones, should keep a human in the loop.
Finally, most models are hard to explain. You can see what goes in and what comes out, but the reasons in between are spread across millions of numbers.
Frequently asked questions
Is machine learning the same as artificial intelligence?
+
Not quite. Artificial intelligence is the broad goal of making computers do tasks that seem to need intelligence. Machine learning is the main method used to get there today. Most of what people call AI is built with machine learning.
Do I need to know maths to understand machine learning?
+
Not to understand the idea. The core concept is learning patterns from examples. Building models from scratch does use statistics, linear algebra and calculus, but many people use and evaluate machine learning tools without that background.
What is a machine learning model?
+
A model is the result of training: a file of learned numbers plus the structure that uses them. You give it an input, such as a photo, and it returns an output, such as a label. The model is what gets put into apps and services.
Does machine learning keep learning after it is released?
+
Usually not on its own. Most models are trained, frozen and then used. Companies may retrain them later with fresh data, but a typical model does not change each time you use it.
What is the difference between machine learning and deep learning?
+
Deep learning is a type of machine learning that uses neural networks with many layers. It powers image recognition, speech and language tools. Simpler machine learning methods, such as decision trees, are still widely used for smaller tabular data.
Can machine learning be biased?
+
Yes. A model learns from its data, so if the data reflects unfair patterns or leaves groups out, the model can repeat those problems. Careful data choices and testing across different groups help reduce this.
Machine learning is pattern-finding at scale. Once you see it as a system that learned from examples, its strengths and its blind spots both make sense: it is only as good as what it was shown.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Cortexpost Editorial Team
Artificial intelligence
Our writers work with AI tools every day and explain them plainly, without hype or doom.


