Method of Moments and GMM
Estimation by matching sample moments to their theoretical counterparts, the classical method of moments, its generalization to more moment conditions than parameters (GMM), and why GMM underlies asset-pricing tests.
Prerequisites: Bias, Variance, and the Quality of Estimators, Expectation, Variance & Moments
The method of moments is the oldest estimation idea in statistics and, in its modern generalized form, one of the most important in finance. The logic is disarmingly simple: a model tells you what the population moments of the data should be as functions of the parameters; a sample gives you sample moments; set them equal and solve. Where maximum likelihood needs a full distributional assumption, the method of moments needs only that a few expectations hold, which is exactly why asset pricing, where theory pins down expectations but not full distributions, is built on it.
Classical method of moments
Suppose the model has parameters and the population moments are known functions . Replace each with its sample analogue and solve the equations
The justification is the The Law of Large Numbers: sample moments converge to population moments, so the solution converges to the truth, the estimator is consistent. It is generally not efficient (it ignores information MLE would use), but it is often available in closed form when MLE requires numerical optimization, and it makes an excellent starting value for a likelihood optimizer.
Worked example: fitting a gamma to loss data
The gamma distribution with shape and rate has mean and variance . Match the first two moments to the sample mean and sample variance :
Dividing the second by the first gives , so and . Two moments, two parameters, a closed-form fit, no optimizer, no distributional score to differentiate. This is the everyday appeal of the method: fast, transparent, and robust to not knowing (or not trusting) the full likelihood.
Generalized method of moments (GMM)
The powerful generalization drops the requirement that the number of moment conditions equal the number of parameters. Economic theory typically delivers moment conditions of the form
where is a vector of functions and has dimension . The sample analogue cannot in general be driven to exactly zero when (more equations than unknowns, the model is overidentified). GMM instead minimizes a quadratic form:
for a positive-definite weighting matrix . Hansen's theorem says the estimator is consistent and asymptotically normal for any such , and the efficient choice is , the inverse of the long-run covariance of the moment conditions . With the optimal weight, overidentification becomes a virtue: the extra moment conditions both sharpen the estimate and provide a specification test.
The J-test and the connections
When the model is overidentified, the minimized objective is not zero, and its scaled value is the Hansen J-statistic, which is under a correct model, a test of whether the moment conditions are jointly consistent with only parameters. GMM also unifies estimators you already know:
- OLS is GMM with the moment condition (regressors orthogonal to errors). See Ordinary Least Squares (OLS).
- Instrumental variables / 2SLS is GMM with for instruments . Overidentification (more instruments than regressors) is exactly the GMM-with- case. See Endogeneity and Instrumental Variables.
- Maximum likelihood is GMM with the score as the moment condition, .
This is why GMM is the lingua franca of empirical asset pricing: a pricing model such as (a stochastic discount factor pricing every return ) is a set of moment conditions, one per asset, estimated and tested directly by GMM with no distributional assumption on returns.
Failure modes in financial data
- Weak identification. If the moment conditions are nearly flat in , the analogue of weak instruments, GMM estimates are badly biased and the asymptotic normal approximation fails, even in large samples. Asset-pricing tests with many test assets and few real factors are prone to this.
- Estimating the weighting matrix. The efficient must itself be estimated, and is a long-run covariance that requires HAC (Newey–West) correction for autocorrelated moments; a poorly estimated in finite samples can make "efficient" two-step GMM less reliable than one-step. Continuously-updated or iterated GMM is often used to reduce this.
- Too many moments. Adding moment conditions raises asymptotic efficiency but worsens finite-sample bias, a classic bias–variance tension (see Bias, Variance, and the Quality of Estimators). With hundreds of test assets and a short return history, the estimated is near-singular and the J-test over-rejects.
- Fat tails and outliers. Higher moments are dominated by extremes; a method-of-moments fit that matches the sample kurtosis of returns is hostage to a handful of crash days.
In interviews
The classic ask is to fit a two-parameter distribution by matching two moments, the gamma or the uniform on are common; be able to set up and solve in closed form. Know the one-sentence contrast with MLE: method of moments needs only that certain expectations hold (robust, consistent, usually not efficient), while MLE needs the full density (efficient, but fragile to misspecification). For quant-research roles, be ready to say what GMM adds, estimation with more moment conditions than parameters, the efficient weighting , and the J-test, and to note that OLS, IV, and MLE are all special cases, which is the unifying insight interviewers are listening for.
Related concepts
Practice in interviews
Further reading
- Hayashi, Econometrics (Ch. 3, GMM)
- Hansen (1982), Large Sample Properties of GMM Estimators
- Cochrane, Asset Pricing (Ch. 10–11)