What you will learn
Understand the difference between programs that follow human-written rules and models that learn patterns from examples.
In simple words
In traditional programming, a developer writes the rules the computer should follow. In machine learning, we give the system examples and expected outcomes, and it learns a pattern that can be used on new data. Both approaches are useful, and many real systems combine them.
Visual explanation: Two ways to solve a problem
On the left, people write the rules. On the right, examples are used to learn a model that can make predictions.
WATCH THE IDEA
Two ways to solve a problem
- 1Observe: Rules + data
- 2Transformation: Program / learn
- 3Outcome: Predictions
Observe: Rules + data. On the left, people write the rules. On the right, examples are used to learn a model that can make predictions.
The diagram highlights Rules + data, Program / learn, Predictions. Use the labels to trace the main relationship from left to right.
Real-world example: Fraud detection
A payments team cannot keep up with thousands of new fraud patterns using hand-written rules alone.
What the team decides: Use labelled past transactions to learn a risk score, then keep business rules for hard limits.
Risk to avoid: A learned score should not replace policy controls for blocked merchants or legal requirements.
Technical explanation
In traditional programming, a developer writes the rules the computer should follow. In machine learning, we give the system examples and expected outcomes, and it learns a pattern that can be used on new data. Both approaches are useful, and many real systems combine them.
Common misconception
This concept is not a guarantee of a correct outcome by itself. Its value depends on suitable evidence, careful implementation, and evaluation against the real task.
QUICK QUIZ
What is the main difference between traditional programming and machine learning?
Practical application
Use labelled past transactions to learn a risk score, then keep business rules for hard limits.
Key takeaway
Traditional software follows written rules; machine learning learns patterns from examples.
Next concept
Continue with How a Model Learns.
Was this lesson helpful?
Lesson discussion
Comments are reviewed before publication. Keep discussion focused on learning and do not post private information.
Loading discussion…
Your quiz answer and current lesson are saved on this device. Sign in to explore account-backed learning features.
Content version 1 · Last reviewed 2026-10-16