Least Squares Criteria for the Least Squares Regression Line

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The least squares regression line is commonly used as the best fitting line to a fixed collection of points. This Demonstration provides a visualization of the squares used in determining this line. For each of three datasets, the residuals from the points to a line are shown as dashed vertical segments. The squares of the residuals are shown with a red border. You can adjust the slope and intercept of the line in an effort to find the line for which the sum of the areas of these squared residuals is least. Click the button to obtain the least squares regression line.

Contributed by: Mariel Maughan and Bruce Torrence (March 2011)
Based on a program by: Bruce Torrence
Open content licensed under CC BY-NC-SA


Snapshots


Details

detailSectionParagraph


Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send