Test of Overidentification: Hansen J-Test

College Depth 89 in the knowledge graph I know this Set as goal
Unlocks 4 downstream topics
instrumental-variables overidentification hypothesis-testing

Core Idea

The Hansen J-test checks whether extra instruments are exogenous. Under H₀ that E[Zᵢuᵢ] = 0, the statistic J = n · gₙ'Ŵ⁻¹gₙ ~ χ²₍ₘ₋ₖ₎, where m is the number of instruments and k is the number of endogenous regressors. Rejection suggests at least one instrument is invalid.

Explainer

From your 2SLS prerequisite, you know the fundamental challenge: when regressor X is endogenous (correlated with the error u), OLS is biased. Instrumental variables solve this by finding Z that shifts X but affects outcome Y only through X — the exclusion restriction. The core identification challenge is that the exclusion restriction is an untestable assumption when you have exactly as many instruments as endogenous regressors (the just-identified case): you've used all your instruments to identify the coefficients, leaving no degrees of freedom to verify validity.

The overidentified case creates a testable implication. When you have more instruments than endogenous regressors (m > k), you have redundant instruments. If all instruments are truly valid — satisfying the exclusion restriction — they should each be uncorrelated with the structural error u and should all point toward the same estimate of β. The Hansen J-test exploits this: it takes the 2SLS residuals and tests whether the instruments help predict them. If instruments are valid, they should be uncorrelated with the residuals; if any instrument correlates with u, it will also correlate with the residuals, and the test detects this.

The J-statistic is computed as n times the R² from regressing 2SLS residuals on all instruments. Under the null that all instruments are valid, J ~ χ²(m − k), where the degrees of freedom equal the number of overidentifying restrictions — the excess instruments beyond what is needed for identification. With exactly one instrument and one endogenous variable, there are zero overidentifying restrictions and the J-test cannot be computed. Each additional instrument adds one testable restriction. Rejection at conventional significance levels is evidence that at least one instrument violates exogeneity.

The critical limitation is that rejection identifies a problem but not the culprit. The J-test tells you the set of instruments is collectively inconsistent with all being valid; it cannot tell you which instrument is the bad one. This matters because researchers sometimes respond to rejection by searching over instrument sets until the test passes — a form of specification search that exploits the in-sample correlation structure rather than testing a genuine prior. The correct response to rejection is to reconsider the economic argument for each instrument and potentially abandon the approach.

A concrete example: suppose you estimate the earnings return to education using both quarter of birth and distance to college as instruments. Both predict schooling in the first stage. If both are valid (exclusion restriction holds for both), J should not reject. But if distance to college reflects regional economic conditions that independently affect wages — a violation of the exclusion restriction — and quarter of birth is valid, the two instruments imply different estimates of the wage-education relationship. J detects this inconsistency. Passing the J-test is consistent with validity but does not prove it; the test only has power against deviations that differ across instruments.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesNormal DistributionCentral Limit TheoremConfidence Intervals for MeansZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsOne-Way ANOVAF-Test and Joint SignificanceR-Squared and Model FitOmitted Variable BiasCausal Inference and the Identification ProblemPotential Outcomes and the Rubin Causal ModelSelection BiasInstrumental VariablesTwo-Stage Least Squares (2SLS)Reduced Form and First-Stage EquationsTest of Overidentification: Hansen J-Test

Longest path: 90 steps · 431 total prerequisite topics

Prerequisites (2)

Leads To (2)