f(x,y) = -4x2 + 2x4 - x6/3 - xy + 4y2 - 4y4
YEAR | = 1947 to 1962 |
PGNP | = GNP deflator, 1954=100 |
GNP | = Gross national product, millions of dollars |
UEM | = Unemployed, thousands |
AF | = Armed Forces, thousands |
POP | = Population, thousands |
EM | = Employed Persons, thousands |
Consider the linear equation:
f(β) = β0+β1PGNP+β2GNP+β3UEM+β4AF+β5POP+β6YEAR.
Where β = (β0,β1,β2,β3,β4,β5,β6)' is a column vector of 7 unknown coefficients, and the corresponding variable PGNP, GNP, UEM, AF, POP, YEAR are the data series described above.
Using the above linear equation f(β) to fit the employment data EM. Let's define the error
ε = EM - f(β).
Note that ε is a 16x1 vector. The least squares estimation is to find a vector of coefficients β* so that the sum of error squared is minimized. That is,
Minimize S(β) = ε'ε = ∑i=1,...,16εi2