Regression answers a sharper question than correlation: given x, what y should we expect? It fits the line that minimises the total squared vertical distance to the points, a criterion called least squares. The slope is the covariance of x and y divided by the variance of x; the intercept then places the line so it passes exactly through the point of averages, (x-bar, y-bar), a fixed point every honest regression line must visit. For the textbook data x of 1 to 5 with y of 2, 4, 5, 4, 5, the slope is 0.6 and the intercept 2.2, giving the line y equals 2.2 plus 0.6x, which predicts 5.8 at x equal to 6.
The slope is the working part: it says how much y changes, on average, when x rises by one unit. A slope of 0.6 means each extra unit of x comes with about 0.6 more of y, in the data's own units, which might be centimetres per kilogram or marks per hour of study. The intercept is the predicted y when x is zero, meaningful only when zero is inside or near the data's range; for adult height against weight it is an arithmetic anchor, not a person. Confusing the slope with the correlation is a standard error: the slope carries units and scale, while r is unit-free, and the same cloud stretched vertically doubles the slope while leaving r untouched.
A regression line is a prediction machine with a warranty that expires at the data's edge. Interpolating between observed x values is safe work; extrapolating beyond them assumes the world keeps behaving linearly where nobody has looked, and it often refuses, as anyone who has projected a child's growth to age 40 knows. Residuals, the vertical gaps between points and line, are the diagnostics: patterns in them, curves, funnels, lone wild points, announce that a straight line was the wrong tool. And regression never upgrades correlation into causation by itself. It describes the data's geometry beautifully; why the geometry is there remains a question for design, theory and experiments. Two warnings complete the picture. Extrapolation, predicting beyond the range of the data, assumes the line marches on unchanged into territory never observed, an assumption that fails whenever the underlying process bends, saturates or breaks. And a single influential point, far from the others, can drag the whole line toward itself; diagnostics exist to flag such leverage, and honest analysts check them before quoting a slope. Regression is the most useful tool in this entire guide collection and the easiest to abuse, which is the same statement: power and risk arrive together, and the craft lies in reporting both.