| |||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||
|
Ordinary Least Square Method For those of you who love mathematics and would like to know from how the linear regression formula was derived, in this section of tutorial you will learn a powerful method called Ordinary Least Square (OLS). I assume that you know calculus to perform the OLS method. Knowing this method is important that you may learn to derive many regression formulas by yourselves.
Let us start with notation.
To perform ordinary least square method, you do the following steps:
For example: Find for model parameter for model estimation Answer:
The model only has two parameters, that is We take partial derivative of the sum of square difference to the first parameter and equate it to zero
Equate it with zero we have
Actually, the two parameters,
We know that
Now, we take partial derivative of the sum of square difference to the second parameter and equate it to zero
Equate it with zero we have
Actually, the two parameters,
We know that
Inputting equation (1) into equation (2), we have
Thus, the parameters of regression model Notice that
Find for model parameter for model estimation Answer:
The model only has one parameter We take derivative and equate it to zero
Thus, the parameters of regression model
You may compare that the slope of the two models
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 |
||||||||||||||||