Points P1 through P6 represent data points. A line is drawn through the points and from each data point to the line a square is constructed. Drag the y-intercept and slope of the line so that the sum of the areas of the squares is minimized. That line is the least squares regression line for the data. 

 

 

Sorry, this page requires a Java-compatible web browser.

 

 

 

 

 

 

 

 

 

 

 


This is a prototype of JavaSketchpad, a World-Wide-Web component of The Geometer's Sketchpad. Copyright ©1990-1998 by Key Curriculum Press, Inc. All rights reserved. Portions of this work were funded by the National Science Foundation (awards DMI 9561674 & 9623018).

Modified version of a GSP sketch by Bill Finzer, 3/95