Simple Linear Regression Example
Simple Linear Regression Example
In this lesson, we apply regression analysis to some fictitious data, and we show how to interpret the results of our analysis. Note: Regression computations are usually handled by a software package or agraphing calculator. For this example, however, we will do the computations "manually", since the gory details have educational value.
Problem Statement
Last year, five randomly selected students took a math aptitude test before they began their statistics course. The Statistics Department has three questions. What linear regression equation best predicts statistics performance, based on math aptitude scores? If a student made an 80 on the aptitude test, what grade would we expect her to make in statistics? How well does the regression equation fit the data?
xi 95 85 80 70 60
yi 85 95 70 65 70
(xi - x) (yi - y) (xi - x)2 (yi - y)2 (xi - x)(yi - y) 17 7 2 -8 -18 8 18 -7 -12 -7 289 49 4 64 324 730 64 324 49 144 49 630 136 126 -14 96 126 470
390 385 78 77
The regression equation is a linear equation of the form: = b 0 + b1x . To conduct a regression analysis, we need to solve for b0 and b1. Computations are shown below.
b0 = y - b1 * x b0 = 77 - (0.644)(78) = 26.768
x = sqrt [ ( xi - x )2 / N ]
y = sqrt [ ( yi - y )2 / N ]
A coefficient of determination equal to 0.48 indicates that about 48% of the variation in statistics grades (the dependent variable) can be explained by the relationship to math aptitude scores (theindependent variable). This would be considered a good fit to the data, in the sense that it would substantially improve an educator's ability to predict student performance in statistics class.