Least Squares LineYou are given four points and a line controlled by sliders m and b. Manipulate the sliders to minimize the sum of the squares of the residuals. Click the checkboxes to show/hide the squares and the linear regression line.
John Gresham, PhD, Created with GeoGebra |