Generalized method of moments
In econometrics, generalized method of moments (GMM) is a generic method for estimating parameters in statistical models. Usually it is applied in the context of semiparametric models, where the parameter of interest is finite-dimensional, whereas the full shape of the distribution function of the data may not be known, and therefore the maximum likelihood estimation is not applicable.
The method requires that a certain number of moment conditions were specified for the model. These moment conditions are functions of the model parameters and the data, such that their expectation is zero at the true values of the parameters. The GMM method then minimizes a certain norm of the sample averages of the moment conditions.
The GMM estimators are known to be consistent, asymptotically normal, and efficient in the class of all estimators that don’t use any extra information aside from that contained in the moment conditions.
GMM was developed by Lars Peter Hansen in 1982 as a generalization of the method of moments.
Contents |
[edit] Description
Suppose the available data consists of T iid observations {Yt } t = 1,...,T, where each observation Yt is an n-dimensional multivariate random variable. The data comes from a certain statistical model, defined up to an unknown parameter θ ∈ Θ. The goal of the estimation problem is to find the “true” value of this parameter, θ0, or at least a reasonably close estimate.
In order to apply GMM there should exist a vector-valued function g(Y,θ) such that
where E denotes expectation, and Yt is a generic observation, which are all assumed to be iid. Moreover, function m(θ) must not be equal to zero for θ ≠ θ0, or otherwise parameter θ will not be identified.
The basic idea behind GMM is to replace the theoretical expected value E[⋅] with its empirical analog — sample average:
and then to minimize the norm of this expression with respect to θ.
By the law of large numbers,
for large values of T, and thus we expect that
. The generalized method of moments looks for a number
which would make
as close to zero as possible. Mathematically, this is equivalent to minimizing a certain norm of
(norm of m, denoted as ||m||, measures the distance between m and zero). The properties of the resulting estimator will depend on the particular choice of the norm function, and therefore the theory of GMM considers an entire family of norms, defined as
where W is a positive-definite weighting matrix, and m′ denotes transposition. In practice, the weighting matrix W is computed based on the available data set, which will be denoted as
. Thus, the GMM estimator can be written as
Under suitable conditions this estimator is consistent, asymptotically normal, and with right choice of weighting matrix
asymptotically efficient.
[edit] Properties
[edit] Consistency
Consistency is a statistical property of an estimator stating that, having sufficient number of observations, the estimator will get arbitrarily close to the true value of parameter:
(see Convergence in probability). Necessary and sufficient conditions for a GMM estimator to be consistent are as follows:
where W is a positive semi-definite matrix,
only for 
which is compact,
is continuous at each θ with probability one,![\operatorname{E}[\,\textstyle\sup_{\theta\in\Theta} \lVert g(Y,\theta)\rVert\,]<\infty.](//upload.wikimedia.org/wikipedia/en/math/e/1/5/e150a21ea1ccee2014755d710c65d8ce.png)
The second condition here (so-called Global identification condition) is often particularly hard to verify. There exist simpler necessary but not sufficient conditions, which may be used to detect non-identification problem:
- Order condition. The dimension of moment function m(θ) should be at least as large as the dimension of parameter vector θ.
- Local identification. If g(Y,θ) is continuously differentiable in a neighborhood of θ0, then matrix
must have full column rank.
In practice applied econometricians often simply assume that global identification holds, without actually proving it.[1]
[edit] Asymptotic normality
Asymptotic normality is a useful property, as it allows us to construct confidence bands for the estimator, and conduct different tests. Before we can make a statement about the asymptotic distribution of the GMM estimator, we need to define two auxiliary matrices:
Then under conditions 1–6 listed below, the GMM estimator will be asymptotically normal with limiting distribution
(see Convergence in distribution). Conditions:
is consistent (see previous section),
lies in the interior of set 
is continuously differentiable in some neighborhood N of θ0 with probability one,![\operatorname{E}[\,\lVert g(Y_t,\theta) \rVert^2\,]<\infty,](//upload.wikimedia.org/wikipedia/en/math/3/3/2/33246cf198b7a71c769f80cf2e43481f.png)
![\operatorname{E}[\,\textstyle\sup_{\theta\in N}\lVert \nabla_\theta g(Y_t,\theta) \rVert\,]<\infty,](//upload.wikimedia.org/wikipedia/en/math/d/5/b/d5b0736845e30abbb481b0f3ff8ccfab.png)
- matrix G'WG is nonsingular.
[edit] Efficiency
So far we have said nothing about the choice of matrix W, except that it must be positive semi-definite. In fact any such matrix will produce a consistent and asymptotically normal GMM estimator, the only difference will be in the asymptotic variance of that estimator. It can be shown that taking
will result in the most efficient estimator in the class of all asymptotically normal estimators. Efficiency in this case means that such an estimator will have the smallest possible variance (we say that matrix A is smaller than matrix B if B–A is positive semi-definite).
In this case the formula for the asymptotic distribution of the GMM estimator simplifies to
The proof that such a choice of weighting matrix is indeed optimal is quite elegant, and is often adopted with slight modifications when establishing efficiency of other estimators. As a rule of thumb, a weighting matrix is optimal whenever it makes the “sandwich formula” for variance collapse into a simpler expression.
| Proof. We will consider the difference between asymptotic variance with arbitrary W and asymptotic variance with W = Ω − 1. If we can factor this difference into a symmetric product of the form CC' for some matrix C, then it will guarantee that this difference is nonnegative-definite, and thus W = Ω − 1 will be optimal by definition. | |
![]() |
![]() |
![]() |
|
![]() |
|
![]() |
|
| where we introduced matrices A and B in order to slightly simplify notation; I is an identity matrix. We can see that matrix B here is symmetric and idempotent: B2 = B. This means I–B is symmetric and idempotent as well: I − B = (I − B)(I − B)'. Thus we can continue to factor the previous expression as | |
![]() |
|
[edit] Implementation
One difficulty with implementing the outlined method is that we cannot take W = Ω−1 because, by the definition of matrix Ω, we need to know the value of θ0 in order to compute this matrix, and θ0 is precisely the quantity we don’t know and are trying to estimate in the first place.
Several approaches exist to deal with this issue, the first one being the most popular:
- Two-step feasible GMM:
- Step 1: Take W = I (the identity matrix), and compute preliminary GMM estimate
. This estimator is consistent for θ0, although not efficient. - Step 2: Take
. This matrix converges in probability to Ω−1 and therefore if we compute
with this weighting matrix, the estimator will be asymptotically efficient.
- Step 1: Take W = I (the identity matrix), and compute preliminary GMM estimate
- Iterated GMM. Essentially the same procedure as 2-step GMM, except that the matrix
is recalculated several times. That is, the estimate obtained in step 2 is used to calculate the weighting matrix for step 3, and so on. Such estimator, denoted
, is equivalent to solving the following system of equations:[2]
- Continuously Updating GMM (CUGMM, or CUE). Estimates
simultaneously with estimating the weighting matrix W:
Another important issue in implementation of minimization procedure is that the function is supposed to search through (possibly high-dimensional) parameter space Θ and find the value of θ which minimizes the objective function. No generic recommendation for such procedure exists, it is a subject of its own field, numerical optimization.
[edit] J-test
When the number of moment conditions is greater than the dimension of the parameter vector θ, the model is said to be over-identified. Over-identification allows us to check whether the model's moment conditions match the data well or not.
Conceptually we can check whether
is sufficiently close to zero to suggest that the model fits the data well. The GMM method has then replaced the problem of solving the equation
, which chooses θ to match the restrictions exactly, by a minimization calculation. The minimization can always be conducted even when no θ0 exists such that m(θ0) = 0. This is what J-test does. The J-test is also called a test for over-identifying restrictions.
Formally we consider two hypotheses:
(the null hypothesis that the model is “valid”), and
(the alternative hypothesis that model is “invalid”; the data do not come close to meeting the restrictions)
Under hypothesis H0, the following so-called J-statistic is asymptotically chi-squared with k–l degrees of freedom. Define J to be:
under H0,
where
is the GMM estimator of the parameter θ0, k is the number of moment conditions (dimension of vector g), and l is the number of estimated parameters (dimension of vector θ). Matrix
must converge in probability to Ω − 1, the efficient weighting matrix (note that previously we only required that W be proportional to Ω − 1 for estimator to be efficient; however in order to conduct the J-test W must be exactly equal to Ω − 1, not simply proportional).
Under the alternative hypothesis H1, the J-statistic is asymptotically unbounded:
under H1
To conduct the test we compute the value of J from the data. It is a nonnegative number. We compare it with (say) the 0.95 quantile of the
distribution:
- H0 is rejected at 95% confidence level if

- H0 cannot be rejected at 95% confidence level if

[edit] Scope
Many other popular estimation techniques can be cast in terms of GMM optimization:
- Ordinary Least Squares (OLS) is equivalent to GMM with moment conditions:
- Generalized Least Squares (GLS)
- Instrumental variables regression (IV)
- Non-linear Least Squares (NLLS):
- Maximum likelihood estimation (MLE):
[edit] Implementations
[edit] See also
[edit] References
- ^ Newey, McFadden (1994), p.2127
- ^ Imbens, Spady & Johnson (1998, p. 336)
- ^ Hansen, Heaton & Yaron (1996)
- Kirby Faciane (2006): Statistics for Empirical and Quantitative Finance. H.C. Baird: Philadelphia. ISBN 0-9788208-9-4.
- Alastair R. Hall (2005). Generalized Method of Moments (Advanced Texts in Econometrics). Oxford University Press. ISBN 0-19-877520-2.
- Lars Peter Hansen (1982): Large Sample Properties of Generalized Method of Moments Estimators, Econometrica 50, 1029-1054.
- Lars Peter Hansen (2002): Method of Moments in International Encyclopedia of the Social and Behavior Sciences, N. J. Smelser and P. B. Bates (editors), Pergamon: Oxford.
- Hansen, Lars Peter; Heaton, John; Yaron, Yaron (1996). "Finite-sample properties of some alternative GMM estimators". Journal of Business & Economic Statistics 14 (3): 262–280. JSTOR 1392442.
- Imbens, Guido W.; Spady, Richard H.; Johnson, Phillip (1998). "Information theoretic approaches to inference in moment condition models". Econometrica 66 (2): 333–357. JSTOR 2998561.
- Newey W., McFadden D. (1994). Large sample estimation and hypothesis testing, in Handbook of Econometrics, Ch.36. Elsevier Science.
- Special issues of Journal of Business and Economic Statistics: vol. 14, no. 3 and vol. 20, no. 4.
![m(\theta_0) \equiv \operatorname{E}[\,g(Y_t,\theta_0)\,]=0,](http://upload.wikimedia.org/wikipedia/en/math/a/5/7/a572b06e314ff153a07ec22688e66201.png)
![\hat{m}(\theta) = \hat{\operatorname{E}}\big[\,g(Y_t,\theta)\,\big] \equiv \frac{1}{T}\sum_{t=1}^T g(Y_t,\theta)](http://upload.wikimedia.org/wikipedia/en/math/6/a/4/6a44fcd7f72f76d18217d7ff2134181e.png)



where W is a
only for 
which is
is continuous at each θ with probability one,![\operatorname{E}[\,\textstyle\sup_{\theta\in\Theta} \lVert g(Y,\theta)\rVert\,]<\infty.](http://upload.wikimedia.org/wikipedia/en/math/e/1/5/e150a21ea1ccee2014755d710c65d8ce.png)
must have full ![G = \operatorname{E}[\,\nabla_{\!\theta}\,g(Y_t,\theta_0)\,], \qquad
\Omega = \operatorname{E}[\,g(Y_t,\theta_0)g(Y_t,\theta_0)'\,]](http://upload.wikimedia.org/wikipedia/en/math/6/2/b/62ba00031b15c53a458fe826c62dfe8c.png)
![\sqrt{T}\big(\hat\theta - \theta_0\big)\ \xrightarrow{d}\ \mathcal{N}\big[0, (G'WG)^{-1}G'W\Omega WG(G'WG)^{-1}\big]](http://upload.wikimedia.org/wikipedia/en/math/e/c/8/ec8e913af2095f9859a07c26fb7a65af.png)
lies in the interior of set 
![\operatorname{E}[\,\lVert g(Y_t,\theta) \rVert^2\,]<\infty,](http://upload.wikimedia.org/wikipedia/en/math/3/3/2/33246cf198b7a71c769f80cf2e43481f.png)
![\operatorname{E}[\,\textstyle\sup_{\theta\in N}\lVert \nabla_\theta g(Y_t,\theta) \rVert\,]<\infty,](http://upload.wikimedia.org/wikipedia/en/math/d/5/b/d5b0736845e30abbb481b0f3ff8ccfab.png)

![\sqrt{T}\big(\hat\theta - \theta_0\big)\ \xrightarrow{d}\ \mathcal{N}\big[0, (G'\,\Omega^{-1}G)^{-1}\big]](http://upload.wikimedia.org/wikipedia/en/math/7/8/5/7850a0298289954e7e0a267bf8bbe188.png)






. This estimator is consistent for θ0, although not efficient.
, is equivalent to solving the following system of equations:

(the
(the
under
under 

![\operatorname{E}[\,x_t(y_t - x_t'\beta)\,]=0](http://upload.wikimedia.org/wikipedia/en/math/5/2/a/52a18119536e8bb9208a24824a577357.png)
![\operatorname{E}[\,x_t(y_t - x_t'\beta)/\sigma^2(x_t)\,]=0](http://upload.wikimedia.org/wikipedia/en/math/0/8/d/08d2f66b843fd37a65536fa2c99629f4.png)
![\operatorname{E}[\,z_t(y_t - x_t'\beta)\,]=0](http://upload.wikimedia.org/wikipedia/en/math/1/3/4/134cb2d0cb307a2e6aae60fbf1740c82.png)
![\operatorname{E}[\,\nabla_{\!\beta}\, g(x_t,\beta)\cdot(y_t - g(x_t,\beta))\,]=0](http://upload.wikimedia.org/wikipedia/en/math/b/9/0/b900cd2e9638cad6a1e154d62de22f71.png)
![\operatorname{E}[\,\nabla_{\!\theta} \ln f(x_t,\theta) \,]=0](http://upload.wikimedia.org/wikipedia/en/math/d/2/e/d2e73312e2ef90cb23cb8d6503573405.png)