Gradient
Lesson 2.4MathCode~50 min

Lines: slope & intercept

y = mx + b, felt with your hands. The simplest model in machine learning.

Module 2 · 0/9 done

The most useful shape

The simplest graph of all is a straight line, and every straight line follows the same rule:

y=m x+b\amber{y} = \green{m}\,\blue{x} + \green{b}

Two numbers control it. b\green{b} is where the line crosses the up–down axis (the intercept). m\green{m} is the slope: how much the line rises for every one step to the right. They’re green because they’re the line’s parameters — the knobs.

Fig 2.6Turn the two knobs. The little triangle shows the slope: one step right (run), m steps up (rise).