Ordinary Regression and Orthogonal Regression in the Plane

Fitting a straight line to a given collection of points in the plane may be accomplished using different criteria, the most commonly used being the minimization of the sum of the squares of the vertical distances from each point to the line (ordinary regression). Another criterion is to minimize the sum of the squares of the perpendicular distances between each point and the line (orthogonal regression). Try to determine visually the lines of best fit (blue for ordinary regression, and red for orthogonal regression) by varying the respective intercepts and slopes with the sliders. For each point, the dashed blue segment joins it vertically to the blue line, while the dashed red segment connects it orthogonally to the red one. Pressing the button will yield the two lines of best fit.

(35 lines omitted)
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+