how wrong: very
A plain-language guide

How machines learn:
they walk downhill.

No equations. Just a hiker, some fog, and the one simple habit that powers nearly all of modern AI.

Start the descent
The whole idea

Learning is just getting less wrong — a little at a time.

Picture yourself on a mountain in thick fog. You can't see the valley, but you want to get there. So you feel the ground under your feet, notice which way slopes down, and take a small step that way. Then you do it again. And again.

That's it. That's the trick a computer uses to learn. The "mountain" is a made-up landscape where height means how wrong the computer's guess is. High up = very wrong. Down in the valley = just about right. Learning is simply the walk down.

Try it · the hill

You can't see the map. You can only feel the slope.

Here's that foggy hill, drawn as a single curve. Drop a ball anywhere and watch it do the only thing it knows how to do: feel which way is downhill, step that way, repeat — until it settles in the valley.

Tap anywhere to drop a ball ↯

Notice it never looks at the whole hill — it only ever checks the tilt right where it's standing. Tiny local decisions, repeated, carry it all the way down.

Try it · the step size

How big should each step be?

This is the one dial that matters most. Take baby steps and you'll crawl down forever. Take giant leaps and you'll jump clean over the valley and bounce around — or fly off the mountain entirely. Slide it and press go.

Step size: just right
tiny stepsgiant leaps
Just right — a smooth, steady walk into the valley.

The pros have a fancy name for this dial — the learning rate — but it's exactly what you're feeling here: how bold each step is.

Try it · what "downhill" really means

So what is the computer being wrong about?

Let's make it real. Here are some dots, and the computer's job is to draw the one straight line that passes as close to all of them as it can. "How wrong" is just how far the line misses. Watch it walk downhill — nudging the line, over and over, to miss by less.

Tap to add your own dots
How wrong:

Every wiggle of the line is one downhill step. The bar shrinking is the ball rolling toward the valley — same idea, just dressed up as a line and some dots.

The whole recipe

Everything you just saw, in one sentence.

your next guess  =  your current guess  −  one small step  in the  downhill direction

That really is the whole thing. A giant AI just does this same step millions of times, not on one ball but on millions of little dials at once.

If you've ever seen the scary-looking version — θ ← θ − η∇L — relax: it's this exact sentence wearing a math costume. θ is the guess, η is the step size, and ∇L is just the arrow pointing uphill (so we step the other way).
Where you've already met it

This quiet little walk runs an astonishing amount of the world.

Whenever something feels like it "learned" from examples, there's a good chance it found its answer by walking downhill on a landscape of its own mistakes:

📷

Your photos app

Learning to spot faces is millions of tiny downhill steps that slowly reduce how often it guesses wrong.

✉️

Spam filters

The line between "spam" and "not spam" is nudged downhill until it misclassifies as few emails as possible.

💬

Chatbots

A model like this one learned to predict the next word by stepping downhill on how surprised it was by real text.

🎬

Recommendations

"Because you watched…" is tuned by walking downhill on how badly its past guesses matched what you actually picked.

It's not literally every AI method — a few clever ones find their answer other ways. But the downhill walk is the engine humming under nearly all of today's machine learning, from the simplest line-fitter to the largest chatbot.

Carry this with you

The entire idea, in three moves.

1

Feel the slope

Check which way the ground tilts, right where you're standing.

2

Take a small step

Move a little way downhill — not too timid, not too wild.

3

Repeat

Do it again and again until you settle in the valley.