I am trying to understand the relationship between OLS and the Method of Moments. Specifically, why OLS is considered a special case of Method of Moments ... and why Method of Moments is a special case of OLS.
I read that for a simple regression model:
$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$
To do moment estimation, we have assumptions about expected values of errors are 0 and errors are not correlated with x-variables:
$$E(\epsilon_i) = 0$$ $$E(x_i\epsilon_i) = 0$$
If we make substitutions, we get:
1)$$E(y_i - \beta_0 - \beta_1x_i) = 0$$ 2)$$E(x_i(y_i - \beta_0 - \beta_1x_i)) = 0$$
They say that the above equation is like OLS now because 1) looks like the Error term is being minimized in OLS. But the error is not squared. And second moment is supposed to be about variance but I do not see it in 2).
I don't fully understand the relationship between OLS and Method of Moments. What am I missing?