Skip to content

Stage 1 · From scratch · MA1

Numbers that grow

Double a number thirty times and 1 becomes about a billion.

13 lessons · 123 minGentle

About this chapter

Every model is built from a few kinds of numbers, and here you meet them with your hands. You turn dials, fit a line to dots, double a number thirty times and watch it pass a billion. Percent, the number line, a machine with a dial, squares, growth, logs, the sigmoid and the sum all get their turn. No school math is needed to start. By the end you can read one small model line by line, from the score it gives to the loss it learns from.

What you will be able to do

  1. 1

    Out of a hundred

    Turn any part of a whole into a percent, and say what a gain of a few points means.

    9 min
  2. 2

    Where numbers sit

    Place numbers on a line, measure the gap between them, and know why a computer's decimals are only close.

    9 min
  3. 3

    A machine with one dial

    Read a function as a machine, use f(x) notation, and see a model as a machine with dials.

    9 min
  4. 4

    Pictures of functions

    Plot a function as dots, read an output off a graph, and recognize a line, a bowl and an S-curve.

    9 min
  5. 5

    The straight line

    Draw any straight line with two dials, and read y = w x + b as one neuron.

    10 min
  6. 6

    Solving for the unknown

    Treat an equation as a balance, and undo a machine's steps in reverse to find its input.

    9 min
  7. 7

    Squares and roots

    Square a number, undo it with a root, and say why a model squares its misses.

    9 min
  8. 8

    Doubling

    Feel how fast doubling grows, read powers of two and scientific notation, and size a model in bytes.

    10 min
  9. 9

    Growth and decay

    Grow or shrink a number by a steady factor, and read what e and a decaying learning rate mean.

    10 min
  10. 10

    The log button

    Use a log to ask how many doublings or digits a number has, and read a chart whose axes grow by powers of ten.

    10 min
  11. 11

    Squashing to a probability

    Squeeze any score into a number between 0 and 1 with the sigmoid, and see how softmax does it for a whole list.

    10 min
  12. 12

    Adding many things

    Read the sum sign out loud, find a mean as a balance point, and average a loss over examples.

    9 min
  13. 13

    Where each idea lands

    Point at the place in one small model where each idea from this chapter is used.

    10 min

Before you start

Nothing to learn first. You can start here.

All chapters