Before you can read the parent note Linear Regression fluently, you must own every symbol it throws at you. This page builds each one from nothing, in an order where each block rests on the one before it. Read top to bottom.
Picture a scatter of dots. Each dot sits at a horizontal position xi and a height yi.
xi → how far right the dot is (the thing you know, e.g. altitude).
yi → how far up the dot is (the thing you want to predict, e.g. fuel burn).
n → the count of dots. If i runs 1,2,3 then n=3.
Why the topic needs it. Regression's whole job is to summarise all these dots with one rule. Without a symbol for "dot number i" we couldn't talk about "all the dots at once."
Read this line
x5 is the input of the fifth data point; the subscript is a label, not exponent.
Why two knobs and not one? With only w the line would be forced through the origin (0,0); real data rarely passes through zero, so b lets the line slide up or down freely.
The n1 makes it a mean (average), so the score doesn't blow up just because you have more data.
The extra 21 is a convenience: when we differentiate, the square brings down a factor of 2, and the 21 cancels it so formulas stay clean. It never changes where the minimum is.
When there are many inputs and many points, writing sums by hand is unbearable. We pack numbers into grids.
xi → all the inputs of point i stacked in a column.
X∈Rn×d → the design matrix: n rows (one per point), d columns (one per input feature). The symbol Rn×d just says "a grid of real numbers with n rows and d columns."
Why the minus sign in gradient descent? The gradient points uphill (toward more cost). We want less cost, so we step the opposite way: −∇J. That is the entire logic of wt+1=wt−α∇J.
α = learning rate: how big a step to take. Too big → overshoot the valley and bounce; too small → crawl. See Feature Scaling for why unequal input sizes force α to be tiny.
The subscript t = iteration number (w0,w1,…), a time step, not a power.
ϵ (epsilon) = a tiny threshold; "stop when the change is smaller than ϵ."