6-minute lecture 

Click on trdemo.mp3 to open the sound recording in a new window.

Once the sound starts, switch back to this window.

To pause or rewind the lecture, switch to the sound window.

Back to the syllabus.


This applet demonstrates the theory behind linear regression.

When the applet starts, you see a set of points generated the same way as the data for assignment 1.
The New button generates a new set of points.
The True button shows the true line that generated the points. Press again to hide the true line.
The Errs button shows or hides the random errors that generated the points. Each point is the true line, plus or minus the random error.
The LS button shows or hides the least squares line through the points.
The Res button shows orhides the residuals, the vertical differences between the points and the least squares line.
The Squ button shows or hides the squares of the residuals. The least squares line minimizes the sum of the areas of these squares.

Other HSPM J716 demos


© 2001 Samuel L. Baker
Creative Commons License
Theory behind linear regression by Samuel L. Baker is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
The author is solely responsible for this page. Its contents have not been reviewed or approved by the University of South Carolina.