Before you can derive that line (which the parent note does), you must be fluent in the tiny alphabet of symbols it throws at you. This page defines every single one from zero — plain words first, then a picture, then why the topic can't live without it. Nothing here assumes you've seen algebra beyond "a line has a slope".
The whole subject starts with paired measurements. You measure two numbers about the same thing and write them together.
Why the topic needs this. Everything else — the line, the errors, the formulas — is built on top of these dots. If you can plot a dot at horizontal position x and height y, you already understand the raw material.
Why is xhorizontal and yvertical? Because we chose x to be the thing we know and y the thing we compute from it. Horizontal = "what I feed in", vertical = "what comes out". This convention never changes in the whole chapter.
A straight line is described by exactly two numbers. Not three, not one — two. Give me those two numbers and I can draw the whole infinite line.
Slope is a ratio. Move right by Δx (a change in x), the line rises by Δy. Then
β1=ΔxΔy=runrise.
The triangle symbol Δ ("delta") just means "the change in". If price rises $20k every time size grows by 1 unit, the slope is 20. This is exactly the "price per square foot" interpretation the parent note gives.
All cases of slope:
β1>0: line goes up to the right (bigger x → bigger y).
β1<0: line goes down to the right (bigger x → smaller y).
β1=0: flat line — y ignores x entirely. The best prediction is just a constant.
Here is the subtlety that trips everyone up. There are twoy-values at every input.
They almost never match. The gap between them is the star of the whole show:
Why vertical and not perpendicular? Because we only ever make mistakes in y — the thing we predict. The input x is given to us for free; we never guess it. So "how wrong were we?" is measured straight up and down.
Why the topic needs residuals. The "best" line is defined as the one that makes these gaps small all together. No residuals, no notion of "best". This is the seed of Ordinary Least Squares in the parent note.
The error termϵ (Greek "epsilon") in the model y=β0+β1x+ϵ is the idealised cousin of the residual: it's the built-in randomness of the real world that no straight line could ever capture (measurement noise, a thousand tiny unmeasured causes). The residual ei is what we actually see; ϵ is what we assume exists.
To score a whole line we must combine all the residuals into one number. That needs the sigma symbol.
Worked micro-example. If your residuals are e1=3, e2=−1, e3=2 then
∑i=13ei=3+(−1)+2=4.
Why the topic needs it. The loss the parent minimises is RSS=∑(yi−y^i)2. Without ∑ we could only talk about one point at a time — but a good line is a compromise across all of them.
Picture the dots' shadows on the horizontal axis; xˉ is the point where they'd perfectly balance on a see-saw. Same for yˉ vertically. Together (xˉ,yˉ) is the centre of the whole cloud — and a beautiful fact the parent derives is that the best-fit line always passes through this centre point.
Every node here is a symbol you just learned. Follow the arrows and you have reconstructed the entire logic of the parent topic — from a single dot to a fitted, scored model. This same foundation carries you forward into multiple regression, the optimisation view in gradient descent, the assumption checks, and eventually the curved cousin in logistic regression. Squaring residuals is also the seed of the overfitting story.