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

Hausman Test: Fixed Effects Versus Random Effects

College Depth 124 in the knowledge graph ☐ I know this ☆ Set as goal
7topics build on this
902prerequisites beneath it
See this on the map →
Between and Random Effects Estimators for Panel DataWithin Estimator (Fixed Effects) for Panel Data→→Dynamic Panel Models and System GMM EstimationHausman Test: Fixed Effects vs. Random Effects
panel-data testing specification

Core Idea

The Hausman test compares fixed and random effects estimators; a large difference suggests the random effects orthogonality assumption is violated. Under the null hypothesis, the test statistic is asymptotically chi-squared, guiding practitioners toward fixed effects when the assumption fails.

Explainer

When you studied the within estimator (fixed effects) and the between estimator, you encountered a fundamental trade-off in panel data: fixed effects eliminate unobserved time-invariant heterogeneity at the cost of throwing away cross-sectional variation, while random effects use all the variation — both within and between units — but only give consistent estimates if the unobserved heterogeneity is uncorrelated with the regressors. The Hausman test is the tool that tells you which assumption holds in your data.

The intuition is clean. Under the null hypothesis that random effects is appropriate (the unobserved individual effects are uncorrelated with the regressors), both the fixed effects estimator and the random effects estimator are consistent, but random effects is more efficient — it uses more variation. Under the alternative hypothesis that the unobserved effects are correlated with regressors, fixed effects is still consistent (it differences them out), but random effects is biased and inconsistent. So if the two estimators give similar answers, random effects is preferred for efficiency. If they give very different answers, that divergence is evidence the random effects assumption has failed, and you should use fixed effects.

The test statistic formalizes this logic. Hausman showed that, under the null, the covariance of the difference between the two estimators simplifies elegantly: Cov(β̂_FE − β̂_RE, β̂_RE) = 0. This means the variance of the difference equals Var(β̂_FE) − Var(β̂_RE). The test statistic H = (β̂_FE − β̂_RE)′ [Var(β̂_FE) − Var(β̂_RE)]⁻¹ (β̂_FE − β̂_RE) is asymptotically chi-squared with degrees of freedom equal to the number of time-varying regressors being compared. A large H (small p-value) rejects the null and favors fixed effects.

In practice, interpreting the Hausman test requires care. A rejection tells you that correlated unobserved heterogeneity is likely present — but it does not tell you which variables are driving the correlation. Sometimes only a subset of regressors are correlated with the unit effects, and a partial Hausman test isolating those variables is more informative. The test also has known finite-sample problems: with robust standard errors, the standard formula for the variance of the difference can yield a negative-definite matrix, requiring a generalized inverse or a bootstrap version. A rejection of the null does not mean your fixed effects estimates are perfect — it means random effects is inconsistent, and fixed effects is the safer choice. The appropriate response to a Hausman rejection is not merely to switch estimators, but to think carefully about what unobserved characteristics might be correlated with your variables of interest, since those omitted drivers may have substantive implications for your research question.

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 → Dynamic Panel Models and Arellano-Bond/Blundell-Bond Estimation → Dynamic Panel Models: Arellano-Bond Estimator → First-Difference Estimator for Panel Data → Within Estimator (Fixed Effects) for Panel Data → Between and Random Effects Estimators for Panel Data → Hausman Test: Fixed Effects Versus Random Effects

Longest path: 125 steps · 902 total prerequisite topics

Prerequisites (2)

Leads To (2)