A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Test of Overidentification: Hansen J-Test

College Depth 122 in the knowledge graph ☐ I know this ☆ Set as goal
4topics build on this
595prerequisites beneath it
See this on the map →
Two-Stage Least Squares (2SLS)Reduced Form and First-Stage Equations→→F-Statistic for Overall Model SignificanceT-Statistic for Individual Coefficients
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

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence of Events → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Multiple Regression → Interpreting Regression Coefficients → Hypothesis Testing in Regression → F-Test and Joint Significance → R-Squared and Model Fit → Omitted Variable Bias → Causal Inference and the Identification Problem → Potential Outcomes and the Rubin Causal Model → Selection Bias → Instrumental Variables → Instrumental Variables: Validity Assumptions → Two-Stage Least Squares (2SLS) → Reduced Form and First-Stage Equations → Test of Overidentification: Hansen J-Test

Longest path: 123 steps · 595 total prerequisite topics

Prerequisites (2)

Leads To (2)