Lesson 1: What Machine Learning Is (and Is Not)
Every day you use machine learning without noticing it. When your email quietly moves a suspicious message into the spam folder, when a video app suggests something you actually want to watch, or when your phone unlocks by recognising your face, a machine has learned from examples rather than following a list of rules written by a programmer. That shift — from telling a computer exactly what to do, to showing it examples and letting it find the pattern — is the whole idea of machine learning.
The classic definition comes from Arthur Samuel, a computer scientist at IBM, who in 1959 described machine learning as the field of study that gives computers the ability to learn without being explicitly programmed. His own example was a program that learned to play checkers: instead of being told every good move, it played thousands of games against itself, remembered which moves led to wins, and slowly got better. The programmer did not write down the strategy. The program discovered it from experience, in the form of data.
Learning from examples, not from rules
To see why that matters, compare two ways of building a spam filter. The rule-based way is to write instructions: if an email contains the words free money, send it to spam; if it comes from a known contact, keep it. That works for a while, but spammers change their wording, and every new trick needs a new rule written by a person. The machine learning way is different. You collect thousands of emails that people have already marked as spam or not spam, and you let an algorithm study them. It notices that spam often contains certain words, odd spellings, suspicious links or strange sending times, and it builds a rule of its own — one that keeps updating as new examples arrive.
Machine learning is a part of artificial intelligence, but the two are not the same thing. Artificial intelligence is the broad goal of making machines do things that would need intelligence if a person did them, and it includes hand-written rules, search and logic as well as learning. Machine learning is one way of getting there: the part where the machine improves its performance on a task as it sees more data. So all machine learning is AI, but not all AI is machine learning, and a program that follows fixed rules, however clever, is not learning anything at all.
What machine learning cannot do
A short history of the idea
Machine learning is older than most people think. After Samuel's checkers program in 1959, progress came in waves: early excitement, then long quiet periods when the computers of the day were too slow and the datasets too small for the ideas to work well. What changed was not a single breakthrough but three slow trends arriving together — far more data, collected by the web and by sensors; far faster computers, able to train on that data; and better algorithms, refined over decades of research. That is why a field that began in the 1950s only became part of everyday life in the 2010s. The lesson for a student is encouraging: the core ideas are old enough to be well understood, and the tools to try them are now available to anyone with a computer. You do not need a supercomputer to learn machine learning; the same ideas that run the world's biggest systems can be tried on a small dataset on an ordinary laptop, and that is exactly what this course will do.
It is just as important to know what machine learning is not. It is not magic, and it is not understanding. A model that predicts which films you will like does not know what a film is, or why you laughed; it has found a statistical pattern in what people like you have watched before. It cannot learn from data that does not exist, it cannot tell you why something is right in the way a teacher can, and it will happily repeat the biases hidden in its training data. In this course you will learn how these systems work, how to build small ones yourself, and how to judge them honestly — including when not to trust them.
Key Terms
- Machine learning
- A part of artificial intelligence in which a computer improves at a task by learning patterns from data, rather than by following rules written by a person.
- Artificial intelligence (AI)
- The broad field of making machines do things that would require intelligence if a person did them, including learning, reasoning and perception.
- Algorithm
- A step-by-step procedure a computer follows. In machine learning, the algorithm is the method that learns a pattern from data.
- Model
- The finished result of training: a set of learned patterns that can make predictions or decisions about new data.
- Training data
- The examples a model learns from — for instance, emails already marked as spam or not spam.
- Rule-based system
- A program that follows fixed instructions written by a person, with no learning from data.
- Prediction
- A model's guess about new, unseen data, such as whether a new email is spam.
Discussion Questions
- Think of something you do every day that a computer helps with. Is it following fixed rules, or has it learned from examples? How can you tell?
- Arthur Samuel's checkers program learned by playing against itself. What other games or skills could a computer learn that way, and what would it need as data?
- Why might it matter that a model which predicts well does not truly understand what it is doing?
Practice Questions
- What is the difference between artificial intelligence and machine learning?
- In your own words, what did Arthur Samuel mean by learning without being explicitly programmed?
- Give one example of a rule-based system and one of a machine learning system.
- Why does a spam filter built with machine learning keep working when spammers change their tricks?
- A film-recommendation model predicts well but does not understand films. What does that mean in practice?
Show answers
- Machine learning is one part of artificial intelligence. AI is the broad goal of intelligent machines; machine learning is the approach where the machine improves by learning patterns from data.
- He meant the program improved from experience instead of from written rules. His checkers program was not given a strategy; it discovered one by playing many games and remembering what worked.
- A rule-based example is a spam filter with hand-written word lists; a machine learning example is a filter trained on labelled emails. The rule-based filter follows instructions a person wrote; the learning filter finds its own patterns in the examples.
- Because it keeps learning from new examples. As fresh labelled emails arrive, the model updates the patterns it has learned, so it can adapt without a person writing new rules.
- It means it finds statistical patterns in viewing history, not meaning. It knows that people who watched one film often watch another, but it has no idea what either film is about or why anyone enjoyed it.