Generalized Method of Moments (GMM) Estimation

Econometrics
Introduced by
Lars Peter Hansen; Arellano & Bond (dynamic panel)
Year
1982
Type
Moment-condition estimator

What does it do?

The Generalized Method of Moments is a general-purpose econometric estimator that recovers parameters from population moment conditions, formalised by Lars Peter Hansen in 1982.

It is widely used for instrumental-variable estimation, dynamic panel-data models (the Arellano-Bond estimator), and time-series applications.

The intuition behind the method

Theory often tells us that certain quantities should average out to zero in the population — for example, that valid instruments are uncorrelated with the error term. GMM turns those expected relationships into 'moment conditions' and then picks the parameter values that make the matching sample averages as close to zero as possible. When there are more moment conditions than parameters, it cannot satisfy all of them exactly, so it weights them and finds the best compromise.

History

Lars Peter Hansen formalised the Generalized Method of Moments in his 1982 Econometrica paper, which established the large-sample properties of estimators built from moment conditions and introduced the associated over-identification test. Arellano and Bond (1991) applied the framework to dynamic panel data, developing a GMM estimator for models with individual effects and lagged dependent variables. They also proposed specification tests based on the GMM residuals.

When to use it

Choose GMM when you can state moment conditions that follow from theory, most often that the instruments are uncorrelated with the error, and when the data are a panel or a time series. It is a natural choice when regressors are endogenous, or when lagged dependent variables are combined with individual effects, since OLS is inconsistent in both settings. Do not use it if you cannot defend the instruments: an estimator built on doubtful moment conditions inherits that doubt, and the Hansen J test has limited power to detect every violation. Avoid it when the sample is small, since the large-sample approximations behind the standard errors and the J test may then be unreliable. Before estimating, compare the instrument count with the number of cross-sectional units. As a rule of thumb, a large instrument set relative to the cross-sectional units is a frequently reported concern in applied work. Report the Hansen J test as part of the specification check.

Limitations and considerations

  • Its properties are asymptotic: the standard errors and the J test rely on large-sample approximations that may be poor in small samples.
  • The number of instruments grows quickly as more moment restrictions are added. When it is large relative to the number of cross-sectional units, the sample moment covariance used for the weighting matrix can be poorly estimated, and the J test may lose reliability.
  • Consistency depends on the moment conditions being valid and the instruments being strong. Weak instruments leave the estimates imprecise and can bias them.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Needs only the stated moment conditions rather than a full distributional assumption about the errors, so it does not require normally distributed errors.
  • Gives consistent estimates in models where OLS fails because of endogenous regressors, or because lagged dependent variables are combined with individual effects, as in the dynamic panel setting studied by Arellano and Bond.
  • With an optimal weighting matrix the estimator is asymptotically efficient among estimators that use the same moments, and the Hansen J statistic tests the over-identifying restrictions from the same estimation.

Applications

  • Estimating dynamic panel-data models with lagged dependent variables, such as employment equations (Arellano-Bond).
  • Instrumental-variable estimation when regressors are correlated with the error term.
  • Time-series and macro-econometric models where theory supplies moment conditions.

How it works

How it works

1

The starting point is the population moment condition E[Z'ε] = 0, where ε = y − Xβ is the error term and Z is the matrix of instruments. It states that the instruments are orthogonal to the error, and this restriction is what identifies β. In the dynamic panel setting of Arellano and Bond, the moment restrictions follow from the assumption that the errors are not serially correlated.

Formula
E[Z'\varepsilon] = 0,\quad \varepsilon = y - X\beta
2

GMM chooses β̂ to minimise ḡ(β)' W ḡ(β), where ḡ(β) = (1/n) Z'(y − Xβ) is the sample average of the moments. With more instruments than parameters, the sample moments cannot all be set to zero at once, so the weighting matrix W determines how they are traded off. Choosing W as the inverse of the moment covariance gives the efficient estimator. The Hansen J statistic then tests whether the remaining moment discrepancy is consistent with valid instruments.

Formula
\hat{\beta} = \arg\min_{\beta}\; \bar{g}(\beta)' W \bar{g}(\beta),\quad \bar{g}(\beta) = \tfrac{1}{n} Z'(y - X\beta)

Common pitfalls

  • Letting the instrument count grow large relative to the number of cross-sectional units, which can make the weighting matrix unstable, weaken the Hansen J test and overfit the endogenous regressors.
  • Applying GMM to a small sample and treating the asymptotic standard errors as reliable.
  • Reading a non-rejecting Hansen J test as proof that the instruments are valid. The test covers only the over-identifying restrictions, not the validity of the moments that exactly identify the parameters.
  • Ignoring a rejection of the Hansen J test, which points to invalid moment conditions or mis-specification.
  • Using weak instruments that are only loosely correlated with the endogenous regressors, which produces unstable estimates.

Frequently asked questions

How does GMM differ from OLS?

OLS minimises squared residuals and assumes that the regressors are uncorrelated with the error. GMM instead works from moment conditions, typically that the instruments are uncorrelated with the error. This allows it to estimate models with endogenous regressors, or with lagged dependent variables combined with individual effects, consistently, where OLS is inconsistent.

What is the Hansen J test?

The model is over-identified when there are more moment conditions than parameters, so not all sample moments can be set to zero at once. The Hansen J statistic is a chi-squared test of the over-identifying restrictions, with the null hypothesis that the moment conditions are valid. A rejection points to invalid moments or mis-specification. Failing to reject does not prove that the instruments are valid.

What is instrument proliferation and why is it a problem?

A large instrument set, in particular one that is large relative to the number of cross-sectional units, can make the weighting matrix unstable, weaken the Hansen J test and overfit the endogenous regressors. In that case, prefer a more parsimonious instrument set, or compare the results with a simpler estimator such as two-stage least squares.

How large a sample does GMM need?

GMM relies on large-sample approximations, so its standard errors and the Hansen J test may be unreliable in small samples, and finite-sample bias can be severe. No universal minimum sample size applies to every model; reliability depends on the instruments, the number of moments and the application. Check small-sample behaviour with Monte Carlo experiments, or compare the results with a simpler estimator whose assumptions suit the data.

Related methods

Sources

  1. Hansen, L. P. (1982). Large Sample Properties of Generalized Method of Moments Estimators. Econometrica, 50(4), 1029-1054.

    Open DOI reference
  2. Arellano, M., & Bond, S. (1991). Some Tests of Specification for Panel Data: Monte Carlo Evidence and an Application to Employment Equations. The Review of Economic Studies, 58(2), 277-297.

    Open DOI reference