The goal of linear regression

Print this Topic

What is linear regression?

Linear regression fits this model to your data:

The slope quantifies the steepness of the line. It equals the change in Y for each unit change in X. It is expressed in the units of the Y axis divided by the units of the X axis. If the slope is positive, Y increases as X increases. If the slope is negative, Y decreases as X increases.

The Y intercept is the Y value of the line when X equals zero. It defines the elevation of the line.

Correlation vs. linear regression

Correlation and linear regression are not the same. Consider these differences:

Correlation quantifies the degree to which two variables are related. Correlation does not find a best-fit line (that is regression). You simply are computing a correlation coefficient (r) that tells you how much one variable tends to change when the other one does.
With correlation you don't have to think about cause and effect. You simply quantify how well two variables relate to each other. With regression, you do have to think about cause and effect as the regression line is determined as the best way to predict Y from X.
With correlation, it doesn't matter which of the two variables you call "X" and which you call "Y". you will get the same correlation coefficient if you swap the two. With linear regression, the decision of which variable you call "X" and which you call "Y" matters a lot, as you will get a different best-fit line if you swap the two. The line that best predicts Y from X is not the same as the line that predicts X from Y.
Correlation is almost always used when you measure both variables. It rarely is appropriate when one variable is something you experimentally manipulate. With linear regression, the X variable is often something you experimentally manipulate (time, concentration...) and the Y variable is something you measure.


Copyright (c) 2007 GraphPad Software Inc. All rights reserved.
URL: http://www.graphpad.com/help/Prism5/Prism5Help.html?reg_the_goal_of_linear_regression.htm