Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(OLS)
Ordinary Least Squares or OLS is one of the simplest Notice that the Sum of Model A is 5 + 10 5 10 = 0
(if you can call it so) methods of linear regression. The and that the Sum of Model B is 3 3 + 3 3 = 0
goal of OLS is to closely t a function with the data. Both Models sum to 0 and both are great ts! NO!!
It does so by minimizing the sum of squared errors from
the data. So to account for the signs, whenever we sum errors, we
square the terms rst.
exercise.
It is important to know that and are not the same as
and because they are based on a single sample rather
than the entire population. If you took a dierent sample,
you would get dierent values for and . Lets call
and the OLS estimators of and . One of the main
goals of econometrics is to analyze the quality of these
estimators and see under what conditions these are good
estimators and under which conditions they are not.
Once we have and , we can construct two more vari-
ables. The rst is the tted values, or estimates of y:
yi = i The second is the estimates of the error
+ x
Model B terms, which we will call the residuals:
1
2 2 THE MODEL
3.2 Images
File:Sweater_sales2.JPG Source: https://upload.wikimedia.org/wikibooks/en/8/8e/Sweater_sales2.JPG License: Public domain Contrib-
utors: ? Original artist: ?
File:Sweater_sales3.JPG Source: https://upload.wikimedia.org/wikibooks/en/2/28/Sweater_sales3.JPG License: Public domain Contrib-
utors: ? Original artist: ?