In this lesson: Define AI in one sentence and tell the difference between a rule-based program and a learned one.
Artificial intelligence is software that improves at a task by being shown examples, instead of being told every rule. That single sentence covers everything from a spam filter to the chatbot on your phone. Everything else is detail.
To see why this matters, imagine you must write a program that separates spam from real email.
The old way: you write the rules
You sit down and think hard:
if the subject contains "FREE MONEY": spam
if the sender is not in the address book: spam
if the message has more than 5 exclamation marks: spam
This is rule-based programming. It works, briefly. Then a spammer writes "FR33 M0NEY" and your rule misses it. You add another rule. They change again. You are now in a race you lose every week, forever.
The new way: the machine finds the rules
Instead you collect 100,000 emails that humans already labelled "spam" or "not spam". You hand the pile to a program and say: find whatever pattern separates these two groups. The program works out its own rules — thousands of them, weighted, many of which no human would have thought to write. When spammers change tactics, you feed in newer examples and the rules update themselves.
That is machine learning, and machine learning is the engine inside almost everything called "AI" today.
Three words people use loosely
| Term | What it means |
|---|---|
| Artificial intelligence | The whole field. Any machine doing something that looks like thinking. |
| Machine learning | The main technique: learn the rules from examples. A part of AI. |
| Deep learning | Machine learning using neural networks with many layers. A part of machine learning. |
They nest inside each other like boxes. When a news article says "AI", it almost always means deep learning.
What AI is not
It is not a mind. It has no beliefs, no intentions and no understanding in the way you have them. A model that writes a beautiful paragraph about grief has never grieved. Keeping this clear in your head is not pedantry — it is what stops you trusting output that deserves checking.
Try it yourself
Write down three tasks you do that follow strict rules ("if the student scores below 50, they resit"), and three that you do by pattern and experience ("this student seems to be struggling"). The first list is ordinary programming. The second list is where AI belongs. You will use this instinct for the rest of the track.