AI ATLASAn interactive field guide
Concept 12 / First models / A fitted line

Linear regression.

A line makes predictions; residuals measure its mistakes. Move slope and intercept on a real loss surface, then watch the line and every error bar respond.

The loss landscape

The surface is mean squared error for the current house data.

01 / Loss surfaceSlope × intercept → MSE
Selected parameters glow
Each point on the surface represents one possible line. Height rises with mean squared error; the vertical scale is compressed so high-loss regions remain visible. Exact MSE is shown beside the controls.

Homes, line & residuals

Vertical bars show observed price minus predicted price. Drag the line near its center to change intercept; drag an end to change slope.

Individual errors