Subscribe free
AI 101: start here3 min readBeginner

How AI actually works, without the maths

AI isn’t programmed rule by rule. It learns from examples, spots patterns and makes predictions. Here’s how that works, why it improved so fast and where it slips up.

3 min read 1:17 video with captions
Video transcript

Your phone can find every photo of your dog, yet nobody ever told it what your dog looks like. So how does it know? Here’s how AI works, with no maths.

Take your spam filter. Old-style software follows rules a person writes by hand. But scammers keep changing their wording, so no list of rules could ever catch them all.

So instead, you show the computer thousands of emails, each marked spam or not spam, and let it work out the warning signs for itself. That’s machine learning.

The learning stage is called training. It guesses, checks the answer and adjusts, millions of times. What comes out is a model, which makes predictions about emails it has never seen.

Why the big leap recently? Three things came together: far more data to learn from, far more computing power, and better methods, like neural networks, loosely inspired by the brain.

But here’s the catch. AI spots patterns. It doesn’t understand the world the way you do. And it learns whatever is in its examples, so if they’re unfair, its answers can be unfair too.

That’s AI in one line: examples in, predictions out. Read the full guide below, then try asking an assistant to explain how it was trained.

In 30 seconds

  • AI learns from examples, not hand-written rules: training turns them into a model that makes predictions.
  • It improved fast thanks to far more data, far more computing power and better methods.
  • It spots patterns rather than understanding them, and it can pick up the biases in its examples.

Search your phone’s photos for “dog” and up pop pictures of your dog, even though you never labelled a single one. Nobody wrote instructions describing your dog, either. The app learnt what dogs look like from examples, and that idea sits behind almost all of today’s AI.

Rules versus learning

Ordinary software follows an that a programmer writes out in full: if an email mentions a lottery win, send it to spam. That works until the scammers change a word. You can’t write a rule for every scam email, because there are endless ways to word one.

So instead, you show the software thousands of emails, each marked “spam” or “not spam”, and let it work out the warning signs for itself. This is called , and it’s how almost all modern AI is built.

Old way: rulesAI way: examples
A programmer writes every instructionThe software learns from examples
“If it says ‘lottery’, it’s spam”It spots what scam emails have in common
Breaks when scammers change a wordCan catch new scams that look like old ones
Does exactly what it’s toldMakes its best guess, so it can be wrong

Training, models and predictions

The learning stage is called . The software looks at an example, makes a guess, checks the right answer and adjusts itself very slightly. Then it does it again, millions of times. Nobody tells it what to look for.

What comes out is a : everything it learnt, stored as a huge set of numbers. Show the model something new, such as an email that has just arrived, and it makes a prediction: probably spam.

  1. ExamplesThousands of emails, marked spam or not spam
  2. TrainingGuess, check, adjust, millions of times
  3. ModelWhat it learnt, stored as numbers
  4. PredictionA new email arrives: “probably spam”
How a spam filter learns. The same recipe sits behind photo search, voice assistants and chatbots.

Why it suddenly got so good

Machine learning isn’t new: spam filters have used it for years. What changed is that three things came together.

  • Far more data. The internet put billions of photos, posts and pages within reach, so there were examples of almost everything.
  • Far more computing power. Chips first designed for video games turned out to be ideal for training, so models could learn from far more examples.
  • Better methods. A design called a proved excellent at finding patterns, especially once it was made much bigger.

Chat assistants were built the same way, from text rather than photos: here’s what a large language model is.

Patterns, not understanding

Here’s the catch. AI is very good at spotting patterns, but it doesn’t understand the world the way you do. Your photos app can find your dog in seconds without any idea what a dog actually is.

It also learns whatever is in its examples, flaws and all. If most of the dogs it saw were Labradors, it may miss your whippet. If past hiring decisions favoured men, a system trained on them can learn to favour men too. That’s what people mean by bias in AI.

Try it yourself 2 minutes

  1. Open the photos app on your phone and search for “dog”, “beach” or “cake”.
  2. Look at what it found, and at what it missed or got wrong.
  3. The misses show where its patterns run out, such as odd angles or bad light.
Ask an assistant to explain itself

Explain how you were trained, as if I’m 12 years old. Use one everyday comparison and keep it under 150 words. Then name one thing you’re bad at, and why.

Works in any assistant, such as ChatGPT, Claude or Gemini. Treat the answer as a friendly overview rather than inside information.

So AI is a pattern-spotter, not a know-it-all. That’s why it can sound sure and still be wrong: here’s why AI makes things up, and how to catch it.

Check yourself

3 quick questions nothing is saved
1Why do spam filters learn from examples instead of following fixed rules?

2What does training produce?

3Why can an AI system end up being unfair?

Up next in AI 101: start here

Beginner3 min read

What is a large language model?

The engine inside ChatGPT, Claude and Gemini is, at heart, a very well-read autocomplete. Here’s how it works, and why that explains its quirks.

More guides

Get AI explained at your level, every weekday

The five stories that matter, in plain English, plus a new guide each week. Free.