Tutorials › Econometrics (Graduate) › Interpreting J Tests And Diagnosing Moments

Generalized Method of Moments · Tutorial 219 of 952

Interpreting J Tests And Diagnosing Moments

Interpret the J test as a joint check of overidentifying restrictions, and use targeted diagnostics to investigate rejection without treating any one moment as identified as the source.

Advanced 11 min read

What You'll Learn

  • State the null hypothesis tested by the overidentification J statistic
  • Interpret its chi-square reference distribution and degrees of freedom
  • Distinguish rejection from nonrejection without overstating either conclusion
  • Explain why a joint J test cannot identify a particular invalid moment
  • Use nested moment-set comparisons to construct targeted diagnostics
  • Recognize the assumptions and caveats behind diagnostic conclusions

What the J Test Can—and Cannot—Tell You

An overidentification test asks whether a set of moment restrictions is jointly compatible with the data after the model parameters have been estimated. Hansen’s J test summarizes that compatibility in one statistic. Its value can provide evidence against the joint restrictions, but it does not name which restriction, if any, is responsible. That distinction matters in practice: a small p-value is a reason to investigate the model and its moments, not a ready-made verdict about a particular instrument or equation.

The test is defined for a model with more moment conditions than unknown parameters. Write the \(q\)-dimensional moment vector for observation \(i\) as \(g_i(\theta)\), where \(\theta\) is a \(k\)-dimensional parameter. Let \(\bar g_n(\theta)=n^{-1}\sum_{i=1}^n g_i(\theta)\). The maintained population restriction is that, at the true parameter \(\theta_0\), the expectation of every component is zero.

Definition: The overidentification J test evaluates the joint null hypothesis \(H_0:E[g_i(\theta_0)]=0\) when \(q>k\). Under regularity conditions and an efficient GMM criterion, its statistic is \(J=n\bar g_n(\hat\theta)'\hat S^{-1}\bar g_n(\hat\theta)\), where \(\hat\theta\) is the GMM estimate and \(\hat S\) consistently estimates the long-run covariance matrix of the moments. Under \(H_0\), \(J\) has an asymptotic \(\chi^2_{q-k}\) distribution.

For independent observations, the long-run covariance matrix \(S\) is the covariance matrix of \(g_i(\theta_0)\). With serial dependence, it is the long-run covariance of the moment sequence, estimated accordingly. The chi-square result assumes a correctly specified joint null, identification (the moment Jacobian has rank \(k\)), a nonsingular \(S\), appropriate regularity and moment conditions, and consistent covariance estimation. The number of degrees of freedom is the number of restrictions in excess of the parameters, \(q-k\).

The statistic measures the size of the fitted sample moments relative to their covariance. Large values are more at odds with the joint null. The p-value is the probability, assuming the null and the reference approximation, of obtaining a J statistic at least as large as the observed one. It is not the probability that the null is true. At significance level \(\alpha\), reject \(H_0\) when the p-value is less than \(\alpha\); otherwise, do not reject.

Why the Reference Distribution Has \(q-k\) Degrees of Freedom

A short derivation clarifies why fitting the parameters matters. Let \(G=E[\partial g_i(\theta_0)/\partial\theta']\) be the \(q\)-by-\(k\) Jacobian, with rank \(k\). Under the null, the central limit theorem gives \(\sqrt n\,\bar g_n(\theta_0)\) an asymptotic normal distribution with mean zero and covariance \(S\). Estimating \(\theta\) shifts the moment vector along the \(k\) directions represented by \(G\). Efficient GMM chooses the parameter shift that makes the remaining covariance-weighted moment discrepancy as small as possible.

$$ \begin{aligned} Z&=\sqrt n\,\bar g_n(\theta_0)\ \xrightarrow{d}\ N(0,S),\\ H&=S^{-1/2}G,\qquad U=S^{-1/2}Z\ \xrightarrow{d}\ N(0,I_q),\\ J&\ \xrightarrow{d}\ \min_a (U+Ha)'(U+Ha)\\ &=U'(I_q-P_H)U\ \xrightarrow{d}\ \chi^2_{q-k}, \end{aligned} $$

Here \(a\) represents a local change in the estimated parameter, and \(P_H=H(H'H)^{-1}H'\) is the projection onto the column space of \(H\). Minimization removes the component of \(U\) in that \(k\)-dimensional space. The residual projection \(I_q-P_H\) has rank \(q-k\). A standard normal vector’s squared length after projection onto a space of that rank has a chi-square distribution with \(q-k\) degrees of freedom. This is the asymptotic reason the fitted J statistic tests only the overidentifying restrictions.

If \(q=k\), there are no excess restrictions and \(q-k=0\): the J test cannot assess overidentification. Identification of the parameters alone does not create an overidentification test.

Interpreting Nonrejection

A nonrejection means the observed joint discrepancy is not sufficiently large, at the chosen significance level, to reject the moment restrictions. It does not establish that every moment is valid, prove the structural model correct, or show that the instruments are exogenous. A test may have limited power, particularly in a finite sample or when violations are small. The conclusion should therefore be stated as a lack of sufficient evidence against the joint restrictions under the test’s assumptions.

Worked Example: A J Test That Does Not Reject

Suppose a hypothetical sample has \(n=200\) observations, three moment conditions and one parameter. After efficient GMM estimation, the sample moment vector is \((0.08,-0.04,-0.04)'\), and the estimated long-run covariance matrix is the \(3\)-by-\(3\) identity matrix. These are stipulated fitted moment summaries for this example; the identity covariance and the fitted vector are assumptions about this hypothetical calculation.

There are \(q-k=3-1=2\) degrees of freedom. Substitution into the J statistic gives

$$ J=200 \begin{pmatrix}0.08&-0.04&-0.04\end{pmatrix} I_3 \begin{pmatrix}0.08\\-0.04\\-0.04\end{pmatrix} =200(0.0064+0.0016+0.0016)=1.920. $$

For a \(\chi^2_2\) variable, the upper-tail probability at \(1.920\) is \(P(\chi^2_2\geq1.920)=\exp(-1.920/2)=0.3829\). At \(\alpha=0.05\), do not reject the joint moment restrictions. This result says the fitted discrepancy is not unusually large under the reference distribution; it does not verify the validity of each moment condition.

Interpreting Rejection—and the Limits of Attribution

Rejection indicates that the fitted moments are jointly too far from zero relative to their estimated covariance to be readily explained by sampling variation under the null. It is evidence against the joint restrictions as maintained, subject to the assumptions behind the test. Possible explanations include invalid moments, a misspecified structural model, a parameter or functional-form problem, or a failure of an assumption used for estimation or inference. The J statistic alone does not distinguish among them.

Nor can its single quadratic form identify a particular invalid moment. The moments may be correlated, so the inverse covariance matrix combines their discrepancies rather than assessing each one in isolation. Further, the parameter estimate is chosen using the moment system: discrepancies that can be reduced by changing the estimated parameters are absorbed in the fitting process. What remains is a joint discrepancy in the \(q-k\) directions not used to identify those parameters. Many different patterns of component-level errors can produce the same J value.

Worked Example: Rejection Is Not a Diagnosis of One Moment

Consider another hypothetical sample with \(n=250\), \(q=3\), \(k=1\), estimated covariance \(I_3\), and fitted moments \((0.16,-0.08,-0.08)'\). As in the previous calculation, these summaries are assumed to come from efficient estimation. They also sum to zero, consistent with the fitted residual being perpendicular to the parameter direction \((1,1,1)'\) under identity weighting.

The J statistic is

$$ J=250(0.16^2+(-0.08)^2+(-0.08)^2) =250(0.0256+0.0064+0.0064)=9.600. $$

With \(q-k=2\) degrees of freedom, the p-value is \(P(\chi^2_2\geq9.600)=\exp(-9.600/2)=0.008230\). Since \(0.008230<0.05\), reject the joint restrictions at the 5% level. The conclusion is that the restrictions, taken together, are inconsistent with the observed moments at this level of evidence. The calculation does not establish that the first moment is invalid, even though its fitted value has the largest absolute magnitude: covariance, parameter fitting and the full joint pattern all enter the test.

Targeted Moment Diagnostics

After a rejection, diagnostics should be tied to a specific scientific or economic rationale and to a clearly defined alternative set of restrictions. One common approach compares nested moment sets. Suppose a base set contains \(q_0\) moments and a larger set adds \(r\) moments. Both sets use the same \(k\) parameters, and the base set identifies them. A difference-in-J (or C) test evaluates whether the added moments contribute restrictions that remain compatible with the data, conditional on the base set.

Definition: For nested moment sets, the C statistic is formed as \(C=J_{\mathrm{full}}-J_{\mathrm{base}}\), using a compatible efficient construction for the full and base systems. Under the null that the added \(r=q_{\mathrm{full}}-q_0\) moments are valid, conditional on the maintained validity of the base moments, \(C\) has an asymptotic \(\chi^2_r\) distribution under the corresponding regularity conditions.

The conditional wording is essential. A C-test rejection is evidence against the added restrictions if the base restrictions and the testing assumptions are maintained; it does not independently prove the base moments are valid. If the base set is itself misspecified, the conditional interpretation may fail. The test also needs compatible weighting and covariance estimation. Subtracting unrelated J statistics that use incompatible constructions does not automatically yield a valid C test.

Worked Example: Testing an Added Block of Moments

Suppose a hypothetical analysis uses one parameter and compares a two-moment base system with a three-moment full system. The base moments are specified in advance as the maintained set; the third moment is an additional restriction of substantive interest. Assume both J statistics are calculated with a compatible efficient construction, giving \(J_{\mathrm{base}}=1.200\) and \(J_{\mathrm{full}}=9.600\).

The added block contains \(r=3-2=1\) moment, so the difference test has one degree of freedom. Its statistic and p-value are

$$ C=J_{\mathrm{full}}-J_{\mathrm{base}}=9.600-1.200=8.400,\qquad P(\chi^2_1\geq8.400)\approx0.00375. $$

At \(\alpha=0.05\), reject the null that the added moment is valid conditional on the base system. This is more targeted than the full J rejection because it evaluates a specified block. It still does not show that the added moment alone caused any problem in every possible model, nor does it confirm the base moments independently.

A disciplined diagnostic sequence is useful when the joint test rejects:

1
Check the maintained setup.
Confirm the parameterization, moment definitions, identification, covariance estimator and dependence assumptions used for the J reference distribution.
2
Use substantive structure to choose subsets.
Specify a defensible base set and a targeted added block rather than searching indiscriminately for a moment that produces a preferred result.
3
Test and qualify the comparison.
Use a compatible C-test construction, report its degrees of freedom and p-value, and state that its interpretation is conditional on the base moments.
4
Report uncertainty in the diagnosis.
Note that multiple subset checks can generate false alarms, and interpret findings alongside the model and data assumptions rather than as automatic proof of a single cause.

Descriptive examination of individual fitted moments can also help locate patterns worth investigating. But a large-looking component is not, by itself, a formal test of that moment’s validity: it may be correlated with other components, affected by parameter estimation, and selected after looking at the same data. If many subsets are tested, the chance of at least one apparently small p-value rises unless the analysis accounts for multiplicity or the diagnostics are treated as exploratory.

Common Pitfall and Practical Interpretation

Wrong reasoning: “The J test rejected, so instrument three is invalid.” The test’s null concerns the joint set of overidentifying restrictions, and the statistic does not isolate a component. Correction: report rejection of the joint null, then use a justified targeted test—such as a nested C test—to investigate a specified added block, while stating the assumptions that make the comparison meaningful.

The converse overstatement is also common: “The J test did not reject, so all instruments are valid.” Nonrejection is not proof of validity. It means the test did not provide sufficient evidence against the joint restrictions at the chosen level, given its power, reference approximation and maintained assumptions. In either case, report the test statistic, degrees of freedom, p-value, significance level, and a conclusion in the context of the moment restrictions being tested.

Check Your Understanding

Use the joint and conditional nature of the J test in your answers.

  1. A model has six moment conditions and two parameters. What is the asymptotic degrees of freedom for the J test, and what feature of the model does it test?
  2. A J test has p-value 0.28 at \(\alpha=0.05\). State an appropriate conclusion, and give one conclusion that would be too strong.
  3. Why can a joint J-test rejection not identify which particular moment condition is invalid?
  4. A full-system J statistic is 12.0 and a compatible base-system statistic is 5.5. The full system adds two moments. Calculate the C statistic and state its reference degrees of freedom under the conditional null.
  5. Why does rejecting a C test for an added block not independently establish that the base moments are valid?
Clinical Biostats