Linear regression is the "hello world" of machine learning: predict a number from features by fitting a straight line through the data. Simple as it is, it contains the whole skeleton of supervised learning — a model, an error to minimize, and a way to improve — so it's the perfect place to start.
With one feature
Adjust the slope and intercept to fit the points, watching the total error fall. Then look at the
green query marker: once your line is good, it predicts a sensible
"Adjust until it fits" is fine by hand, but we need to make it precise and automatic. That takes
three pieces: a