Every program you’ve written this year followed rules you wrote and could explain. Machine learning flips that: you give it examples, and it works out the rules itself — rules nobody wrote down.
This unit goes beyond the AP exam on purpose, because you live with AI every day. Every page marks what’s AP-TESTABLE and what’s CONTEXT — NOT ON THE AP EXAM. Trust the labels: exam-tagged questions only test the green material.
No reading — this page is the reading. Bring one of your Unit 3 programs to mind: every if in it is a rule you wrote.
Impact lights up — the last region. It loops back to People, where the map began on Day 1.
if.
| Traditional programming | Machine learning | |
|---|---|---|
| You give it | rules (your code) | examples (labeled data) |
| It gives back | answers | rules it worked out itself (a model) |
| Can someone explain the rules? | yes — the programmer wrote them | often not — they came from data |
CONTEXT — NOT ON THE AP EXAM
Training data is the set of labeled examples. Training produces a model — the learned rules. Using the model on something new gives a prediction.
AP-TESTABLE
CONTEXT — NOT ON THE AP EXAM
A tiny learner sorts animals into cat or dog using one feature: weight. It averages each group’s weights and puts its rule halfway between. Add examples and watch the rule move — you never write it.
Add the chihuahua and watch the dog average drop and the dividing line move with it. Now add the big cat. Nobody edited the rule — the model learned exactly what its examples taught it, and that’s tomorrow’s whole lesson.
Five questions. Look at each tag: BI5 items are exam-style; context items aren’t on the exam.
If a teacher’s rule decided your grade, you could ask for the rule. If a model decided it, the honest answer might be “the training data led it there.” Many people argue that decisions about people — jobs, loans, school placement — should come with an explanation a person can check. Should they?
if you wrote was a rule you could explain. Machine learning’s rules come from data instead.