Continuous Mathematical Methods for ML
The numerical math that makes learning actually compute: linear systems, derivatives, and the stability of it all.
AI tutor is turned off for this class
Use the CS205L lectures, notes, and assignments below to keep learning.
Big Idea
The Math Underneath
Grade bands
K-2 · 3-5 · 6-8 · 9-12
AI literacy pillar
How AI works · Ethics
Lesson overview
The numerical math that makes learning actually compute: linear systems, derivatives, and the stability of it all. This module climbs from an everyday intuition to the real mechanism, then names the Stanford course it descends from.
Teacher script · ~45 min
- 0–5
Hook
On paper you write '1/3' exactly. A computer stores 0.33333… and rounds. Do millions of such steps and tiny rounding errors can snowball or cancel. This field studies how to do continuous math (calculus, linear algebra) on machines that can only approximate, without the answer falling apart.
- 5–15
Explore
Students do the activity in pairs: Solve two equations with two unknowns by elimination. Now imagine a million of them: that's why algorithm choice matters.
- 15–30
Explain
Some problems amplify errors: a hair's-width change in input swings the output wildly (ill-conditioned). Some algorithms add error of their own (unstable). Reliable numerical computing means understanding both, so your trained model doesn't silently produce garbage. This is why ML practitioners normalize data and watch for exploding gradients.
- 30–40
Connect to the summit
Show students this is the real thing professionals build: CS205L, the real thing. The numerical math that makes learning actually compute: linear systems, derivatives, and the stability of it all.
- 40–45
Check
Run the formative check below. Anyone who can explain a key term in their own words has it.
Student activity
Solve two equations with two unknowns by elimination. Now imagine a million of them: that's why algorithm choice matters.
Slides
Formative check
- 1.In your own words, what is "Floating point"? (Looking for: How computers store real numbers approximately, introducing tiny rounding errors.)
- 2.In your own words, what is "Conditioning"? (Looking for: How much a problem amplifies small input errors into large output errors.)
- 3.In your own words, what is "Numerical stability"? (Looking for: Whether an algorithm keeps its own rounding errors from blowing up.)
Carry-away concepts
- Floating point
- How computers store real numbers approximately, introducing tiny rounding errors.
- Conditioning
- How much a problem amplifies small input errors into large output errors.
- Numerical stability
- Whether an algorithm keeps its own rounding errors from blowing up.
- Least squares
- Finding the best-fit answer when you have more equations than unknowns.
From the summit · the Stanford source
You study the continuous-math engine of ML: numerical linear algebra, optimization, conditioning, and why algorithms break on real hardware.
This module descends from CS205L at Stanford. Students who climb the full ladder arrive here.
