| |||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||
|
Spreadsheet Example of Linear Regression Suppose we have the following 5 data points and we want to predict the population data for the year 2005 using linear regression model. In this section, we will use hand calculation or spreadsheet using linear regression formula. You may download the spreadsheet example of this tutorial here.
The formula for linear regression is given below
To use that formula, we make a table consists of four columns. The fist two columns are the data Year as
We sum all the five rows and for the first two columns, we calculate the average of year as
Thus, we get the regression line
Using this regression line, we can predict the number of population in the city for year 2005. By inputting 2005 to the year we get population = 5.48 (x hundred thousand persons).
The R-squared value can be computed as Send your comments, questions and suggestions
Preferable reference for this tutorial is Teknomo, Kardi. Regression Model using Microsoft Excel. http:\\people.revoledu.com\kardi\ tutorial\Regression\
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
© 2006 Kardi Teknomo. All Rights Reserved. Designed by CNV Media |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||