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 DataDynamic 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication 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 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-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 IntroductionSine, Cosine, and Tangent RatiosTrigonometric 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 VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsInference in Linear RegressionPrediction Intervals in RegressionLinear Regression BasicsResiduals and Goodness of Fit (R²)Simple (Bivariate) OLS RegressionClassical OLS Assumptions (Gauss-Markov)Multiple RegressionInterpreting Regression CoefficientsHypothesis Testing in RegressionF-Test and Joint SignificanceR-Squared and Model FitOmitted Variable BiasCausal Inference and the Identification ProblemPotential Outcomes and the Rubin Causal ModelSelection BiasInstrumental VariablesDynamic Panel Models and Arellano-Bond/Blundell-Bond EstimationDynamic Panel Models: Arellano-Bond EstimatorFirst-Difference Estimator for Panel DataWithin Estimator (Fixed Effects) for Panel DataBetween and Random Effects Estimators for Panel DataHausman Test: Fixed Effects Versus Random Effects

Longest path: 125 steps · 902 total prerequisite topics

Prerequisites (2)

Leads To (2)