Part I ยท Ch. 2 โ€” The Math Toolkit

Part I ยท Chapter 2 of 13

The Math Toolkit

Vectors, matrices, slopes, and chance โ€” the four tools everything uses


Five tools, then we build

Last chapter we landed one sentence: machine learning is fitting a function to data. To actually do that, a machine needs to hold data, compare two pieces of it, transform it, find its way downhill on a landscape of wrongness, and reason about what it is not sure of. That is exactly five mathematical tools โ€” and this chapter forges all five, each with one picture and one worked example you can check by hand.

Let me set expectations honestly and warmly: this is a fast, standalone toolkit, not a math course. If you have read the sister site's Part I โ€” How LLMs Actually Work โ€” you can skim, because this is the condensed version, and each tool links there for the slow build. If you have not, everything you need is right here. Here is the whole shelf at once.

A wide shelf of five outlined cards in a row. Card 1 'Vectors', a single mint arrow rising to the right with '[3, 2]' beside it, job word 'hold'. Card 2 'Dot product', two arrows (mint and amber) sharing a tail with the hint 'x + = 9', job 'compare'. Card 3 'Matrices', a two-by-two violet grid of the numbers 1, 2 over 3, 0 with a small arrow leaving it, job 'transform'. Card 4 'Derivatives', a small mint parabola with a short amber tangent and a downhill arrow, job 'go downhill'. Card 5 'Probability', three small bars in mint, amber and violet at heights 0.5, 0.3 and 0.2, job 'spread belief'.
The whole toolkit on one shelf. Vectors hold our data, the dot product compares two of them, matrices transform them, derivatives point downhill on a landscape of wrongness, and probability spreads belief instead of faking certainty. Every model in this site is these five, arranged.

Read the shelf left to right, in the order of the jobs. Vectors hold our inputs. The dot product compares two of them. Matrices transform them. Derivatives tell us which way is downhill when we are trying to be less wrong. And probability lets a model spread belief across outcomes instead of pretending to be certain. Every model in this book โ€” from a straight line to a chatbot โ€” is these five, arranged.

One promise to reduce any dread: no tool here is harder than one-digit arithmetic done a few times. We keep every example in two dimensions with small whole numbers, because the pictures stop working past three dimensions but the arithmetic never changes โ€” it only gets longer.

Tool 1 โ€” Vectors: arrows and lists

Picture it before any symbols. A vector is a list of numbers that is also an arrow. Think of a walking direction: "3 blocks east, 2 blocks north" is one instruction carrying two numbers, and it has a built-in direction and distance. Draw it as an arrow from where you stand โ€” the origin โ€” to the point 3 across and 2 up, and you have drawn a vector.

Notation, kept to the house rules: vectors are written bold and lowercase, like the vector $\mathbf{v}$, and its two numbers are its components, $v_1$ and $v_2$. Our running arrow this whole chapter is $\mathbf{v} = [3, 2]$. In every figure and interactive below it is drawn in mint, because the input we care about is always mint on this site. We will also carry a contrast arrow, $\mathbf{u} = [1, 3]$, always in amber.

There are two things you can do to a vector, and both are just "do it slot by slot." Adding two vectors adds their matching components โ€” on the page, that is walking one trip and then setting off on the second from wherever the first left you, tip-to-tail.

$$\mathbf{v} + \mathbf{u} = \begin{bmatrix} 3 \\ 2 \end{bmatrix} + \begin{bmatrix} 1 \\ 3 \end{bmatrix} = \begin{bmatrix} 3 + 1 \\ 2 + 3 \end{bmatrix} = \begin{bmatrix} 4 \\ 5 \end{bmatrix}$$

In words: line up the two lists, add the top numbers to get 4, add the bottom numbers to get 5, and the answer is the vector [4, 5] โ€” one trip that lands where the two trips end up.

Scaling is multiplying a vector by a plain single number โ€” a scalar โ€” which stretches every component at once.

$$2\mathbf{v} = \begin{bmatrix} 2 \times 3 \\ 2 \times 2 \end{bmatrix} = \begin{bmatrix} 6 \\ 4 \end{bmatrix}$$

In words: double each number, so [3, 2] becomes [6, 4] โ€” an arrow twice as long pointing exactly the same way. A positive scalar never changes the direction, which is why direction alone can carry information.

One more thing an arrow has, as opposed to something you do to it: a length. It is the property the rest of this book leans on hardest. Our arrow $\mathbf{v} = [3, 2]$ says "3 blocks east, 2 blocks north" โ€” but a bird flying from the origin to the tip does not follow the streets, it cuts the corner. How far does it fly? That is the oldest trick in geometry, the one you half-remember: the two components are the short sides of a right triangle and the arrow is the long side, so square each component, add them, and take the square root.

$$\lVert \mathbf{v} \rVert = \sqrt{3^2 + 2^2} = \sqrt{9 + 4} = \sqrt{13} \approx 3.61$$

In words: 3 squared is 9, 2 squared is 4, together they make 13, and the square root of 13 is about 3.61 โ€” the arrow reaches about 3.61 blocks as the crow flies. The double bars around $\mathbf{v}$ are how we write "the length of v."

The recipe never changes no matter how many components there are: square every slot, add them all up, take the square root. Our amber contrast arrow $\mathbf{u} = [1, 3]$ comes out at $\lVert \mathbf{u} \rVert = \sqrt{1 + 9} = \sqrt{10} \approx 3.16$ blocks, a touch shorter than the mint one. Hold on to both numbers โ€” we spend them on the next page, and the double bars turn up again every time a model cares how big something is rather than which way it points.

Two square grids side by side. On the left, a mint arrow runs from the origin to the point 3 across and 2 up; a dashed blue line runs 3 blocks along the bottom labeled '3 blocks east' and a dashed blue line runs 2 blocks up from there labeled '2 blocks north', with a small right-angle marker where they meet. The mint arrow is the long side of that triangle and carries the label 'as the crow flies'. Under the panel: the length of v equals the square root of 3 squared plus 2 squared, equals the square root of 13, about 3.61. On the right, the same construction for an amber arrow reaching 1 block east and 3 blocks north, labeled the length of u equals the square root of 1 squared plus 3 squared, equals the square root of 10, about 3.16.
The street route and the bird's route. The two components are the short sides of a right triangle; the arrow is the long side. Square each component, add them, take the square root โ€” $\lVert \mathbf{v} \rVert \approx 3.61$ blocks against $\lVert \mathbf{u} \rVert \approx 3.16$, and the amber arrow really is the shorter flight.

Now the liberating leap, in one sentence: a vector with $d$ components is an arrow in $d$-dimensional space that nobody can picture, and you never need to โ€” addition is still "add matching slots," scaling is still "multiply every slot." Real models hold each input as a vector with thousands of components; we always draw the flat 2D shadow and trust the arithmetic for the rest. Take the controls below โ€” drag the arrows and watch the numbers move. For the full, slow build, the sister site's Numbers That Point is the same idea told slowly.

Tool 2 โ€” The dot product: one number for agreement

Over and over, a model needs to ask one question: how much do these two things agree? If our inputs are arrows, that question becomes "do these two arrows point the same way?" The dot product answers it with a single number.

The recipe, in words before symbols: multiply matching components, then add. It is written with a center dot, $\mathbf{v} \cdot \mathbf{u}$, read "v dot u." On our running pair, every digit shown:

$$\mathbf{v} \cdot \mathbf{u} = \begin{bmatrix} 3 \\ 2 \end{bmatrix} \cdot \begin{bmatrix} 1 \\ 3 \end{bmatrix} = 3 \times 1 + 2 \times 3 = 9$$

In words: multiply the top numbers (3 times 1 is 3), multiply the bottom numbers (2 times 3 is 6), add those together, and get 9. A positive answer means the arrows agree โ€” they point the same general way.

Positive is only one of three verdicts. Let us test the promise on the other two.

Worked example โ€” the three verdicts

Keep the mint arrow $\mathbf{v} = [3, 2]$ fixed and swap the partner. A partner at a right angle is unrelated, not opposite:

$\mathbf{v} \cdot [2, -3] = 3 \times 2 + 2 \times (-3) = 6 - 6 = 0.$

A flip of $\mathbf{u}$ points against the family, and the sign goes negative:

$\mathbf{v} \cdot (-\mathbf{u}) = 3 \times (-1) + 2 \times (-3) = -3 - 6 = -9.$

So one machine, three answers: +9 agree, 0 unrelated, −9 oppose.

Three small square plots side by side, each with symmetric axes crossing at the origin and the same mint arrow pointing to (3, 2). Left panel: an amber arrow to (1, 3), header 'agree', value 'v ยท u = 9'. Middle panel: an amber arrow to (2, -3) with a small right-angle marker at the origin, header 'unrelated', value 'v ยท u = 0'. Right panel: an amber arrow to (-1, -3), header 'oppose', value 'v ยท u = -9'.
One number, three verdicts. The same mint arrow $\mathbf{v}$ meets three partners: pointing with it (positive, +9), at a right angle (exactly 0, unrelated), or against it (negative, −9). The dot product is the machine version of the judgment your eye just made โ€” and zero means unrelated, not opposite.

Why does "multiply matching slots and add" measure agreement? The honest intuition: each pair of matching components casts a vote. Same sign, positive vote โ€” the two arrows push the same way along that axis. Opposite signs, negative vote. Big aligned components, big votes. The dot product tallies the whole election into one number, and the sign of the total tells you who won.

One refinement, and the lengths we just measured are what make it possible. The raw dot product grows with length as well as with alignment, so to compare pure directions we divide out both arrows' lengths and get cosine similarity, a score locked between −1 and +1. We have both lengths already, so we can finish the job here: the dot product 9, divided by $3.61 \times 3.16 \approx 11.4$, is about 0.79 โ€” the two arrows point the same general way, and that is a number you worked out rather than one I handed you. The full treatment (projection, the exact geometry, why the answer is a cosine at all) is the sister site's Measuring Similarity. Notice, in prose: the general form of the recipe is just the two products added, $\mathbf{v} \cdot \mathbf{u} = v_1 u_1 + v_2 u_2$.

Tool 3 โ€” Matrices: machines that transform vectors

Picture before symbols again. A matrix is a grid of numbers that is also a machine: feed it a vector, it hands back a new vector. This is where a model's learned numbers live. Our star matrix is $\mathbf{W} = \left[\begin{smallmatrix} 1 & 2 \\ 3 & 0 \end{smallmatrix}\right]$. In the figures below it is drawn in violet, because weights and parameters are always violet on this site.

$$\mathbf{W} = \begin{bmatrix} 1 & 2 \\ 3 & 0 \end{bmatrix}$$

In words: a two-by-two grid โ€” two rows, two columns, rows named first. The four numbers are the machine's settings.

Notation, per the house rules: matrices are bold and uppercase, like the matrix $\mathbf{W}$, and we address an entry by row then column โ€” the entry in row $i$, column $j$. Real models use grids like 4096 by 4096; that changes only your patience, never the procedure.

And the procedure runs on Tool 2. Feed $\mathbf{W}$ the mint vector $\mathbf{v} = [3, 2]$. Each row of $\mathbf{W}$ takes a dot product with the input: row 1's dot product becomes output slot 1, row 2's becomes output slot 2.

$$\mathbf{W}\mathbf{v} = \begin{bmatrix} 1 & 2 \\ 3 & 0 \end{bmatrix} \begin{bmatrix} 3 \\ 2 \end{bmatrix} = \begin{bmatrix} 1 \times 3 + 2 \times 2 \\ 3 \times 3 + 0 \times 2 \end{bmatrix} = \begin{bmatrix} 7 \\ 9 \end{bmatrix}$$

In words: row 1 is [1, 2], and [1, 2] dot [3, 2] is 3 plus 4, which is 7. Row 2 is [3, 0], and [3, 0] dot [3, 2] is 9 plus 0, which is 9. Stack the answers and the output vector is [7, 9]. A matrix is just dot products in bulk โ€” one per row.

A left-to-right schematic. On the left, the matrix W as a two-by-two grid of violet numbers 1, 2 over 3, 0, with row 1 outlined in mint and row 2 in blue. A thin arrow leads to the middle, where the input vector v is a column of mint numbers 3 over 2. Another arrow leads to the right, where the output Wv is a column of amber numbers 7 over 9. Two curved arrows connect row 1 to the output 7 and row 2 to the output 9. Beneath, two lines of arithmetic, each led by a colored dot: 'row 1: 1x3 + 2x2 = 7' and 'row 2: 3x3 + 0x2 = 9'.
A matrix is dot products in bulk. Each row of $\mathbf{W}$ dots the whole input vector $\mathbf{v} = [3, 2]$ once: row 1 gives 7, row 2 gives 9, and the answers stack into the new vector [7, 9]. The four violet numbers are the machine's dials โ€” learning is nudging them.

There is a second way to read that same arithmetic, and it names the tool. Each row is a recipe. Output slot 1 is "1 part of the input's first number, 2 parts of its second"; row 2 is "3 parts of the first, none of the second." Every output number is a weighted blend of all the inputs, and the matrix entries are the blend proportions. That is why they are called weights โ€” and when a model "learns," these proportions are exactly what change.

Zoom out and the machine has a geometric face too: feed a matrix not one vector but the whole plane, and it warps the grid โ€” stretching, leaning, rotating space โ€” while straight lines stay straight and the origin stays put. Different entries, different machine. The slow build (the three faces of a matrix, rotation, the columns trick) is the sister site's Grids That Transform.

Tool 4 โ€” Derivatives: which way is downhill

Training means making a model less wrong, and in a few chapters "wrongness" will become a literal landscape we want to walk to the bottom of. To walk downhill in thick fog you need only one thing: the tilt of the ground right under your feet. That local tilt is the derivative.

First, the word slope, because everything after this hangs on it. On a straight ramp, the slope is how much you rise for every step you take forward: walk one pace to the right and go up two, and the slope is 2 โ€” rise over run, two over one. Uphill counts as positive, downhill as negative, and flat ground is slope zero. That is the whole word. The only new thing a curve adds is that the steepness changes as you walk along it.

Left: a straight mint ramp climbing from the origin. Two white dots sit on it. A dashed blue horizontal segment between them is labeled 'run: 1 pace' and a dashed amber vertical segment from the end of it up to the second dot is labeled 'rise: up 2'. Beneath the panel: slope equals rise divided by run equals 2 divided by 1 equals 2. Right, under the heading 'the sign says which way': three short line segments โ€” a mint one tilting up labeled 'uphill, slope positive', a gray flat one labeled 'flat, slope zero', and a blue one tilting down labeled 'downhill, slope negative'.
Slope is one ratio: rise over run. Step one pace right, climb two, and the ramp's slope is $2 \div 1 = 2$. The sign carries the direction โ€” positive uphill, zero on the flat, negative downhill โ€” and on a curve the only thing that changes is that the ratio is different at every spot you stand.

Picture it on the site's house curve, the parabola $f(x) = x^2$. On a curve the slope depends on where you stand โ€” gentle near the bottom, steep out on the arms. The derivative, written $\frac{df}{dx}$ and read "the derivative of f with respect to x," is that slope at a single point. For this parabola the pattern is short enough to state in one line โ€” and then, because I am not going to ask you to take it on faith, to check by hand:

$$\frac{df}{dx} = 2x$$

In words: the slope at any point is twice the position. At $x = 1$ the slope is 2, at $x = 3$ it is 6, and at $x = 0$ it is 0 โ€” and flat, slope zero, is exactly where a valley bottoms out.

Left: the mint parabola f(x) = x squared, with faint dashed guides marking the point at x = 3, height 9, where a blue dot sits. An amber straight line touches the curve at that dot, labeled 'slope 6'. A small box drawn around the dot is labeled 'this step, blown up' with an arrow. Right: that box magnified. At this magnification the curve looks almost straight. A blue dot at (3, 9) and another at (3.1, 9.61) sit on it, joined by a dashed blue horizontal leg labeled 'run 0.1' and a dashed amber vertical leg labeled 'rise 0.61'. Above them: 0.61 divided by 0.1 equals 6.1, and in muted text, shrink the run to 0.01 and it reads 6.01 โ€” homing in on 6, which is 2 times 3.
Measuring the slope instead of trusting it. Zoom in far enough on $x = 3$ and the curve is nearly a straight ramp, so the same rise-over-run works: a rise of $0.61$ over a run of $0.1$ reads $6.1$. Shrink the run and the reading tightens onto 6 โ€” exactly what $\frac{df}{dx} = 2x$ predicts at $x = 3$.

Worked example โ€” earning the $2x$

Do not take my word for that $2x$ โ€” measure it. Stand at $x = 3$, where the height is $3^2 = 9$. Take a small step forward to $3.1$, where the height is $3.1^2 = 9.61$. That is a rise of $0.61$ over a run of $0.1$, so the slope across that little step is $0.61 \div 0.1 = 6.1$.

Shrink the step and the answer sharpens. Going from 3 to $3.01$, the height climbs from 9 to $9.0601$ โ€” a rise of $0.0601$ over a run of $0.01$, a slope of $6.01$.

The measurements are homing in on exactly 6, which is $2 \times 3$. Run the same check at $x = 1$ and they home in on 2; at $x = 4$, on 8. The slope really is twice the position, and you have now watched it happen instead of taking it on faith.

A mint parabola f(x) = x squared. Blue dots sit on the curve at x = 4 (height 16), x = 2 (height 4), x = 1 (height 1) and x = 0.5, joined by small blue hopping arrows descending into the bowl, with the falling heights 16, 4 and 1 labeled beside them. A short amber tangent line touches the curve at x = 4 with the label 'slope = 8'. Near the bottom a muted note reads 'flat here: slope 0 โ€” the bottom' with an arrow pointing at the origin.
Learning is a downhill walk. On the parabola $f(x) = x^2$ the slope at $x = 4$ is 8 (steep, amber), so we step against it to $x = 2$, then $x = 1$, then $0.5$ โ€” the steps shrink on their own because the ground flattens. Where the slope hits 0, at the bottom, we have arrived.

Now turn that tilt into a walk โ€” this is the single rule behind all of training. Step opposite the slope: your new position is your old position minus a small step-size times the slope. That step-size is the learning rate, written $\eta$ โ€” the Greek letter eta.

$$x_{\text{new}} = x - \eta \, \frac{df}{dx}$$

In words: to get your next position, take the slope where you stand, shrink it by the learning rate, and subtract it โ€” the minus sign is what makes you go downhill instead of up.

Worked example โ€” one descent

Take $f(x) = x^2$, start at $x = 4$, and use a learning rate of $\eta = 0.25$ โ€” a quarter of the slope per step, chosen because it is big enough to make visible progress and small enough that a slope as steep as 8 does not throw us clean over the valley.

Slope at 4 is $2 \times 4 = 8$; step is $-0.25 \times 8 = -2$; so $x$ moves from 4 to 2.

Slope at 2 is $2 \times 2 = 4$; step is $-0.25 \times 4 = -1$; so $x$ moves from 2 to 1.

The pattern glides on: $4 \to 2 \to 1 \to 0.5 \to \dots$, sliding into the valley with the steps shrinking on their own, because the slope shrinks as the ground flattens near the bottom.

Scale it up in one sentence. A real model has not one dial but millions; stack the slope for every dial into one long vector called the gradient, written $\nabla L$ with the nabla symbol and read "the gradient of the loss" โ€” "loss" being the name we will give that landscape of wrongness next chapter โ€” and step against it component by component. Two dials or two billion, the walk is identical. The slow build (measuring a slope with shrinking secants, learning-rate pathologies, the gradient in two dimensions) is the sister site's Slopes and Descent.

Tool 5 โ€” Probability: belief spread across outcomes

A good model rarely gets to be certain. Asked "cat or dog?" about a blurry photo, the honest answer is not a guess but a spread: "80 percent cat, 20 percent dog." Probability is the language for spreading belief instead of faking certainty.

Make it concrete and countable. A bag holds 10 marbles โ€” 5 mint, 3 amber, 2 violet โ€” and you draw one without looking. The probability of drawing mint is the share of mint marbles:

$$p(\text{mint}) = \frac{5}{10} = 0.5$$

In words: five of the ten marbles are mint, so the chance of mint is five-tenths, or 0.5. The same counting gives $p(\text{amber}) = 0.3$ and $p(\text{violet}) = 0.2$.

Left panel: ten filled circles inside a thin rounded 'bag' outline โ€” five mint, then three amber, then two violet, grouped by color, with the caption '5 mint ยท 3 amber ยท 2 violet'. Right panel: a bar chart with three bars at heights 0.5, 0.3 and 0.2 colored mint, amber and violet, labeled mint, amber and violet, with a y-axis from 0 to 1 labeled 'probability p' and a note 'bars always total 1.00'.
A distribution is a portrait of belief. Ten marbles (left) become three bars (right): $p(\text{mint}) = 0.5$, $p(\text{amber}) = 0.3$, $p(\text{violet}) = 0.2$. However the belief is divided, the bars always total exactly 1 โ€” you own one unit of belief and can only split it.

There are two house rules, and it helps to frame them as a conservation law. Every probability sits between 0 and 1, and across all the outcomes they add up to exactly 1. You own one single unit of belief, and you may only divide it among the outcomes โ€” never mint more.

$$p(\text{mint}) + p(\text{amber}) + p(\text{violet}) = 0.5 + 0.3 + 0.2 = 1$$

In words: add the three shares โ€” a half plus three-tenths plus two-tenths โ€” and they land on exactly 1, one whole unit of belief accounted for.

The full list of outcomes with their shares is a probability distribution, and its natural portrait is a bar chart whose heights sum to 1. Two more ideas belong here in a sentence each, because later chapters lean on them. First, belief has strings attached: the probability of something given what you already know โ€” written with a vertical bar and read "given" โ€” can differ completely from the plain probability, and that is conditional probability. Second, a distribution can be turned into one concrete choice by sampling โ€” rolling a weighted die whose faces match the bars. The slow build (shapes of belief, conditioning, the lumpiness of small samples) is the sister site's Chance and Choice. One forward glance: Chapter 4 will hand a model a way to turn a raw score into a probability like these, and multi-class prediction will spread belief across many bars at once โ€” you have now met every ingredient it uses.

Where you'll meet this

Let me lay these five tools onto the road immediately ahead, so none of them feels like homework for its own sake. It is a single connected route.

Next chapter, Fitting a Line, holds each data point as a small vector, measures wrongness as a landscape, and uses the derivative to walk downhill to the best line โ€” Tools 1 and 4 doing the first real machine learning you will see happen. Chapter 4, Drawing Boundaries, computes a score as a dot product (Tool 2) and turns it into a probability (Tool 5) to decide "which class." Then Part II's artificial neuron is a dot product followed by a squash; deep networks are matrices (Tool 3) stacked with gentle bends between them, and the whole stack is trained by gradient descent (Tool 4). The tools do not get swapped out โ€” they get combined.

Here is the payoff, so you trust the investment: with these five, you can read the equation of almost any model in this site, because almost every model is some arrangement of "multiply by a matrix, bend, compare with a dot product, turn into a probability, and adjust by walking downhill." There is genuinely not a sixth secret tool waiting in Part III. So keep this chapter as your reference shelf: when a later equation looks scary, it is one of these five wearing more subscripts โ€” and if any tool felt too fast, the sister-site link beside it is the same idea told slowly.

What you now know

  • A vector is a list of numbers and an arrow at once; you add two by adding matching components ([3, 2] + [1, 3] = [4, 5]) and scale one by multiplying every component (2[3, 2] = [6, 4]); its length is the square root of its squared components added up, so $\lVert [3, 2] \rVert = \sqrt{13} \approx 3.61$; and a $d$-dimensional vector is just a longer list.
  • The dot product turns two vectors into one number by multiplying matching parts and adding โ€” $\mathbf{v} \cdot \mathbf{u} = 3\times1 + 2\times3 = 9$ โ€” and its sign reads agreement: positive means same direction, zero means unrelated (perpendicular), negative means opposite.
  • A matrix is a grid of numbers that acts as a machine: each row dots the input, so $\mathbf{W} = \left[\begin{smallmatrix}1&2\\3&0\end{smallmatrix}\right]$ sends $\mathbf{v} = [3, 2]$ to [7, 9], and its entries are the weights a model learns.
  • The derivative $\frac{df}{dx}$ is the slope of a curve where you stand; stepping against it with $x_{\text{new}} = x - \eta \, \frac{df}{dx}$ walks downhill, and stacking one slope per dial into the gradient makes the same walk work for millions of parameters.
  • A probability distribution spreads one unit of belief across outcomes so the bars total exactly 1, letting a model say "0.5 mint, 0.3 amber, 0.2 violet" instead of pretending to be certain.
  • Almost every model in this site is some arrangement of these five tools โ€” there is no hidden sixth.

Where we're headed. Tools in hand, we can finally do the thing Chapter 1 only promised: watch a machine learn. Next chapter we pick the simplest possible function โ€” a straight line โ€” and a tiny handful of data points that almost, but not quite, line up. We will measure exactly how wrong any given line is, a real landscape of wrongness, and then let the derivative walk us to the least-wrong line of all. No one will tell the machine the answer; it will find the best line by rolling downhill. That first descent is the moment machine learning stops being a definition and becomes something you can see happen.