# Regression

• Jan 8th 2010, 08:09 AM
NathanBUK
Regression
Hi, I was just wondering how do you draw the least sqaures of regression line onto your scatter diagram, it seems to come up alot but im not sure what to do. Thanks
• Jan 8th 2010, 08:18 AM
artvandalay11
Quote:

Originally Posted by NathanBUK
Hi, I was just wondering how do you draw the least sqaures of regression line onto your scatter diagram, it seems to come up alot but im not sure what to do. Thanks

if you have an equation for your regression line just plot it as you would normally graph a line

If you are just eyeballing it you want to try to put the line through the "center" of your points, so that half the data is above the line and half below, and even moreso you want to try to make the (square) of the distances of the points to the line be equal on top of and below the line
• Jan 8th 2010, 09:10 AM
NathanBUK
ohh thankyou! never though about it just like plotting normal (Giggle) thanks again (Rofl)
• Jan 8th 2010, 11:18 AM
novice
Quote:

Originally Posted by NathanBUK
Hi, I was just wondering how do you draw the least sqaures of regression line onto your scatter diagram, it seems to come up alot but im not sure what to do. Thanks

To plot scatter diagram, you simply put the dots on the x-y plane.
To plot the regression line, you must first set up the normal regression equations and solve for all constants. Then you will have a regression equation with which to plot the regression line.

See an example here:
http://www.mathhelpforum.com/math-he...-one-help.html