Tutorials › Statistical Theory III - Theories of Inference, Multivariate Methods, and Contingency Tables › Overidentified Moments and Optimal GMM Weighting

M-Estimation and Estimating Equations · Tutorial 607 of 972

Overidentified Moments and Optimal GMM Weighting

Learn how overidentified moment conditions determine a GMM estimator, how its uncertainty depends on the weight matrix, and why inverse-covariance weighting is optimal.

Advanced 10 min read

What You'll Learn

  • Set up GMM when the number of moment conditions exceeds the number of parameters
  • State the identification and regularity conditions for its asymptotic distribution
  • Derive the sandwich covariance of an overidentified GMM estimator
  • Show that inverse moment covariance minimizes asymptotic variance
  • Compare identity and optimal weighting in explicit examples
  • Recognize common errors in choosing and interpreting a GMM weight matrix

Why Use More Moment Conditions Than Parameters?

A method-of-moments estimator uses population restrictions that a model implies, such as \(E[g(W_i,\theta_0)]=0\). When there are as many restrictions as unknown parameters, one may be able to solve the sample equations exactly. But applied models often supply more moment conditions than parameters. Sampling variation will generally make those equations impossible to satisfy all at once. Generalized method of moments (GMM) resolves this by choosing the parameter value that makes the sample moments collectively small, with a specified weighting matrix determining how discrepancies are measured.

The weight matters because moment conditions can have different scales and different amounts of sampling variability. A good weight gives less influence to noisy directions and accounts for correlation across moments. The central results are an asymptotic covariance formula for a general positive-definite weight and a demonstration that weighting by the inverse covariance of the moments is asymptotically optimal.

Definition: Let \(W_i\) be independent and identically distributed observations, let \(\theta_0\in\mathbb{R}^p\) be the parameter, and let \(g(W_i,\theta)\in\mathbb{R}^q\) be a vector of moment functions, with \(q>p\). The model’s moment restriction is \(E[g(W_i,\theta_0)]=0\). Define the sample moment vector by \(\bar g_n(\theta)=n^{-1}\sum_{i=1}^n g(W_i,\theta)\). For a symmetric positive-definite \(q\times q\) matrix \(W_n\), a GMM estimator minimizes \(Q_n(\theta)=\bar g_n(\theta)'W_n\bar g_n(\theta)\) over the parameter space.

The vector \(\bar g_n(\theta)\) has \(q\) entries, but only \(p\) parameters can be adjusted. In general, there is no \(\theta\) making all \(q\) sample moments exactly zero. GMM instead minimizes a weighted squared distance from zero. The matrix \(W_n\) is a weight matrix; below, \(W\) denotes its probability limit. It is distinct from the observation \(W_i\).

Asymptotic Covariance for a General Weight

Write \(m(\theta)=E[g(W_i,\theta)]\), and define the \(q\times p\) derivative matrix and the covariance matrix of the moments at the true parameter by

$$ G=E\!\left[\frac{\partial g(W_i,\theta_0)}{\partial\theta'}\right], \qquad \Omega=\operatorname{Var}\!\left(g(W_i,\theta_0)\right). $$

For the result below, assume \(\theta_0\) is an interior point of the parameter space; \(E[g(W_i,\theta_0)]=0\); \(g\) is differentiable near \(\theta_0\); and the required laws of large numbers and uniform derivative convergence hold there. Assume \(E[\|g(W_i,\theta_0)\|^2]<\infty\), the central limit theorem holds for the sample moments, \(\Omega\) is positive definite, and \(G\) has full column rank \(p\). Also assume \(W_n\xrightarrow{p}W\), where \(W\) is symmetric positive definite, and that the chosen interior minimizer \(\hat\theta\) is consistent and root-\(n\) consistent. These conditions ensure local curvature in all parameter directions and allow the first-order condition to be linearized.

Theorem: Under the conditions just stated, $$ \sqrt n(\hat\theta-\theta_0) = -(G'WG)^{-1}G'W\sqrt n\,\bar g_n(\theta_0)+o_p(1) \xrightarrow{d} N\!\left(0,\ V(W)\right), $$ where $$ V(W)=(G'WG)^{-1}G'W\Omega WG(G'WG)^{-1}. $$

Derivation. The multivariate central limit theorem gives \(\sqrt n\,\bar g_n(\theta_0)\xrightarrow{d}N(0,\Omega)\). At an interior minimizer, differentiating \(Q_n\) with respect to \(\theta\) gives the first-order condition

$$ \hat G_n(\hat\theta)'W_n\bar g_n(\hat\theta)=0, \qquad \hat G_n(\theta)=\frac{1}{n}\sum_{i=1}^n \frac{\partial g(W_i,\theta)}{\partial\theta'}. $$

A Taylor expansion of the sample moments around \(\theta_0\), using consistency and derivative convergence, gives

$$ \bar g_n(\hat\theta) = \bar g_n(\theta_0)+G(\hat\theta-\theta_0) +o_p(n^{-1/2}). $$

Substitute this into the first-order condition and use \(\hat G_n(\hat\theta)\xrightarrow{p}G\) and \(W_n\xrightarrow{p}W\). Since \(G'WG\) is nonsingular, the resulting equation yields

$$ \sqrt n(\hat\theta-\theta_0) = -(G'WG)^{-1}G'W\sqrt n\,\bar g_n(\theta_0)+o_p(1). $$

The covariance of the leading term is \(A_W\Omega A_W'\), where \(A_W=(G'WG)^{-1}G'W\). Multiplication gives the displayed expression for \(V(W)\), and the central limit theorem and Slutsky’s theorem give the stated limiting distribution. \(\square\)

Worked Example: Two Independent Measurements of One Parameter

Suppose each observation supplies two unbiased measurements, \(A_i=\theta_0+u_i\) and \(B_i=\theta_0+v_i\), where the errors have mean zero, are independent of each other, and have variances \(1\) and \(4\), respectively. Use \(g_i(\theta)=(A_i-\theta,\ B_i-\theta)'\). There are \(q=2\) moments and \(p=1\) parameter. Here \(G=(-1,-1)'\) and \(\Omega=\operatorname{diag}(1,4)\).

With the identity weight, minimizing the sum of squared sample moments gives \(\hat\theta_I=(\bar A+\bar B)/2\). The general covariance formula, or direct calculation, gives

$$ \operatorname{Avar}\!\left(\sqrt n(\hat\theta_I-\theta_0)\right) = \frac{1+4}{4} = \frac54. $$

Now use \(W=\Omega^{-1}=\operatorname{diag}(1,1/4)\). The weighted criterion is \((\bar A-\theta)^2+\tfrac14(\bar B-\theta)^2\). Differentiating and setting the derivative to zero gives

$$ \hat\theta_{\mathrm{opt}} = \frac{\bar A+\bar B/4}{1+1/4} = \frac45\bar A+\frac15\bar B. $$

Its asymptotic variance is \((4/5)^2(1)+(1/5)^2(4)=16/25+4/25=4/5\), lower than \(5/4\). The more precise measurement receives greater weight.

Why Inverse-Covariance Weighting Is Optimal

The optimal weight is \(W=\Omega^{-1}\), or any positive scalar multiple of it. To see why, first note that the linear approximation to a GMM estimator has the form \(-A_W\sqrt n\,\bar g_n(\theta_0)\), where \(A_W=(G'WG)^{-1}G'W\) satisfies \(A_WG=I_p\). The constraint \(A_WG=I_p\) expresses that the linearized estimator responds correctly to local changes in the parameter.

Theorem: If \(\Omega\) is positive definite and \(G\) has full column rank, the inverse-covariance choice \(W=\Omega^{-1}\) has asymptotic covariance $$ V_{\mathrm{opt}}=(G'\Omega^{-1}G)^{-1}. $$ For any other symmetric positive-definite weight \(W\), \(V(W)-V_{\mathrm{opt}}\) is positive semidefinite.

Proof. Define \(A_*=(G'\Omega^{-1}G)^{-1}G'\Omega^{-1}\). Then \(A_*G=I_p\), and substituting \(W=\Omega^{-1}\) into the general covariance formula gives \(A_*\Omega A_*'=(G'\Omega^{-1}G)^{-1}\). For a general \(W\), set \(D=A_W-A_*\). Since both matrices multiplied by \(G\) equal \(I_p\), \(DG=0\). Expand:

$$ A_W\Omega A_W' = A_*\Omega A_*'+D\Omega D' +A_*\Omega D'+D\Omega A_*'. $$

The cross term \(A_*\Omega D'\) is zero because

$$ A_*\Omega D' = (G'\Omega^{-1}G)^{-1}G'D' = (G'\Omega^{-1}G)^{-1}(DG)' = 0. $$

Its transpose is also zero. Thus \(V(W)-V_{\mathrm{opt}}=D\Omega D'\), which is positive semidefinite because \(\Omega\) is positive definite. This proves the claim. \(\square\)

This result compares asymptotic covariance matrices in the positive-semidefinite order: no linear contrast of the parameter has greater asymptotic variance under the optimal weight than under another fixed positive-definite weight. It does not mean the optimal weight makes every sample moment vanish. Rather, it accounts for the sampling variation and correlation among those moments.

Worked Example: Optimal Weight With Correlated Moments

Return to two unbiased measurements of a scalar parameter, but suppose their error covariance is

$$ \Omega= \begin{pmatrix} 1&1/2\\ 1/2&4 \end{pmatrix}. $$

Its determinant is \(4-1/4=15/4>0\), and

$$ \Omega^{-1} = \frac{1}{15/4} \begin{pmatrix} 4&-1/2\\ -1/2&1 \end{pmatrix}. $$

For \(G=(-1,-1)'\), the optimal linear estimator uses coefficients proportional to \(\Omega^{-1}(1,1)'=(14/15,2/15)'\). Their sum is \(16/15\), so normalizing the coefficients gives \(7/8\) and \(1/8\). Therefore \(\hat\theta_{\mathrm{opt}}=(7/8)\bar A+(1/8)\bar B\). Its variance on the \(\sqrt n\) scale is

$$ \frac{49}{64}(1)+\frac{1}{64}(4) +2\left(\frac78\right)\left(\frac18\right)\left(\frac12\right) = \frac{49+4+7}{64} = \frac{15}{16}. $$

For comparison, the equal-weight average has variance \((1+4+2(1/2))/4=3/2\). The optimal weights account for the correlation as well as the difference in marginal variances.

Worked Example: Three Moments for Two Parameters

Let the sample mean of a three-dimensional observation satisfy \(E[Z_i]=C\theta_0\), with

$$ C= \begin{pmatrix} 1&0\\ 0&1\\ 1&1 \end{pmatrix}, \qquad \operatorname{Var}(Z_i)=I_3. $$

The moment vector is \(g(Z_i,\theta)=Z_i-C\theta\), so \(q=3>p=2\), \(G=-C\), and \(\Omega=I_3\). With identity weighting, the criterion is \(\|\bar Z-C\theta\|^2\). Its first-order condition gives \(\hat\theta=(C'C)^{-1}C'\bar Z\). Since \(C'C=\begin{pmatrix}2&1\\1&2\end{pmatrix}\), its inverse is \(\tfrac13\begin{pmatrix}2&-1\\-1&2\end{pmatrix}\).

For an observed sample mean \(\bar Z=(2,1,4)'\), we obtain \(C'\bar Z=(6,5)'\), and hence \(\hat\theta=(7/3,4/3)'\). The fitted moments are \(C\hat\theta=(7/3,4/3,11/3)'\), leaving residual \(\bar Z-C\hat\theta=(-1/3,-1/3,1/3)'\). The minimized criterion is \(1/9+1/9+1/9=1/3\): the three sample moments cannot all be set to zero by choosing only two parameters.

The asymptotic covariance is

$$ (C'C)^{-1} = \frac13 \begin{pmatrix} 2&-1\\ -1&2 \end{pmatrix}. $$

Here identity weighting is already optimal because \(\Omega=I_3\). With nonidentity \(\Omega\), inverse-covariance weighting would generally change both the estimate and its covariance.

Implementation and Common Pitfalls

In practice, \(\Omega\) is usually unknown, so an optimal weight is not directly available. A common strategy is to obtain a consistent preliminary estimator, estimate the covariance of the moment vector at that estimator, and use its inverse as a subsequent weight. The asymptotic optimality result applies when the resulting weight converges in probability to \(\Omega^{-1}\), subject to the regularity conditions for the estimator. The earlier material on plug-in nuisance estimates treats the general role of consistent preliminary estimates; the key point here is that the weight must estimate the covariance of the moments, not the parameter covariance.

Common mistake: “There are more moments than parameters, so I should invert \(G\) and solve the sample equations.” This is impossible when \(G\) is \(q\times p\) with \(q>p\); it is not a square matrix, and the sample moments will generally not have a common zero. The correction is to minimize \(\bar g_n(\theta)'W_n\bar g_n(\theta)\). The matrix to invert in the local covariance formula is \(G'WG\), which is \(p\times p\) and nonsingular under full column rank of \(G\). A second mistake is to use \(\Omega\) as the optimal weight: the optimal choice is its inverse, because high-variance moment directions should count less, not more.

Key takeaway: Overidentified GMM combines \(q>p\) moment restrictions by minimizing a weighted quadratic criterion. Its asymptotic covariance depends on the weight through a sandwich formula; weighting by the inverse covariance of the moments yields the smallest covariance in the positive-semidefinite order.

Check Your Understanding

Answer each question using the definitions and results above.

  1. Why can \(q\) sample moment equations generally not be solved exactly when \(q>p\)?
  2. State the dimensions and roles of \(G\), \(\Omega\), and \(W\) in the asymptotic covariance formula.
  3. For what weight does the general covariance reduce to \((G'\Omega^{-1}G)^{-1}\)?
  4. Why is \(G'WG\), rather than \(G\), the matrix inverted in the GMM expansion?
  5. In the correlated-measurement example, what feature of the data makes equal weighting inefficient?
Clinical Biostats