This simulation illustrates least squares regression and how the least squares solution minimizes the sum of the squared residuals. The applet demonstrates, in a visual manner, various concepts related to least squares regression. These include residuals, sum of squares, the mean line, how the line of best fit is determined, and how the line of least squares solution minimizes the sum of the squared residuals.
StatKey is the analysis package to accompany the textbook "Statistics: Unlocking the Power of Data." StatKey includes interactive applets to describe and graph data, engage in bootstrapping and randomization tests, and explore sampling distributions and theoretical distributions.