Cafe Cerebral - Linear Regression

Linear Regression analysis is the simplest kind of regression analysis concerned with describing and evaluating the relationship between two variables. So it is basically a bivariate analysis.

Consider a firm having data on its sales (y) and corresponding advertising expenditure (X).In linear regression analysis we try to find out the best possible straight line, called the linear regression line, through the data. This line is used as the standard curve to find new values of X from Y, or Y from X.

How linear regression works

First the bivariate data are plotted in the XY plane to get the scattered diagram.

Then the line that minimizes the sum of the squares of the vertical distances of the points from the line is found out. This is the linear regression line.

However, the values of Y for different values of X can not be determined exactly. We determine the statistical relationship between the sales (Y) and the advertising expenditure(X) of the firm in probabilistic terms. Here the vertical distances are the error and we get the following stochastic relationship.

Y= a+bX+U where a is the intercept, b is the slope and U is the error term.

r2, a measure of goodness-of-fit of linear regression

r2=1-( SSreg / SStot ) where SSreg is the sum of square of the errors and SStot is the sum of square of the vertical distances from the horizontal line depicting the mean value of Y.

The value r2 is a fraction between 0.0 and 1.0, and has no units. An r2 value of 0.0 means that knowing X does not help you predict Y. There is no linear relationship between X and Y, and the best-fit line is a horizontal line going through the mean of all Y values. When r2 equals 1.0, all points lie exactly on a straight line with no scatter. Knowing X lets you predict Y perfectly.
Contact Mu Sigma
info@mu-sigma.com
Site Map | Disclaimer | Privacy Policy
© 2005 - 2009 Mu Sigma. All rights reserved