|
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||
|
Generalizes Inverse Matrix to Solve Regression Problem This section of Regression tutorial is very useful to introduce Generalized Inverse matrix. Reading this section may give you a better preparation for further numerical analysis of curvilinear regression, multiple linear regressions and non-linear regression. You may also learn how you can compute linear regression using matrix formula as you may see in the advance statistical books. At least, after reading this section, you may be motivated to begin to read more advance statistical books. They could be very useful for your research or study. Solving the simple linear regression using matrix by itself, however, might not practical because you can use other methods in MS excel to solve linear regression easily. You may download the spreadsheet example of this tutorial here
Our model is a linear model, say
or in matrix form Suppose we name each of them as matrix
Our objective is to find
Multiplying the two side of the equation with
Now we multiply the two side of the equation with
Since multiplication of a matrix with its inverse produce identity matrix, we have
Matrix
is called (left) generalized inverse of matrix
Note that when we multiply
In addition, when we multiply
If have read the manual computation you will notice all of those elements are in the formula to compute the slope of regression line.
To do this in Microsoft excel is quite straightforward. We will use the five point data of population as in the manual computation. 1. We type matrix 2. Next we get the transpose of matrix
3. We need to obtain
4. To get the inverse matrix
5. Next, we want to get the generalized inverse matrix
6. Lastly we multiply the generalized inverse with vector
As the result we get
See also: Generalized Inverse 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 |
||||||||||||||||