Labs / Mathematics

Least Squares Fit

Every point casts a little square whose area is its squared distance from your line. Grab the two handles and tilt the line until the total shaded area is as small as it can be — that is exactly what “least squares” means. Add your own points by clicking, then hit snap to see the true best fit.

Labs / Mathematics / Least Squares Fit

Mathematics20–30 minFoundation

Least Squares Fit

Every point casts a little square whose area is its squared distance from your line. Grab the two handles and tilt the line until the total shaded area is as small as it can be — that is exactly what “least squares” means. Add your own points by clicking, then hit snap to see the true best fit.

Why it matters

Why explore this?

Mathematics helps us describe patterns precisely and predict what comes next. This model turns an abstract relationship into something you can change and observe.