12.10 Conclusion - Simple Linear Regression
A lurking variable is a variable other than the independent or dependent variables that may influence the regression line. For instance, the highly correlated ice cream sales and home burglary rates probably have to do with the season. Hence, linear regression does not imply cause and effect.
Two variables are confounded when their effects on the dependent variable cannot be distinguished from each other. For instance, if we are looking at diet predicting weight, a confounding variable would be age. As a person gets older, they can gain more weight with fewer calories compared to when they were younger. Another example would be predicting someone’s midterm score from hours studied for the exam. Some confounding variables would be GPA, IQ score, and teacher’s difficultly level.
Assumptions for Linear Regression
There are assumptions that need to be met when running simple linear regression. If these assumptions are not met, then one should use more advanced regression techniques.
The assumptions for simple linear regression are:
- The data need to follow a linear pattern.
- The observations of the dependent variable y are independent of one another.
- Residuals are approximately normally distributed.
- The variance of the residuals is constant.
Most software packages will plot the residuals for each on the -axis against either the -variable or along the -axis. This plot is called a residual plot. Residual plots help determine some of these assumptions.
Putting It All Together
Summary
A simple linear regression should only be performed if you observe visually that there is a linear pattern in the scatterplot and that there is a statistically significant correlation between the independent and dependent variables. Use technology to find the numeric values for the -intercept = and slope = , then make sure to use the correct notation when substituting your numbers back in the regression equation . Another measure of how well the line fits the data is called the coefficient of determination . When is close to 1 (or 100%), then the line fits the data very closely. The advantage over using over is that we can use for nonlinear regression, whereas is only for linear regression.
One should always check the assumptions for regression before using the regression equation for prediction. Make sure that the residual plots have a completely random horizontal band around zero. There should be no patterns in the residual plots such as a sideways V that may indicate a non-constant variance. A pattern like a slanted line, a U, or an upside-down U shape would suggest a non-linear model. Check that the residuals are normally distributed; this is not the same as the population being normally distributed. Check to make sure that there are no outliers. Be careful with lurking and confounding variables.
Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.