Quant Memo
Advanced

Overidentification and the Hansen J-Test

When you have more instrumental variables than endogenous regressors, GMM lets you test whether all the extra instruments actually agree with each other — the Hansen J-test, a built-in check that comes free with overidentification.

Prerequisites: Endogeneity and Instrumental Variables

An instrumental-variables regression is just identified when you have exactly as many instruments as endogenous regressors — in that case, the instruments pin down a unique estimate and there's no way to check whether they're individually consistent with each other, because there's no leftover information to check against. A model is overidentified when you have more instruments than endogenous regressors, and this extra information is not wasted: GMM combines all the instruments into one efficient estimate, and the degree to which the different instruments' implied estimates disagree with each other becomes directly testable.

The Hansen J-test (also called the J-statistic or the overidentifying restrictions test) formalizes this. It takes the GMM objective function evaluated at the efficient estimate — a weighted sum of how far the sample moment conditions are from zero — and under the null hypothesis that all instruments are valid, this statistic is asymptotically chi-squared with degrees of freedom equal to the number of overidentifying restrictions (extra instruments beyond the minimum needed).

Worked illustration: suppose you have 2 endogenous regressors and 5 instruments, giving 3 overidentifying restrictions. Running GMM and computing the J-statistic yields, say, J=9.2J = 9.2 against a χ32\chi^2_3 critical value of 7.8 at the 5% level. Since 9.2>7.89.2 > 7.8, you reject the null that all instruments are valid — at least one of your 5 instruments is likely correlated with the error term rather than being a genuinely exogenous source of variation, even though the test can't tell you which one.

Overidentification (more instruments than endogenous variables) lets GMM produce a Hansen J-test of instrument validity for free — a rejection means at least one instrument fails the exogeneity assumption, though the test cannot identify which one, and a model that isn't overidentified has no such internal check available at all.

Related concepts

Further reading

  • Hansen, Large Sample Properties of Generalized Method of Moments Estimators, Econometrica, 1982
ShareTwitterLinkedIn